Skip to content
Snippets Groups Projects
Commit 423546f3 authored by Russel Arbore's avatar Russel Arbore
Browse files

cuda moment

parent 9221e968
No related branches found
No related tags found
1 merge request!194Remove `cudaDeviceSynchronize`
Pipeline #201792 passed
This commit is part of merge request !194. Comments created here will be created in the context of that merge request.
...@@ -661,12 +661,6 @@ extern \"C\" {} {}(", ...@@ -661,12 +661,6 @@ extern \"C\" {} {}(",
w, w,
"\tif (cudaSuccess != err) {{ printf(\"Error1: %s\\n\", cudaGetErrorString(err)); }}\n" "\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 { if has_ret_var {
// Copy return from device to host, whether it's primitive value or collection pointer // Copy return from device to host, whether it's primitive value or collection pointer
write!(w, "\t{} host_ret;\n", ret_type)?; 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