[Openmp-commits] [PATCH] D13175: Added sockets to the syntax of KMP_PLACE_THREADS environment variable.
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Fri Sep 25 12:08:35 PDT 2015
jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, hfinkel.
jlpeyton added a subscriber: openmp-commits.
jlpeyton set the repository for this revision to rL LLVM.
Added (optional) sockets to the syntax of the KMP_PLACE_THREADS environment variable.
Some limitations:
- the number of sockets and then optional offset should be specified first (before other parameters).
- the letter designation is mandatory for sockets and then for other parameters.
- if number of cores is specified first, then the number of sockets is defaulted to all sockets on the machine; also, the old syntax is partially supported if sockets are skipped.
- if number of threads per core is specified first, then the number of sockets and cores per socket are defaulted to all sockets and all cores per socket respectively.
- the number of cores per socket cannot be specified before sockets or after threads per core.
- the number of threads per core can be specified before or after core-offset (old syntax required it to be before core-offset);
- parameters delimiter can be: empty, comma, lower-case x;
- spaces are allowed around numbers, around letters, around delimiter.
Approximate shorthand specification:
KMP_PLACE_THREADS="[num_sockets(S|s)[[delim]offset(O|o)][delim]][num_cores_per_socket(C|c)[[delim]offset(O|o)][delim]][num_threads_per_core(T|t)]"
Repository:
rL LLVM
http://reviews.llvm.org/D13175
Files:
runtime/src/i18n/en_US.txt
runtime/src/kmp.h
runtime/src/kmp_affinity.cpp
runtime/src/kmp_csupport.c
runtime/src/kmp_global.c
runtime/src/kmp_settings.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13175.35750.patch
Type: text/x-patch
Size: 19631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20150925/9fb48ab7/attachment-0001.bin>
More information about the Openmp-commits
mailing list