File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
openmp/libomptarget/plugins/cuda/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ class StreamManagerTy {
229
229
const std::lock_guard<std::mutex> Lock (*StreamMtx[DeviceId]);
230
230
int &Id = NextStreamId[DeviceId];
231
231
// No CUstream left in the pool, we need to request from CUDA RT
232
- if (Id == StreamPool[DeviceId].size ()) {
232
+ if (Id == static_cast < int >( StreamPool[DeviceId].size () )) {
233
233
// By default we double the stream pool every time
234
234
resizeStreamPool (DeviceId, Id * 2 );
235
235
}
@@ -263,7 +263,7 @@ class StreamManagerTy {
263
263
resizeStreamPool (DeviceId, EnvNumInitialStreams);
264
264
265
265
// Check the size of stream pool
266
- if (StreamPool[DeviceId].size () != EnvNumInitialStreams)
266
+ if (static_cast < int >( StreamPool[DeviceId].size () ) != EnvNumInitialStreams)
267
267
return false ;
268
268
269
269
// Check whether each stream is valid
You can’t perform that action at this time.
0 commit comments