HIP: Heterogenous-computing Interface for Portability
|
This section describes the execution control functions of HIP runtime API. More...
Functions | |
hipError_t | hipFuncSetAttribute (const void *func, hipFuncAttribute attr, int value) |
Set attribute for a specific function. More... | |
hipError_t | hipFuncSetCacheConfig (const void *func, hipFuncCache_t config) |
Set Cache configuration for a specific function. More... | |
hipError_t | hipFuncSetSharedMemConfig (const void *func, hipSharedMemConfig config) |
Set shared memory configuation for a specific function. More... | |
This section describes the execution control functions of HIP runtime API.
hipError_t hipFuncSetAttribute | ( | const void * | func, |
hipFuncAttribute | attr, | ||
int | value | ||
) |
Set attribute for a specific function.
[in] | func; | |
[in] | attr; | |
[in] | value; |
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
hipError_t hipFuncSetCacheConfig | ( | const void * | func, |
hipFuncCache_t | config | ||
) |
Set Cache configuration for a specific function.
[in] | config; |
hipError_t hipFuncSetSharedMemConfig | ( | const void * | func, |
hipSharedMemConfig | config | ||
) |
Set shared memory configuation for a specific function.
[in] | func | |
[in] | config |
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.