llvm-project/openmp/runtime/test
Jonathan Peyton 01dcf36bd5 Adding Hwloc library option for affinity mechanism
These changes allow libhwloc to be used as the topology discovery/affinity
mechanism for libomp.  It is supported on Unices. The code additions:
* Canonicalize KMP_CPU_* interface macros so bitmask operations are
  implementation independent and work with both hwloc bitmaps and libomp
  bitmaps.  So there are new KMP_CPU_ALLOC_* and KMP_CPU_ITERATE() macros and
  the like. These are all in kmp.h and appropriately placed.
* Hwloc topology discovery code in kmp_affinity.cpp. This uses the hwloc
  interface to create a libomp address2os object which the rest of libomp knows
  how to handle already.
* To build, use -DLIBOMP_USE_HWLOC=on and
  -DLIBOMP_HWLOC_INSTALL_DIR=/path/to/install/dir [default /usr/local]. If CMake
  can't find the library or hwloc.h, then it will tell you and exit.

Differential Revision: http://reviews.llvm.org/D13991

llvm-svn: 254320
2015-11-30 20:02:59 +00:00
..
api [OPENMP] Fixed tests for gcc build. 2015-11-16 11:35:57 +00:00
atomic
barrier
critical
flush
lock
master
parallel
tasking [OPENMP][TESTSUITE] Undefined variable in test omp_task_final.c 2015-10-12 17:01:05 +00:00
threadprivate
worksharing [OPENMP] Fixed tests for gcc build. 2015-11-16 11:35:57 +00:00
CMakeLists.txt Adding Hwloc library option for affinity mechanism 2015-11-30 20:02:59 +00:00
lit.cfg Adding Hwloc library option for affinity mechanism 2015-11-30 20:02:59 +00:00
lit.site.cfg.in Adding Hwloc library option for affinity mechanism 2015-11-30 20:02:59 +00:00
omp_my_sleep.h
omp_testsuite.h [OPENMP] Add dependency to clang/clang-headers etc. for in-tree build of libomp. 2015-11-02 13:43:32 +00:00