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 @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -327,10 +328,11 @@ // Number of initial streams for each device. int NumInitialStreams = 32; - static constexpr const int HardTeamLimit = 1U << 16U; // 64k - static constexpr const int HardThreadLimit = 1024; - static constexpr const int DefaultNumTeams = 128; - static constexpr const int DefaultNumThreads = 128; + static constexpr const int32_t HardTeamLimit = + std::numeric_limits::max(); // 2147483647 + static constexpr const int32_t HardThreadLimit = 1024; + static constexpr const int32_t DefaultNumTeams = 128; + static constexpr const int32_t DefaultNumThreads = 128; using StreamPoolTy = ResourcePoolTy; std::vector> StreamPool;