diff --git a/openmp/libomptarget/plugins/cuda/src/rtl.cpp b/openmp/libomptarget/plugins/cuda/src/rtl.cpp --- a/openmp/libomptarget/plugins/cuda/src/rtl.cpp +++ b/openmp/libomptarget/plugins/cuda/src/rtl.cpp @@ -343,7 +343,6 @@ /// Number of initial events for each device. int NumInitialEvents = 8; - static constexpr const int32_t HardThreadLimit = 1024; static constexpr const int32_t DefaultNumTeams = 128; static constexpr const int32_t DefaultNumThreads = 128; @@ -680,12 +679,6 @@ DeviceData[DeviceId].ThreadsPerBlock, EnvTeamThreadLimit); DeviceData[DeviceId].ThreadsPerBlock = EnvTeamThreadLimit; } - if (DeviceData[DeviceId].ThreadsPerBlock > DeviceRTLTy::HardThreadLimit) { - DP("Max CUDA threads per block %d exceeds the hard thread limit %d, " - "capping at the hard limit\n", - DeviceData[DeviceId].ThreadsPerBlock, DeviceRTLTy::HardThreadLimit); - DeviceData[DeviceId].ThreadsPerBlock = DeviceRTLTy::HardThreadLimit; - } } // Get and set warp size