Skip to main content

raw_attribute

Function raw_attribute 

Source
pub unsafe fn raw_attribute(
    attribute: i32,
    ptr: CUdeviceptr,
    out: *mut c_void,
) -> Result<()>
Expand description

Raw pointer-attribute query. attribute is one of baracuda_cuda_sys::types::CUpointer_attribute; the caller must provide a writable out of the correct size for that attribute.

§Safety

out must point to a buffer large enough to receive the attribute’s value type (typically 4 or 8 bytes). See NVIDIA’s driver API reference for per-attribute size.