Skip to main content

register_vec

Function register_vec 

Source
pub fn register_vec<T: Copy>(
    vec: &mut Vec<T>,
    flags: RegisterFlags,
) -> CudaResult<RegisteredMemory<T>>
Expand description

Convenience: registers a Vec<T> with the CUDA driver.

The Vec must not be reallocated (e.g. via push, resize) while the returned handle is alive, as that would invalidate the registered pointer.

ยงErrors

Same as register.