Browse Source

Warn about missing concurrent kernel execution support even when running multistream workers in separate threads

Samuel Thibault 8 years ago
parent
commit
0452a05f97
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/drivers/cuda/driver_cuda.c

+ 2 - 3
src/drivers/cuda/driver_cuda.c

@@ -647,14 +647,13 @@ int _starpu_cuda_driver_init(struct _starpu_worker_set *worker_set)
 		{
 #ifdef STARPU_SIMGRID
 			STARPU_ASSERT_MSG(0, "Simgrid mode does not support concurrent kernel execution yet\n");
-#else /* !STARPU_SIMGRID */
-			if (props[devid].concurrentKernels == 0)
-				_STARPU_DISP("Warning: STARPU_NWORKER_PER_CUDA is %u, but the device does not support concurrent kernel execution!\n", worker_set->nworkers);
 #endif /* !STARPU_SIMGRID */
 
 			/* Already initialized */
 			continue;
 		}
+		if (worker->config->topology.nworkerpercuda > 1 && props[devid].concurrentKernels == 0)
+			_STARPU_DISP("Warning: STARPU_NWORKER_PER_CUDA is %u, but CUDA device %u does not support concurrent kernel execution!\n", worker_set->nworkers, devid);
 		lastdevid = devid;
 		init_device_context(devid, memnode);