Skip to content
Snippets Groups Projects
Commit ae9f7602 authored by rarbore2's avatar rarbore2
Browse files

Merge branch 'cuda_remove_sync' into 'main'

Remove `cudaDeviceSynchronize`

See merge request !194
parents 9221e968 4367b143
No related branches found
No related tags found
1 merge request!194Remove `cudaDeviceSynchronize`
Pipeline #201793 passed
......@@ -661,12 +661,6 @@ extern \"C\" {} {}(",
w,
"\tif (cudaSuccess != err) {{ printf(\"Error1: %s\\n\", cudaGetErrorString(err)); }}\n"
)?;
write!(w, "\tcudaDeviceSynchronize();\n")?;
write!(w, "\terr = cudaGetLastError();\n")?;
write!(
w,
"\tif (cudaSuccess != err) {{ printf(\"Error2: %s\\n\", cudaGetErrorString(err)); }}\n"
)?;
if has_ret_var {
// Copy return from device to host, whether it's primitive value or collection pointer
write!(w, "\t{} host_ret;\n", ret_type)?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment