Skip to content

Commit 2370215

Browse files
committed
Clang-format fixes.
1 parent 168a2b8 commit 2370215

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

offload/include/device.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ struct DeviceTy {
102102
// operations if necessary for the device.
103103
int32_t dataFence(AsyncInfoTy &AsyncInfo);
104104

105-
106105
/// Notify the plugin about a new mapping starting at the host address
107106
/// \p HstPtr and \p Size bytes.
108107
int32_t notifyDataMapped(void *HstPtr, int64_t Size);

offload/plugins-nextgen/common/include/PluginInterface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ struct GenericDeviceTy : public DeviceAllocatorTy {
891891
virtual Error dataRetrieveImpl(void *HstPtr, const void *TgtPtr, int64_t Size,
892892
AsyncInfoWrapperTy &AsyncInfoWrapper) = 0;
893893

894-
/// Instert a data fence between previous data operations and the following
894+
/// Instert a data fence between previous data operations and the following
895895
/// operations if necessary for the device
896896
virtual Error dataFence(__tgt_async_info *AsyncInfo) = 0;
897897

@@ -1359,8 +1359,8 @@ struct GenericPluginTy {
13591359
int DstDeviceId, void *DstPtr, int64_t Size,
13601360
__tgt_async_info *AsyncInfo);
13611361

1362-
/// Places a fence between previous data movements and following data movements
1363-
/// if necessary on the device
1362+
/// Places a fence between previous data movements and following data
1363+
/// movements if necessary on the device
13641364
int32_t data_fence(int32_t DeviceId, __tgt_async_info *AsyncInfo);
13651365

13661366
/// Begin executing a kernel on the given device.

offload/plugins-nextgen/common/src/PluginInterface.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,11 +2232,12 @@ int32_t GenericPluginTy::get_function(__tgt_device_binary Binary,
22322232
return OFFLOAD_SUCCESS;
22332233
}
22342234

2235-
int32_t GenericPluginTy::data_fence(int32_t DeviceId, __tgt_async_info *AsyncInfo ) {
2235+
int32_t GenericPluginTy::data_fence(int32_t DeviceId,
2236+
__tgt_async_info *AsyncInfo) {
22362237
auto Err = getDevice(DeviceId).dataFence(AsyncInfo);
22372238
if (Err) {
2238-
REPORT("Failure to place data fence on device %d: %s\n",
2239-
DeviceId, toString(std::move(Err)).data());
2239+
REPORT("Failure to place data fence on device %d: %s\n", DeviceId,
2240+
toString(std::move(Err)).data());
22402241
return OFFLOAD_FAIL;
22412242
}
22422243

0 commit comments

Comments
 (0)