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.
| Paths 
 |  Differential  D88149  
[OpenMP][libomptarget] make omp_get_initial_device 5.1 compliant ClosedPublic Authored by protze.joachim on Sep 23 2020, 6:03 AM. 
Details Summary 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. 
Diff Detail 
 Event TimelineComment Actions Can you also remove the definition in the header file include/omptarget.h #define HOST_DEVICE -10 Comment Actions LGTM, one nit. Give @grokos and @RaviNarayanaswamy some time to comment or accept as well. 
 This revision is now accepted and ready to land.Sep 25 2020, 9:25 AM Closed by commit rG55cff5b28865: [OpenMP][libomptarget] make omp_get_initial_device 5.1 compliant (authored by protze.joachim).  ·  Explain WhySep 30 2020, 3:58 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 295429 openmp/libomptarget/include/omptarget.h
 openmp/libomptarget/src/api.cpp
 openmp/runtime/src/kmp.h
 openmp/runtime/src/kmp_ftn_entry.h
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
So we can also remove the HOST_DEVICE macro from openmp/libomptarget/include/omptarget.h:24.