Skip to content

Commit 485ae1b

Browse files
authored
Merge pull request #46952 from fwyzard/fix_HOST_DEVICE_CONSTANT
Fix `HOST_DEVICE_CONSTANT` macro for AMD GPUs
2 parents fa356ea + 7cfb11e commit 485ae1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FWCore/Utilities/interface/HostDeviceConstant.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Note these objects may be at different memory addresses on the host and device, so their pointers will be different
1717
// -- but the actual values should be the same.
1818

19-
#ifdef __CUDA_ARCH__
19+
#if defined(__CUDA_ARCH__) or defined(__HIP_DEVICE_COMPILE__)
2020
#define HOST_DEVICE_CONSTANT __device__ constexpr
2121
#else
2222
#define HOST_DEVICE_CONSTANT constexpr

0 commit comments

Comments
 (0)