mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-03 04:41:00 -06:00
Add host decorator to compile HIP version
This commit is contained in:
1 parent
2243891b2e
commit
f25979d655
1 file changed
+1
-1
@@ -29,7 +29,7 @@ namespace {
|
||||
// NOTE: We have to split this into a separate function due
|
||||
// to some weirdness of hipcc. Note however that this is
|
||||
// the realistic use case of the macro.
|
||||
__device__ void functionThatContainsMacros(bool call) {
|
||||
__device__ __host__ void functionThatContainsMacros(bool call) {
|
||||
if (call) {
|
||||
OPM_THROW(std::logic_error, "Something went wrong");
|
||||
OPM_THROW_NOLOG(std::logic_error, "Something went wrong");
|
||||
|
||||
Reference in new issue
Block a user