diff --git a/openmp/libomptarget/plugins/cuda/src/rtl.cpp b/openmp/libomptarget/plugins/cuda/src/rtl.cpp --- a/openmp/libomptarget/plugins/cuda/src/rtl.cpp +++ b/openmp/libomptarget/plugins/cuda/src/rtl.cpp @@ -95,7 +95,7 @@ if (Err == CUDA_SUCCESS) return true; - DP(ErrMsg); + DP("%s", ErrMsg); CUDA_ERR_STRING(Err); return false; } @@ -795,8 +795,8 @@ return OFFLOAD_SUCCESS; DP("Error returned from cuMemcpyPeerAsync. src_ptr = " DPxMOD - ", src_id =%" PRId32 ", dst_ptr = %" DPxMOD ", dst_id =%" PRId32 "\n", - SrcPtr, SrcDevId, DstPtr, DstDevId); + ", src_id =%" PRId32 ", dst_ptr = " DPxMOD ", dst_id =%" PRId32 "\n", + DPxPTR(SrcPtr), SrcDevId, DPxPTR(DstPtr), DstDevId); CUDA_ERR_STRING(Err); } @@ -891,7 +891,7 @@ // loop. CudaBlocksPerGrid = LoopTripCount; } - DP("Using %d teams due to loop trip count %" PRIu64 + DP("Using %d teams due to loop trip count %" PRIu32 " and number of threads per block %d\n", CudaBlocksPerGrid, LoopTripCount, CudaThreadsPerBlock); } else {