[OpenMP][libomptarget] make omp_get_initial_device 5.1 compliant
authorJoachim Protze <protze@itc.rwth-aachen.de>
Wed, 30 Sep 2020 08:40:51 +0000 (10:40 +0200)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Wed, 30 Sep 2020 22:51:11 +0000 (00:51 +0200)
commit55cff5b288650f0ce814c3c85041852bbed554b8
treed78538b70c11b273671526a03c34a9ac4f8c0624
parent37b2e2b04cf434b368b1edf29609be21952316f9
[OpenMP][libomptarget] make omp_get_initial_device 5.1 compliant

OpenMP 5.1 defines omp_get_initial_device to return the same value as omp_get_num_devices.
Since this change is also 5.0 compliant, no versioning is needed.

Differential Revision: https://reviews.llvm.org/D88149
openmp/libomptarget/include/omptarget.h
openmp/libomptarget/src/api.cpp
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_ftn_entry.h