launch_vector_add

Function launch_vector_add 

Source
pub unsafe fn launch_vector_add(
    stream: &Arc<CudaStream>,
    func: &CudaFunction,
    a_ptr: u64,
    b_ptr: u64,
    c_ptr: u64,
    n: u32,
) -> Result<()>
Expand description

2026-09-25: Launch func with (a_ptr, b_ptr, c_ptr, n) in ceil(n / 256) blocks of 256 threads, through cudarc’s launch builder.

§Safety

All pointers must be valid CUDA device pointers to f32 arrays of length >= n.