Function hip_sys::hiprt::hipFuncSetAttribute
source · pub unsafe extern "C" fn hipFuncSetAttribute(
func: *const c_void,
attr: hipFuncAttribute,
value: i32
) -> hipError_tExpand description
@} / /**
@defgroup Execution Execution Control @{ This section describes the execution control functions of HIP runtime API.
/ /** @brief Set attribute for a specific function
@param [in] func; @param [in] attr; @param [in] value;
@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.