We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa356ea + 7cfb11e commit 485ae1bCopy full SHA for 485ae1b
FWCore/Utilities/interface/HostDeviceConstant.h
@@ -16,7 +16,7 @@
16
// Note these objects may be at different memory addresses on the host and device, so their pointers will be different
17
// -- but the actual values should be the same.
18
19
-#ifdef __CUDA_ARCH__
+#if defined(__CUDA_ARCH__) or defined(__HIP_DEVICE_COMPILE__)
20
#define HOST_DEVICE_CONSTANT __device__ constexpr
21
#else
22
#define HOST_DEVICE_CONSTANT constexpr
0 commit comments