cubecl_hip_sys

Function hipModuleOccupancyMaxActiveBlocksPerMultiprocessor

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

@brief Returns occupancy for a device function.

@param [out] numBlocks Returned occupancy @param [in] f Kernel function (hipFunction) 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 @returns #hipSuccess, #hipErrorInvalidValue