Execution control#

hipError_t hipFuncSetAttribute(const void *func, hipFuncAttribute attr, int value)#

Set attribute for a specific function.

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

Parameters:
  • func[in] Pointer of the function

  • attr[in] Attribute to set

  • value[in] Value to set

Returns:

hipSuccess, hipErrorInvalidDeviceFunction, hipErrorInvalidValue

hipError_t hipFuncSetCacheConfig(const void *func, hipFuncCache_t config)#

Set Cache configuration for a specific function.

Parameters:
  • func[in] Pointer of the function.

  • config[in] Configuration to set.

Returns:

hipSuccess, hipErrorNotInitialized Note: AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.

hipError_t hipFuncSetSharedMemConfig(const void *func, hipSharedMemConfig config)#

Set shared memory configuation for a specific function.

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

Parameters:
  • func[in] Pointer of the function

  • config[in] Configuration

Returns:

hipSuccess, hipErrorInvalidDeviceFunction, hipErrorInvalidValue