Add host decorator to compile HIP version

This commit is contained in:
Tobias Meyer Andersen authored and GitHub committed 2025-02-20 13:31:53 +01:00
1 parent 2243891b2e
commit f25979d655
1 file changed
+1 -1
+1 -1
View File
@@ -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");