[OpenMP] Add omp_get_device_num() and update several other device API functions
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Wed, 28 Nov 2018 20:10:26 +0000 (20:10 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Wed, 28 Nov 2018 20:10:26 +0000 (20:10 +0000)
commita17318b89b97d577e08c87e6b6c3b67806869f85
tree95f7fc67b96a10c4193d04a378c5bca4a431d70a
parent63a921bcfccdc24d2489294842e42ff55d8184cc
[OpenMP] Add omp_get_device_num() and update several other device API functions

Add omp_get_device_num() function for 5.0 which returns the number of the device
the current thread is running on. Also, did some cleanup and updating of device
API functions to make them into weak functions that should be replaced with
libomptarget functions when libomptarget is present.

Patch by Terry Wilmarth

Differential Revision: https://reviews.llvm.org/D54342

llvm-svn: 347799
openmp/runtime/src/dllexports
openmp/runtime/src/include/45/omp.h.var
openmp/runtime/src/include/45/omp_lib.f.var
openmp/runtime/src/include/45/omp_lib.h.var
openmp/runtime/src/include/50/omp.h.var
openmp/runtime/src/include/50/omp_lib.f.var
openmp/runtime/src/include/50/omp_lib.f90.var
openmp/runtime/src/include/50/omp_lib.h.var
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_ftn_entry.h
openmp/runtime/src/kmp_ftn_os.h