[llvm-branch-commits] [llvm] [openmp] [OpenMP] Implement omp_get_uid_from_device() / omp_get_device_from_uid() (PR #164392)

Robert Imschweiler via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 21 12:33:58 PDT 2025


================
@@ -0,0 +1,88 @@
+// RUN: %libomptarget-compile-run-and-check-generic
+
+#include <omp.h>
+#include <stdio.h>
+#include <string.h>
+
+// Note that the device UIDs for the "fake" host devices used by libomptarget
+// will always be the same as the UID for the initial device (since it *is* the
+// same device).  The other way round, the device number returned for this UID
+// will always be the initial device.
+
+int is_host_device_uid(const char *device_uid) {
----------------
ro-i wrote:

done

https://github.com/llvm/llvm-project/pull/164392


More information about the llvm-branch-commits mailing list