Update dtoh_sync_copy
zjsec opened this issue · comments
pub fn dtoh_sync_copy<T: DeviceRepr>(
self: &Arc<Self>,
src: &CudaSlice<T>,
) -> Result<Vec<T>, result::DriverError>
Would it be better to modify it to the following?
pub fn dtoh_sync_copy<T: DeviceRepr, Src: DevicePtr<T>>(
self: &Arc<Self>,
src: &Src,
) -> Result<Vec<T>, result::DriverError>
Yes I think that'd be a nice improvement