diff options
| author | Johannes Doerfert <johannes@jdoerfert.de> | 2023-01-12 15:29:55 -0800 |
|---|---|---|
| committer | Johannes Doerfert <johannes@jdoerfert.de> | 2023-01-12 15:42:32 -0800 |
| commit | 5d309bfca6ef58d80ee35886f55e14542faebbef (patch) | |
| tree | 682a801a73e4840a9135e2b8996759485c118883 /openmp/libomptarget/DeviceRTL/src/State.cpp | |
| parent | 1ad5f6af816a439a84f7d8fe3dff87dd1f8a39ba (diff) | |
[OpenMP][FIX] The thread limit is the block, not grid size
Diffstat (limited to 'openmp/libomptarget/DeviceRTL/src/State.cpp')
| -rw-r--r-- | openmp/libomptarget/DeviceRTL/src/State.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/DeviceRTL/src/State.cpp b/openmp/libomptarget/DeviceRTL/src/State.cpp index aaf81b92887b..9c1c9abaf493 100644 --- a/openmp/libomptarget/DeviceRTL/src/State.cpp +++ b/openmp/libomptarget/DeviceRTL/src/State.cpp @@ -357,7 +357,7 @@ int omp_get_num_threads(void) { return omp_get_level() > 1 ? 1 : state::ParallelTeamSize; } -int omp_get_thread_limit(void) { return mapping::getKernelSize(); } +int omp_get_thread_limit(void) { return mapping::getBlockSize(); } int omp_get_num_procs(void) { return mapping::getNumberOfProcessorElements(); } |
