|
@@ -25,7 +25,10 @@ extern "C" void cuda_host_increment(void *descr[], void *_args)
|
|
|
{
|
|
|
(void)_args;
|
|
|
unsigned *var = (unsigned *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
|
+ cudaError_t cures;
|
|
|
|
|
|
cuda_increment<<<1,1, 0, starpu_cuda_get_local_stream()>>>(var);
|
|
|
- cudaStreamSynchronize(starpu_cuda_get_local_stream());
|
|
|
+ cures = cudaStreamSynchronize(starpu_cuda_get_local_stream());
|
|
|
+ if (cures != cudaSuccess)
|
|
|
+ STARPU_CUDA_REPORT_ERROR(cures);
|
|
|
}
|