Commit 67a41d2e authored by Pavel Kus's avatar Pavel Kus

replacing deprecated cudaThreadSynchronize

with cudaDeviceSynchronize
parent 57821b44
......@@ -114,9 +114,13 @@ extern "C" {
}
int cudaThreadSynchronizeFromC() {
cudaError_t cuerr = cudaThreadSynchronize();
// cudaThreadSynchronize is deprecated
// cudaDeviceSynchronize should replace it
// it is currently not used in ELPA anyways
//cudaError_t cuerr = cudaThreadSynchronize();
cudaError_t cuerr = cudaDeviceSynchronize();
if (cuerr != cudaSuccess) {
errormessage("Error in cudaThreadSynchronize: %s\n",cudaGetErrorString(cuerr));
errormessage("Error in cudaDeviceSynchronize: %s\n",cudaGetErrorString(cuerr));
return 0;
}
return 1;
......
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