[llvm] [OpenMP] Adds omp_target_is_accessible routine (PR #138294)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 07:36:08 PDT 2025


================
@@ -195,6 +195,49 @@ EXTERN int omp_target_is_present(const void *Ptr, int DeviceNum) {
   return Rc;
 }
 
+/// Check whether a pointer is accessible from a device.
+/// the functionality is available in OpenMP 5.1 and later
+/// OpenMP 5.1
----------------
shiltian wrote:

How do we know the OpenMP version used by the user?

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


More information about the llvm-commits mailing list