Rust-GPU / Rust-CUDA

Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.
Apache License 2.0
3.02k stars 115 forks source link

Expose cuMemcpyDtoH_v2 in cust #45

Closed kjetilkjeka closed 2 years ago

kjetilkjeka commented 2 years ago

In the latest version (0.3.0) of cust cuMemcpyHtoD_v2 was exposed as cust::memory::memcpy_htod. This avoids the need for reaching into cust_raw and allows using cust::error::CudaResult instead of error codes.

Should cuMemcpyDtoH_v2 be exposed in a similar manner to enable the features above for device to host memcpy as well?

RDambrosio016 commented 2 years ago

Yeah it should be for consistency