Function
memcpy_htod
(
d_ptr: cust_raw::CUdeviceptr,
src_ptr: *const c_void,
size: usize,
)
Source from the content-addressed store, hash-verified
| 206 | /// Simple wrapper over cuMemcpyHtoD_v2 |
| 207 | #[allow(clippy::missing_safety_doc)] |
| 208 | pub unsafe fn memcpy_htod( |
| 209 | d_ptr: cust_raw::CUdeviceptr, |
| 210 | src_ptr: *const c_void, |
| 211 | size: usize, |
| 212 | ) -> CudaResult<()> { |
| 213 | crate::sys::cuMemcpyHtoD_v2(d_ptr, src_ptr, size).to_result()?; |
| 214 | Ok(()) |
| 215 | } |
| 216 | |
| 217 | /// Get the current free and total memory. |
| 218 | /// |
Tested by
no test coverage detected