cubecl_hip_sys

Function hipFuncSetSharedMemConfig

Source
pub unsafe extern "C" fn hipFuncSetSharedMemConfig(
    func: *const c_void,
    config: hipSharedMemConfig,
) -> hipError_t
Expand description

@brief Set shared memory configuation for a specific function

@param [in] func Pointer of the function @param [in] config Configuration

@returns #hipSuccess, #hipErrorInvalidDeviceFunction, #hipErrorInvalidValue

Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.