diff options
Diffstat (limited to 'offload/include')
| -rw-r--r-- | offload/include/device.h | 3 | ||||
| -rw-r--r-- | offload/include/omptarget.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/offload/include/device.h b/offload/include/device.h index bf93ce0..4e27943 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; } diff --git a/offload/include/omptarget.h b/offload/include/omptarget.h index 794b79e..89aa468 100644 --- a/offload/include/omptarget.h +++ b/offload/include/omptarget.h @@ -278,6 +278,7 @@ int omp_get_initial_device(void); void *omp_target_alloc(size_t Size, int DeviceNum); void omp_target_free(void *DevicePtr, int DeviceNum); int omp_target_is_present(const void *Ptr, int DeviceNum); +int omp_target_is_accessible(const void *Ptr, size_t Size, int DeviceNum); int omp_target_memcpy(void *Dst, const void *Src, size_t Length, size_t DstOffset, size_t SrcOffset, int DstDevice, int SrcDevice); |
