llvm-project/openmp
Jonathan Peyton 09244f39dd Introduce KMP_DEVICE_THREAD_LIMIT
This change drops in KMP_DEVICE_THREAD_LIMIT to replace KMP_MAX_THREADS. It's
possible there will eventually be a OMP_DEVICE_THREAD_LIMIT, and we need
something to distinguish from OMP_THREAD_LIMIT, which is currently implemented
incorrectly (the fix for that will be added soon in a separate patch).
KMP_ALL_THREADS is deprecated here, but we can keep the "all" option on
KMP_DEVICE_THREAD_LIMIT to support that functionality. KMP_DEVICE_THREAD_LIMIT
now has priority over its deprecated rival KMP_ALL_THREADS. I also cleaned up
some comments that incorrectly referred to non-existent kmp_max_threads variable
instead of kmp_max_nth.

I've left the name of where this setting eventually ends up as
__kmp_max_nth, for now.

This change does not change much in the way of functionality. It does NOT change
OMP_THREAD_LIMIT. It's just cleaning up and setting up for that.

Patch by Terry Wilmarth

Differential Revision: https://reviews.llvm.org/D35860

llvm-svn: 309168
2017-07-26 20:07:58 +00:00
..
libomptarget Whitespace. 2017-07-20 23:12:39 +00:00
offload Liboffload: Patch for MPSS > 3.4.x (provided by Tim Cramer) 2015-05-06 10:58:40 +00:00
runtime Introduce KMP_DEVICE_THREAD_LIMIT 2017-07-26 20:07:58 +00:00
testsuite Apply name change to testsuite file. 2015-06-01 04:24:23 +00:00
www Support of mips & mips64 for openmprtl 2016-12-08 09:22:24 +00:00
.arcconfig Add a .arcconfig file for openmp. 2017-07-08 16:09:47 +00:00
.gitignore Create a git ignore file for openmp runtime. 2017-03-11 13:05:08 +00:00
CMakeLists.txt [CMake] Disable building libomptarget and add CMake switch 2017-07-26 13:55:00 +00:00
CREDITS.txt Fork performance improvements 2016-05-23 18:01:19 +00:00
LICENSE.txt Update copyright year in LICENSE.txt 2016-05-17 20:11:26 +00:00