Skip to main content

checked

Function checked 

Source
pub fn checked(op: &'static str, status: u32) -> Result<(), DriverError>
Expand description

Ok when status says the call to op succeeded.

Success is zero, which the runtime and the JIT compiler of both the CUDA and HIP families agree on even though their failures are numbered differently. op is what tells a reader which numbering a code belongs to.

ยงErrors

DriverError, which ? turns into whichever error the caller returns.