[Openmp-commits] [PATCH] D82789: [OpenMP] fix clang warning about printf format in CUDA plugin
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jun 29 19:47:43 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG45bb073da8ef: [OpenMP] fix clang warning about printf format in CUDA plugin (authored by ye-luo, committed by tianshilei1992).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82789/new/
https://reviews.llvm.org/D82789
Files:
openmp/libomptarget/plugins/cuda/src/rtl.cpp
Index: openmp/libomptarget/plugins/cuda/src/rtl.cpp
===================================================================
--- openmp/libomptarget/plugins/cuda/src/rtl.cpp
+++ 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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82789.274314.patch
Type: text/x-patch
Size: 1154 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200630/09649e98/attachment.bin>
More information about the Openmp-commits
mailing list