pub fn register_vec<T: Copy>( vec: &mut Vec<T>, flags: RegisterFlags, ) -> CudaResult<RegisteredMemory<T>>
Convenience: registers a Vec<T> with the CUDA driver.
Vec<T>
The Vec must not be reallocated (e.g. via push, resize) while the returned handle is alive, as that would invalidate the registered pointer.
Vec
push
resize
Same as register.
register