diff --git a/openmp/libomptarget/DeviceRTL/src/Mapping.cpp b/openmp/libomptarget/DeviceRTL/src/Mapping.cpp --- a/openmp/libomptarget/DeviceRTL/src/Mapping.cpp +++ b/openmp/libomptarget/DeviceRTL/src/Mapping.cpp @@ -29,7 +29,7 @@ ///{ #pragma omp begin declare variant match(device = {arch(amdgcn)}) -constexpr const llvm::omp::GV &getGridValue() { +static const llvm::omp::GV &getGridValue() { return llvm::omp::getAMDGPUGridValues<__AMDGCN_WAVEFRONT_SIZE>(); } @@ -104,7 +104,7 @@ return __nvvm_read_ptx_sreg_ntid_x(); } -constexpr const llvm::omp::GV &getGridValue() { +static const llvm::omp::GV &getGridValue() { return llvm::omp::NVPTXGridValues; }