From f25979d65585e5eb67ef85e153b5f88ce0bd355a Mon Sep 17 00:00:00 2001 From: Tobias Meyer Andersen <43416133+multitalentloes@users.noreply.github.com> Date: Thu, 20 Feb 2025 13:31:53 +0100 Subject: [PATCH] Add host decorator to compile HIP version --- tests/gpuistl/test_throw_macros_on_gpu.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gpuistl/test_throw_macros_on_gpu.cu b/tests/gpuistl/test_throw_macros_on_gpu.cu index 9ae0e66eab..560772bc58 100644 --- a/tests/gpuistl/test_throw_macros_on_gpu.cu +++ b/tests/gpuistl/test_throw_macros_on_gpu.cu @@ -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");