summaryrefslogtreecommitdiff
path: root/openmp/libomptarget/DeviceRTL/src/State.cpp
diff options
context:
space:
mode:
authorMichael Klemm <michael.klemm@amd.com>2024-02-26 22:17:33 +0100
committerGitHub <noreply@github.com>2024-02-26 13:17:33 -0800
commit99335a646bc0b10066d77cec08ae8cab0162efde (patch)
tree1e27af612838becd62bc98382735f8287192de5e /openmp/libomptarget/DeviceRTL/src/State.cpp
parent860b6edfa9b344fbf8c500c17158c8212ea87d1c (diff)
[flang][OpenMP] Add missing implementation for 'omp_is_initial_device' (#83056)
Resolve issue #82047
Diffstat (limited to 'openmp/libomptarget/DeviceRTL/src/State.cpp')
-rw-r--r--openmp/libomptarget/DeviceRTL/src/State.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/libomptarget/DeviceRTL/src/State.cpp b/openmp/libomptarget/DeviceRTL/src/State.cpp
index 40f99e07b44c..a1e4fa2449d9 100644
--- a/openmp/libomptarget/DeviceRTL/src/State.cpp
+++ b/openmp/libomptarget/DeviceRTL/src/State.cpp
@@ -426,6 +426,8 @@ int omp_get_num_teams(void) { return mapping::getNumberOfBlocksInKernel(); }
int omp_get_team_num() { return mapping::getBlockIdInKernel(); }
int omp_get_initial_device(void) { return -1; }
+
+int omp_is_initial_device(void) { return 0; }
}
extern "C" {