diff options
Diffstat (limited to 'offload/libomptarget/OpenMP')
| -rw-r--r-- | offload/libomptarget/OpenMP/InteropAPI.cpp | 2 | ||||
| -rw-r--r-- | offload/libomptarget/OpenMP/Mapping.cpp | 20 |
2 files changed, 14 insertions, 8 deletions
diff --git a/offload/libomptarget/OpenMP/InteropAPI.cpp b/offload/libomptarget/OpenMP/InteropAPI.cpp index a694af1..2eaf376 100644 --- a/offload/libomptarget/OpenMP/InteropAPI.cpp +++ b/offload/libomptarget/OpenMP/InteropAPI.cpp @@ -219,7 +219,7 @@ omp_interop_val_t *__tgt_interop_get(ident_t *LocRef, int32_t InteropType, auto DeviceOrErr = PM->getDevice(DeviceNum); if (!DeviceOrErr) { - [[maybe_unused]] std::string ErrStr = toString(DeviceOrErr.takeError()); + std::string ErrStr = toString(DeviceOrErr.takeError()); ODBG(ODT_Interface) << "Couldn't find device " << DeviceNum << " while constructing interop object: " << ErrStr; return omp_interop_none; diff --git a/offload/libomptarget/OpenMP/Mapping.cpp b/offload/libomptarget/OpenMP/Mapping.cpp index c71728c..b8edd79 100644 --- a/offload/libomptarget/OpenMP/Mapping.cpp +++ b/offload/libomptarget/OpenMP/Mapping.cpp @@ -83,10 +83,14 @@ int MappingInfoTy::associatePtr(void *HstPtrBegin, void *TgtPtrBegin, /*UseHoldRefCount=*/false, /*Name=*/nullptr, /*IsRefCountINF=*/true)) .first->HDTT; - ODBG(ODT_Mapping) << "Creating new map entry: HstBase=" << NewEntry.HstPtrBase - << ", HstBegin=" << NewEntry.HstPtrBegin - << ", HstEnd=" << NewEntry.HstPtrEnd - << ", TgtBegin=" << NewEntry.TgtPtrBegin + ODBG(ODT_Mapping) << "Creating new map entry: HstBase=" + << reinterpret_cast<void *>(NewEntry.HstPtrBase) + << ", HstBegin=" + << reinterpret_cast<void *>(NewEntry.HstPtrBegin) + << ", HstEnd=" + << reinterpret_cast<void *>(NewEntry.HstPtrEnd) + << ", TgtBegin=" + << reinterpret_cast<void *>(NewEntry.TgtPtrBegin) << ", DynRefCount=" << NewEntry.dynRefCountToStr() << ", HoldRefCount=" << NewEntry.holdRefCountToStr(); (void)NewEntry; @@ -502,9 +506,11 @@ int MappingInfoTy::deallocTgtPtrAndEntry(HostDataToTargetTy *Entry, int64_t Size) { assert(Entry && "Trying to deallocate a null entry."); - ODBG(ODT_Mapping) << "Deleting tgt data " << Entry->TgtPtrBegin << " of size " - << Size << " by freeing allocation " - << "starting at " << Entry->TgtAllocBegin; + ODBG(ODT_Mapping) << "Deleting tgt data " + << reinterpret_cast<void *>(Entry->TgtPtrBegin) + << " of size " << Size << " by freeing allocation " + << "starting at " + << reinterpret_cast<void *>(Entry->TgtAllocBegin); void *Event = Entry->getEvent(); if (Event && Device.destroyEvent(Event) != OFFLOAD_SUCCESS) { |
