Skip to content
Snippets Groups Projects

Remove `cudaDeviceSynchronize`

Merged rarbore2 requested to merge cuda_remove_sync into main
1 file
+ 0
6
Compare changes
  • Side-by-side
  • Inline
+ 0
6
@@ -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)?;
Loading