@@ -227,10 +227,9 @@ omp_interop_val_t *__tgt_interop_get(ident_t *LocRef, int32_t InteropType,
227227
228228 auto DeviceOrErr = PM->getDevice (DeviceNum);
229229 if (!DeviceOrErr) {
230- [[maybe_unused]] std::string ErrStr = toString (DeviceOrErr.takeError ());
231230 DP (" Couldn't find device %" PRId64
232231 " while constructing interop object: %s\n " ,
233- DeviceNum, ErrStr .c_str ());
232+ DeviceNum, toString (DeviceOrErr. takeError ()) .c_str ());
234233 return omp_interop_none;
235234 }
236235 auto &Device = *DeviceOrErr;
@@ -280,18 +279,18 @@ omp_interop_val_t *__tgt_interop_get(ident_t *LocRef, int32_t InteropType,
280279
281280int __tgt_interop_use (ident_t *LocRef, omp_interop_val_t *Interop,
282281 interop_ctx_t *Ctx, dep_pack_t *Deps) {
283- bool nowait = Ctx->flags .nowait ;
282+ bool Nowait = Ctx->flags .nowait ;
284283 DP (" Call to %s with interop " DPxMOD " , nowait %" PRId32 " \n " , __func__,
285- DPxPTR (Interop), nowait );
284+ DPxPTR (Interop), Nowait );
286285 if (OffloadPolicy::get (*PM).Kind == OffloadPolicy::DISABLED || !Interop)
287286 return OFFLOAD_FAIL;
288287
289288 if (Interop->interop_type == kmp_interop_type_targetsync) {
290289 if (Deps) {
291- if (nowait ) {
290+ if (Nowait ) {
292291 DP (" Warning: nowait flag on interop use with dependences not supported"
293292 " yet. Ignored\n " );
294- nowait = false ;
293+ Nowait = false ;
295294 }
296295
297296 __kmpc_omp_wait_deps (LocRef, Ctx->gtid , Deps->ndeps , Deps->deplist ,
@@ -300,7 +299,7 @@ int __tgt_interop_use(ident_t *LocRef, omp_interop_val_t *Interop,
300299 }
301300
302301 if (Interop->async_info && Interop->async_info ->Queue ) {
303- if (nowait )
302+ if (Nowait )
304303 Interop->asyncBarrier ();
305304 else {
306305 Interop->flush ();
@@ -333,16 +332,16 @@ int __tgt_interop_release(ident_t *LocRef, omp_interop_val_t *Interop,
333332}
334333
335334EXTERN int ompx_interop_add_completion_callback (omp_interop_val_t *Interop,
336- ompx_interop_cb_t *cb ,
337- void *data ) {
335+ ompx_interop_cb_t *CB ,
336+ void *Data ) {
338337 DP (" Call to %s with interop " DPxMOD " , property callback " DPxMOD
339338 " and data " DPxMOD " \n " ,
340- __func__, DPxPTR (Interop), DPxPTR (cb ), DPxPTR (data ));
339+ __func__, DPxPTR (Interop), DPxPTR (CB ), DPxPTR (Data ));
341340
342341 if (OffloadPolicy::get (*PM).Kind == OffloadPolicy::DISABLED || !Interop)
343342 return omp_irc_other;
344343
345- Interop->addCompletionCb (cb, data );
344+ Interop->addCompletionCb (CB, Data );
346345
347346 return omp_irc_success;
348347}
@@ -433,15 +432,15 @@ int32_t omp_interop_val_t::release() {
433432 return release (Device);
434433}
435434
436- void syncImplicitInterops (int gtid , void *event ) {
435+ void syncImplicitInterops (int Gtid , void *Event ) {
437436 if (PM->InteropTbl .size () == 0 )
438437 return ;
439438
440439 DP (" target_sync: syncing interops for gtid %" PRId32 " , event " DPxMOD " \n " ,
441- gtid , DPxPTR (event ));
440+ Gtid , DPxPTR (Event ));
442441
443442 for (auto iop : PM->InteropTbl ) {
444- if (iop->async_info && iop->async_info ->Queue && iop->isOwnedBy (gtid ) &&
443+ if (iop->async_info && iop->async_info ->Queue && iop->isOwnedBy (Gtid ) &&
445444 !iop->isClean ()) {
446445
447446 iop->flush ();
0 commit comments