Skip to main content

validate_shared_memory

Function validate_shared_memory 

Source
pub fn validate_shared_memory(
    properties: &DeviceProperties,
    requested: Option<usize>,
) -> Result<(), LaunchError>
Expand description

Validate the shared memory a compiled kernel asks for fits within the hardware limits. requested is None for a kernel with nothing to read it from — precompiled text declares its shared memory statically.