Skip to main content

access_all_2

Function access_all_2 

Source
pub fn access_all_2<A, B>(
    a: &GpuRef<A>,
    b: &GpuRef<B>,
) -> Result<(Arc<CudaSlice<A>>, Arc<CudaSlice<B>>), GpuError>
Expand description

Validate two input GpuRefs and return owning Arcs of their underlying slices. Fails fast (synchronously) with GpuRefStale if either is invalid.