Skip to main content

check

Function check 

Source
pub fn check(result: u32) -> CudaResult<()>
Expand description

Convert a raw CUresult into a CudaResult<()>.

Returns Ok(()) for CUDA_SUCCESS (0), otherwise wraps the code in the corresponding CudaError variant.