Skip to content

Commit 6395c45

Browse files
committed
Adjust format
1 parent a1f81c3 commit 6395c45

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

offload/libomptarget/OpenMP/InteropAPI.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ int __tgt_interop_use(ident_t *LocRef, omp_interop_val_t *Interop,
300300

301301
auto DeviceOrErr = Interop->getDevice();
302302
if (!DeviceOrErr) {
303-
REPORT("Failed to get device for interop " DPxMOD ": %s\n",
304-
DPxPTR(Interop), toString(DeviceOrErr.takeError()).c_str());
303+
REPORT("Failed to get device for interop " DPxMOD ": %s\n", DPxPTR(Interop),
304+
toString(DeviceOrErr.takeError()).c_str());
305305
return OFFLOAD_FAIL;
306306
}
307307
auto &IOPDevice = *DeviceOrErr;
@@ -338,8 +338,8 @@ int __tgt_interop_release(ident_t *LocRef, omp_interop_val_t *Interop,
338338

339339
auto DeviceOrErr = Interop->getDevice();
340340
if (!DeviceOrErr) {
341-
REPORT("Failed to get device for interop " DPxMOD ": %s\n",
342-
DPxPTR(Interop), toString(DeviceOrErr.takeError()).c_str());
341+
REPORT("Failed to get device for interop " DPxMOD ": %s\n", DPxPTR(Interop),
342+
toString(DeviceOrErr.takeError()).c_str());
343343
return OFFLOAD_FAIL;
344344
}
345345

@@ -364,7 +364,7 @@ EXTERN int ompx_interop_add_completion_callback(omp_interop_val_t *Interop,
364364
} // extern "C"
365365

366366
llvm::Expected<DeviceTy &> omp_interop_val_t::getDevice() const {
367-
return PM->getDevice(device_id);
367+
return PM->getDevice(device_id);
368368
}
369369

370370
bool omp_interop_val_t::isCompatibleWith(int32_t InteropType,
@@ -432,8 +432,8 @@ void syncImplicitInterops(int Gtid, void *Event) {
432432

433433
auto DeviceOrErr = iop->getDevice();
434434
if (!DeviceOrErr) {
435-
REPORT("Failed to get device for interop " DPxMOD ": %s\n",
436-
DPxPTR(iop), toString(DeviceOrErr.takeError()).c_str());
435+
REPORT("Failed to get device for interop " DPxMOD ": %s\n", DPxPTR(iop),
436+
toString(DeviceOrErr.takeError()).c_str());
437437
continue;
438438
}
439439
auto &IOPDevice = *DeviceOrErr;
@@ -462,8 +462,8 @@ void InteropTblTy::clear() {
462462
PerThreadTable::clear([](auto &IOP) {
463463
auto DeviceOrErr = IOP->getDevice();
464464
if (!DeviceOrErr) {
465-
REPORT("Failed to get device for interop " DPxMOD ": %s\n",
466-
DPxPTR(IOP), toString(DeviceOrErr.takeError()).c_str());
465+
REPORT("Failed to get device for interop " DPxMOD ": %s\n", DPxPTR(IOP),
466+
toString(DeviceOrErr.takeError()).c_str());
467467
return;
468468
}
469469
IOP->release(*DeviceOrErr);

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,8 @@ struct GenericDeviceTy : public DeviceAllocatorTy {
971971
bool useAutoZeroCopy();
972972
virtual bool useAutoZeroCopyImpl() { return false; }
973973

974-
virtual Expected<omp_interop_val_t *> createInterop(int32_t InteropType,
975-
interop_spec_t &InteropSpec) {
974+
virtual Expected<omp_interop_val_t *>
975+
createInterop(int32_t InteropType, interop_spec_t &InteropSpec) {
976976
return nullptr;
977977
}
978978

@@ -1447,7 +1447,7 @@ struct GenericPluginTy {
14471447
assert(Interop && "Interop is null");
14481448
auto Err = flushQueueImpl(Interop);
14491449
if (Err) {
1450-
REPORT("Failure to flush interop object " DPxMOD " queue: %s\n",
1450+
REPORT("Failure to flush interop object " DPxMOD " queue: %s\n",
14511451
DPxPTR(Interop), toString(std::move(Err)).c_str());
14521452
return OFFLOAD_FAIL;
14531453
}
@@ -1459,7 +1459,7 @@ struct GenericPluginTy {
14591459
assert(Interop && "Interop is null");
14601460
auto Err = syncBarrierImpl(Interop);
14611461
if (Err) {
1462-
REPORT("Failure to synchronize interop object " DPxMOD ": %s\n",
1462+
REPORT("Failure to synchronize interop object " DPxMOD ": %s\n",
14631463
DPxPTR(Interop), toString(std::move(Err)).c_str());
14641464
return OFFLOAD_FAIL;
14651465
}
@@ -1472,7 +1472,7 @@ struct GenericPluginTy {
14721472
assert(Interop && "Interop is null");
14731473
auto Err = asyncBarrierImpl(Interop);
14741474
if (Err) {
1475-
REPORT("Failure to queue barrier in interop object " DPxMOD ": %s\n",
1475+
REPORT("Failure to queue barrier in interop object " DPxMOD ": %s\n",
14761476
DPxPTR(Interop), toString(std::move(Err)).c_str());
14771477
return OFFLOAD_FAIL;
14781478
}

0 commit comments

Comments
 (0)