Loading openmp/libomptarget/src/omptarget.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -764,8 +764,9 @@ static int targetDataNonContiguous(ident_t *loc, DeviceTy &Device, } } else { char *Ptr = (char *)ArgsBase + Offset; DP("Transfer of non-contiguous : host ptr %lx offset %ld len %ld\n", (uint64_t)Ptr, Offset, Size); DP("Transfer of non-contiguous : host ptr " DPxMOD " offset %" PRIu64 " len %" PRIu64 "\n", DPxPTR(Ptr), Offset, Size); Ret = targetDataContiguous(loc, Device, ArgsBase, Ptr, Size, ArgType); } return Ret; Loading Loading @@ -894,7 +895,7 @@ uint64_t getLoopTripCount(int64_t DeviceId) { if (I != Device.LoopTripCnt.end()) { LoopTripCount = I->second; Device.LoopTripCnt.erase(I); DP("loop trip count is %lu.\n", LoopTripCount); DP("loop trip count is %" PRIu64 ".\n", LoopTripCount); } } Loading openmp/libomptarget/src/private.h +3 −3 Original line number Diff line number Diff line Loading @@ -112,9 +112,9 @@ static inline void dumpTargetPointerMappings(const ident_t *Loc, for (const auto &HostTargetMap : Device.HostDataToTargetMap) { SourceInfo Info(HostTargetMap.HstPtrName); INFO(OMP_INFOTYPE_ALL, Device.DeviceID, DPxMOD " " DPxMOD " %-8lu %-8ld %s at %s:%d:%d\n", DPxMOD " " DPxMOD " %-8" PRIuPTR " %-8" PRId64 " %s at %s:%d:%d\n", DPxPTR(HostTargetMap.HstPtrBegin), DPxPTR(HostTargetMap.TgtPtrBegin), (long unsigned)(HostTargetMap.HstPtrEnd - HostTargetMap.HstPtrBegin), HostTargetMap.HstPtrEnd - HostTargetMap.HstPtrBegin, HostTargetMap.getRefCount(), Info.getName(), Info.getFilename(), Info.getLine(), Info.getColumn()); } Loading Loading @@ -152,7 +152,7 @@ printKernelArguments(const ident_t *Loc, const int64_t DeviceId, else type = "use_address"; INFO(OMP_INFOTYPE_ALL, DeviceId, "%s(%s)[%ld] %s\n", type, INFO(OMP_INFOTYPE_ALL, DeviceId, "%s(%s)[%" PRId64 "] %s\n", type, getNameFromMapping(varName).c_str(), ArgSizes[i], implicit); } } Loading Loading
openmp/libomptarget/src/omptarget.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -764,8 +764,9 @@ static int targetDataNonContiguous(ident_t *loc, DeviceTy &Device, } } else { char *Ptr = (char *)ArgsBase + Offset; DP("Transfer of non-contiguous : host ptr %lx offset %ld len %ld\n", (uint64_t)Ptr, Offset, Size); DP("Transfer of non-contiguous : host ptr " DPxMOD " offset %" PRIu64 " len %" PRIu64 "\n", DPxPTR(Ptr), Offset, Size); Ret = targetDataContiguous(loc, Device, ArgsBase, Ptr, Size, ArgType); } return Ret; Loading Loading @@ -894,7 +895,7 @@ uint64_t getLoopTripCount(int64_t DeviceId) { if (I != Device.LoopTripCnt.end()) { LoopTripCount = I->second; Device.LoopTripCnt.erase(I); DP("loop trip count is %lu.\n", LoopTripCount); DP("loop trip count is %" PRIu64 ".\n", LoopTripCount); } } Loading
openmp/libomptarget/src/private.h +3 −3 Original line number Diff line number Diff line Loading @@ -112,9 +112,9 @@ static inline void dumpTargetPointerMappings(const ident_t *Loc, for (const auto &HostTargetMap : Device.HostDataToTargetMap) { SourceInfo Info(HostTargetMap.HstPtrName); INFO(OMP_INFOTYPE_ALL, Device.DeviceID, DPxMOD " " DPxMOD " %-8lu %-8ld %s at %s:%d:%d\n", DPxMOD " " DPxMOD " %-8" PRIuPTR " %-8" PRId64 " %s at %s:%d:%d\n", DPxPTR(HostTargetMap.HstPtrBegin), DPxPTR(HostTargetMap.TgtPtrBegin), (long unsigned)(HostTargetMap.HstPtrEnd - HostTargetMap.HstPtrBegin), HostTargetMap.HstPtrEnd - HostTargetMap.HstPtrBegin, HostTargetMap.getRefCount(), Info.getName(), Info.getFilename(), Info.getLine(), Info.getColumn()); } Loading Loading @@ -152,7 +152,7 @@ printKernelArguments(const ident_t *Loc, const int64_t DeviceId, else type = "use_address"; INFO(OMP_INFOTYPE_ALL, DeviceId, "%s(%s)[%ld] %s\n", type, INFO(OMP_INFOTYPE_ALL, DeviceId, "%s(%s)[%" PRId64 "] %s\n", type, getNameFromMapping(varName).c_str(), ArgSizes[i], implicit); } } Loading