diff --git a/bioem_cuda.cu b/bioem_cuda.cu index 4b3355c19d804a4b4e1c9c6d729669f08ee66d8b..992643ad7de5934008ae37d082cc7e43426f6394 100644 --- a/bioem_cuda.cu +++ b/bioem_cuda.cu @@ -946,7 +946,7 @@ int bioem_cuda::deviceExit() delete gpumap; delete initialized_const; - cudaThreadExit(); + cudaDeviceReset(); deviceInitialized = 0; return (0); @@ -1037,7 +1037,7 @@ int bioem_cuda::deviceFinishRun() break; } - cudaThreadSynchronize(); + cudaDeviceSynchronize(); if (GPUWorkload < 100) { pProb.copyFrom(pProb_host, *this);