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

Remove `cudaDeviceSynchronize`

parent 9221e968
No related branches found
No related tags found
1 merge request!194Remove `cudaDeviceSynchronize`
......@@ -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