[all-commits] [llvm/llvm-project] 656378: [Libomptarget] Fix block and thread limit environm...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Mar 1 12:13:01 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 656378085e7f52d67581245617474c5ce530dac4
https://github.com/llvm/llvm-project/commit/656378085e7f52d67581245617474c5ce530dac4
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-03-01 (Wed, 01 Mar 2023)
Changed paths:
M openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
A openmp/libomptarget/test/api/omp_env_vars.c
Log Message:
-----------
[Libomptarget] Fix block and thread limit environment variables not being respected
The next-gen plugins did not properly set the values from
`OMP_NUM_TEAMS` and `OMP_TEAMS_THREAD_LIMIT`. This is because these
maximum values are set by each plugin to its hardware maximum. This
happens *after* the previous initialization. Move it to the correct
place and then add a test.
Fixes https://github.com/llvm/llvm-project/issues/61082
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D145105
More information about the All-commits
mailing list