Page MenuHomePhabricator

Add new OpenMP 4.5 affinity API
ClosedPublic

Authored by jlpeyton on Feb 18 2016, 2:32 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

jlpeyton updated this revision to Diff 48404.Feb 18 2016, 2:32 PM
jlpeyton retitled this revision from to Add new OpenMP 4.5 affinity API.
jlpeyton updated this object.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar.
jlpeyton set the repository for this revision to rL LLVM.
AndreyChurbanov accepted this revision.Feb 25 2016, 8:19 AM
AndreyChurbanov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Feb 25 2016, 8:19 AM
This revision was automatically updated to reflect the committed changes.