[Openmp-dev] Three patches: affinity cleanup, 8-bit atomics, types cleanup

Wilmarth, Terry L terry.l.wilmarth at intel.com
Fri Mar 6 14:04:25 PST 2015

Three more patches:

1)     aff_disabled.patch: Some affinity fixes/cleanup:

a.     Getting rid of proc_bind_disabled enum value.  The disabled affinity functionality is flagged instead solely by __kmp_affinity_type = affinity_disabled. This solves the problem if a Linux machine doesn't support affinity for whatever reason and affinity is disabled then it maps to proc-bind-var to proc_bind_false (valid value) instead of proc_bind_disabled (invalid value).

b.     Adding KMP_AFFINITY_DISABLE() and KMP_AFFINITY_ENABLE(mask_size) to go along with KMP_AFFINITY_CAPABLE().  In the grand scheme of things, we want to get rid of as many explicit references to the mask size as we can to aid hwloc importing.  It's also more readable.

c.     Unused affinity function __kmp_change_thread_affinity_mask() deleted.

d.     The first changes in kmp_affinity.cpp concern an incorrect warning that is produced when you use OMP_PLACES=0:num_hardware_threads.  The warning states that you are trying to use the num_hardware_threads thread context when you really aren't.  For example, on fxe12lin19 (hyperthreaded), if you specify OMP_PLACES=0:24, it warns against using OS thread 24.  But only OS threads 0-23 are actually being used. This change prevents the warning from being emitted.

2)     atomic8.patch: Adding some 8-bit atomic operations for future use.

3)     cleanup.patch: Cleanup of unsigned types to be consistent for all topology related variables (requested by Hal Finkel).

Terry L. Wilmarth
terry.l.wilmarth at intel.com   217/403-4251
Intel/SSG/DPD/TCAR/RAD/Threading Runtimes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150306/9d87bf24/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aff_disabled.patch
Type: application/octet-stream
Size: 12654 bytes
Desc: aff_disabled.patch
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150306/9d87bf24/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atomic8.patch
Type: application/octet-stream
Size: 8020 bytes
Desc: atomic8.patch
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150306/9d87bf24/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup.patch
Type: application/octet-stream
Size: 2711 bytes
Desc: cleanup.patch
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150306/9d87bf24/attachment-0002.obj>

More information about the Openmp-dev mailing list