cubecl_hip_sys

Function hipDeviceGetSharedMemConfig

Source
pub unsafe extern "C" fn hipDeviceGetSharedMemConfig(
    pConfig: *mut hipSharedMemConfig,
) -> hipError_t
Expand description

@brief Returns bank width of shared memory for current device

@param [out] pConfig The pointer of the bank width for shared memory

@returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotInitialized

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