aboutsummaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorSaiyedul Islam <Saiyedul.Islam@amd.com>2024-01-30 23:59:54 +0530
committerGitHub <noreply@github.com>2024-01-30 23:59:54 +0530
commit5f6640e268b5e6ead22983ba9e2074e3bbf0612b (patch)
tree5a13727a8a672fa299fdb357ea2b7692a540e0de /openmp
parent2e165009b7d1f97337cb4b0f31f6d484d8cf96d9 (diff)
downloadllvm-5f6640e268b5e6ead22983ba9e2074e3bbf0612b.zip
llvm-5f6640e268b5e6ead22983ba9e2074e3bbf0612b.tar.gz
llvm-5f6640e268b5e6ead22983ba9e2074e3bbf0612b.tar.bz2
[OpenMP52][LIBOMPTARGET] Do not throw error in omp_get_mapped_ptr for the host (#80038)
OpenMP spec 5.2 specifies return value to be the host ptr in case of device_num being same as omp_get_initial_device().
Diffstat (limited to 'openmp')
-rw-r--r--openmp/libomptarget/src/OpenMP/API.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/src/OpenMP/API.cpp b/openmp/libomptarget/src/OpenMP/API.cpp
index a7b6eac..1ab1877 100644
--- a/openmp/libomptarget/src/OpenMP/API.cpp
+++ b/openmp/libomptarget/src/OpenMP/API.cpp
@@ -598,7 +598,7 @@ EXTERN void *omp_get_mapped_ptr(const void *Ptr, int DeviceNum) {
size_t NumDevices = omp_get_initial_device();
if (DeviceNum == NumDevices) {
- REPORT("Device %d is initial device, returning Ptr " DPxMOD ".\n",
+ DP("Device %d is initial device, returning Ptr " DPxMOD ".\n",
DeviceNum, DPxPTR(Ptr));
return const_cast<void *>(Ptr);
}