[Openmp-commits] [PATCH] D17417: Add new OpenMP 4.5 affinity API

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Thu Feb 18 14:32:21 PST 2016


jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar.
jlpeyton added subscribers: andreybokhanko, ABataev, openmp-commits.
jlpeyton set the repository for this revision to rL LLVM.

This change introduces the new OpenMP 4.5 affinity api surrounding
OpenMP Places.  There are six new entry points:

Typically called in serial region:
- omp_get_num_places - returns the number of places available to the execution environment in the place list.
- omp_get_place_num_procs - returns the number of processors available to the execution environment in the specified place.
- omp_get_place_proc_ids - returns the numerical identifiers of the processors available to the execution environment in the specified place.

Typically called inside parallel region:
- omp_get_place_num - returns the place number of the place to which the encountering thread is bound.
- omp_get_partition_num_places - returns the number of places in the place partition of the innermost implicit task.
- omp_get_partition_place_nums - returns the list of place numbers corresponding to the places in the place-var ICV of the innermost implicit task.

Repository:
  rL LLVM

http://reviews.llvm.org/D17417

Files:
  runtime/src/dllexports
  runtime/src/include/41/omp.h.var
  runtime/src/include/41/omp_lib.f.var
  runtime/src/include/41/omp_lib.f90.var
  runtime/src/include/41/omp_lib.h.var
  runtime/src/kmp_ftn_entry.h
  runtime/src/kmp_ftn_os.h
  runtime/src/kmp_runtime.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17417.48404.patch
Type: text/x-patch
Size: 14525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160218/c1391d89/attachment.bin>


More information about the Openmp-commits mailing list