cubecl_hip_sys

Function hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags

Source
pub unsafe extern "C" fn hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(
    numBlocks: *mut c_int,
    f: hipFunction_t,
    blockSize: c_int,
    dynSharedMemPerBlk: usize,
    flags: c_uint,
) -> hipError_t
Expand description

@brief Returns occupancy for a device function.

@param [out] numBlocks Returned occupancy @param [in] f Kernel function(hipFunction_t) for which occupancy is calulated @param [in] blockSize Block size the kernel is intended to be launched with @param [in] dynSharedMemPerBlk Dynamic shared memory usage (in bytes) intended for each block @param [in] flags Extra flags for occupancy calculation (only default supported) @returns #hipSuccess, #hipErrorInvalidValue