Skip to content

Commit 4b51745

Browse files
committed
Fixes formatting and comment issues.
1 parent e9dccd6 commit 4b51745

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

offload/libomptarget/OpenMP/API.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,7 @@ EXTERN int omp_target_is_present(const void *Ptr, int DeviceNum) {
197197
}
198198

199199
/// Check whether a pointer is accessible from a device.
200-
/// the functionality is available in OpenMP 5.1 and later
201-
/// OpenMP 5.1
202-
/// omp_target_is_accessible checks whether a host pointer is accessible from a
203-
/// device OpenMP 6.0 removes restriction on pointer, allowing any pointer
204-
/// interpreted as a pointer in the address space of the given device.
200+
/// Returns true when accessibility is guaranteed otherwise returns false.
205201
EXTERN int omp_target_is_accessible(const void *Ptr, size_t Size,
206202
int DeviceNum) {
207203
TIMESCOPE();
@@ -220,7 +216,7 @@ EXTERN int omp_target_is_accessible(const void *Ptr, size_t Size,
220216
return true;
221217
}
222218

223-
// the device number must refer to a valid device
219+
// The device number must refer to a valid device
224220
auto DeviceOrErr = PM->getDevice(DeviceNum);
225221
if (!DeviceOrErr)
226222
FATAL_MESSAGE(DeviceNum, "%s", toString(DeviceOrErr.takeError()).c_str());

offload/libomptarget/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,4 +370,4 @@ bool DeviceTy::useAutoZeroCopy() {
370370

371371
bool DeviceTy::isAccessiblePtr(const void *Ptr, size_t Size) {
372372
return RTL->is_accessible_ptr(RTLDeviceID, Ptr, Size);
373-
}
373+
}

0 commit comments

Comments
 (0)