[Openmp-commits] [PATCH] D96812: [OpenMP][NFC] Eliminate sign comparison warning via explicit casts
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Feb 16 13:37:55 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGad94fce8458e: [OpenMP][NFC] Eliminate sign comparison warning via explicit casts (authored by jdoerfert).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96812/new/
https://reviews.llvm.org/D96812
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
@@ -229,7 +229,7 @@
const std::lock_guard<std::mutex> Lock(*StreamMtx[DeviceId]);
int &Id = NextStreamId[DeviceId];
// No CUstream left in the pool, we need to request from CUDA RT
- if (Id == StreamPool[DeviceId].size()) {
+ if (Id == static_cast<int>(StreamPool[DeviceId].size())) {
// By default we double the stream pool every time
resizeStreamPool(DeviceId, Id * 2);
}
@@ -263,7 +263,7 @@
resizeStreamPool(DeviceId, EnvNumInitialStreams);
// Check the size of stream pool
- if (StreamPool[DeviceId].size() != EnvNumInitialStreams)
+ if (static_cast<int>(StreamPool[DeviceId].size()) != EnvNumInitialStreams)
return false;
// Check whether each stream is valid
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96812.324099.patch
Type: text/x-patch
Size: 955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210216/2d9fac51/attachment.bin>
More information about the Openmp-commits
mailing list