Skip to content

Commit

Permalink
Merge pull request #46952 from fwyzard/fix_HOST_DEVICE_CONSTANT
Browse files Browse the repository at this point in the history
Fix `HOST_DEVICE_CONSTANT` macro for AMD GPUs
  • Loading branch information
cmsbuild authored Dec 16, 2024
2 parents fa356ea + 7cfb11e commit 485ae1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FWCore/Utilities/interface/HostDeviceConstant.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Note these objects may be at different memory addresses on the host and device, so their pointers will be different
// -- but the actual values should be the same.

#ifdef __CUDA_ARCH__
#if defined(__CUDA_ARCH__) or defined(__HIP_DEVICE_COMPILE__)
#define HOST_DEVICE_CONSTANT __device__ constexpr
#else
#define HOST_DEVICE_CONSTANT constexpr
Expand Down

0 comments on commit 485ae1b

Please sign in to comment.