Commit c2fca6da authored by Luka Stanisic's avatar Luka Stanisic

replace deprecated CUDA functions with the renamed (correct) ones to ensure...

replace deprecated CUDA functions with the renamed (correct) ones to ensure compatibility with CUDA 10
parent bfe38655
Pipeline #41102 passed with stages
in 1 minute and 4 seconds
...@@ -946,7 +946,7 @@ int bioem_cuda::deviceExit() ...@@ -946,7 +946,7 @@ int bioem_cuda::deviceExit()
delete gpumap; delete gpumap;
delete initialized_const; delete initialized_const;
cudaThreadExit(); cudaDeviceReset();
deviceInitialized = 0; deviceInitialized = 0;
return (0); return (0);
...@@ -1037,7 +1037,7 @@ int bioem_cuda::deviceFinishRun() ...@@ -1037,7 +1037,7 @@ int bioem_cuda::deviceFinishRun()
break; break;
} }
cudaThreadSynchronize(); cudaDeviceSynchronize();
if (GPUWorkload < 100) if (GPUWorkload < 100)
{ {
pProb.copyFrom(pProb_host, *this); pProb.copyFrom(pProb_host, *this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment