cubecl_hip_sys

Function hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags

Source
pub unsafe extern "C" fn hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(
    numBlocks: *mut c_int,
    f: *const c_void,
    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 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 (currently ignored) @returns #hipSuccess, #hipErrorInvalidDeviceFunction, #hipErrorInvalidValue