Sfoglia il codice sorgente

print the error string, not only the value

Samuel Thibault 10 anni fa
parent
commit
7e8b37842d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/drivers/cuda/driver_cuda.c

+ 1 - 1
src/drivers/cuda/driver_cuda.c

@@ -716,7 +716,7 @@ int _starpu_cuda_driver_run_once(struct _starpu_worker_set *worker_set)
 
 		if (cures != cudaSuccess)
 		{
-			STARPU_ASSERT_MSG(cures == cudaErrorNotReady, "CUDA error on task %p, codelet %p: %d", task, task->cl, cures);
+			STARPU_ASSERT_MSG(cures == cudaErrorNotReady, "CUDA error on task %p, codelet %p: %s (%d)", task, task->cl, cudaGetErrorString(cures), cures);
 		}
 		else
 #endif /* !STARPU_SIMGRID */