Commit d74d2244 authored by Sebastian Kuckuk's avatar Sebastian Kuckuk
Browse files

fix bug in cuda data transfer generation

parent 6c0afe62
......@@ -38,10 +38,10 @@ object CUDA_TransferUtil {
case "D2H" => "cudaCpuDeviceId"
})
} else {
CUDA_Memcpy(deviceData, hostData, sizeInBytes, direction match {
case "H2D" => "cudaMemcpyHostToDevice"
case "D2H" => "cudaMemcpyDeviceToHost"
})
direction match {
case "H2D" => CUDA_Memcpy(deviceData, hostData, sizeInBytes, "cudaMemcpyHostToDevice")
case "D2H" => CUDA_Memcpy(hostData, deviceData, sizeInBytes, "cudaMemcpyDeviceToHost")
}
}
}
}
......
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