summaryrefslogtreecommitdiff
path: root/offload/include/device.h
diff options
context:
space:
mode:
authorNicole Aschenbrenner <nicole.aschenbrenner@amd.com>2025-10-22 17:35:16 +0200
committerGitHub <noreply@github.com>2025-10-22 17:35:16 +0200
commit16641ad8a29b6c877a3f934cd61d6acc9719e87e (patch)
treea1067d685c9c55409135079a0e0f9da301f07363 /offload/include/device.h
parent2936852d2f6b0e7af6237abe9796c494885b2aac (diff)
[OpenMP] Adds omp_target_is_accessible routine (#138294)
Adds omp_target_is_accessible routine. Refactors common code from omp_target_is_present to work for both routines. --------- Co-authored-by: Shilei Tian <i@tianshilei.me>
Diffstat (limited to 'offload/include/device.h')
-rw-r--r--offload/include/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/offload/include/device.h b/offload/include/device.h
index bf93ce0460ae..4e27943d1dbc 100644
--- a/offload/include/device.h
+++ b/offload/include/device.h
@@ -158,6 +158,9 @@ struct DeviceTy {
/// Ask the device whether the runtime should use auto zero-copy.
bool useAutoZeroCopy();
+ /// Ask the device whether the storage is accessible.
+ bool isAccessiblePtr(const void *Ptr, size_t Size);
+
/// Check if there are pending images for this device.
bool hasPendingImages() const { return HasPendingImages; }