(device_ptr: int, host_arr: np.ndarray)
| 222 | |
| 223 | # Wrapper for cudaMemcpy which infers copy size and does error checking |
| 224 | def memcpy_host_to_device(device_ptr: int, host_arr: np.ndarray): |
| 225 | nbytes = host_arr.size * host_arr.itemsize |
| 226 | cuda_call(cudart.cudaMemcpy(device_ptr, host_arr, nbytes, cudart.cudaMemcpyKind.cudaMemcpyHostToDevice)) |
| 227 | |
| 228 | |
| 229 | # Wrapper for cudaMemcpy which infers copy size and does error checking |
nothing calls this directly
no test coverage detected