SWDEV-240803 - add hipFuncSetSharedMemConfig

Change-Id: I160b04677b3e7b99b3981ae7ecc84a0e3811d5e8


[ROCm/clr commit: a243a69e98]
Dieser Commit ist enthalten in:
Todd tiantuo Li
2020-08-18 05:19:01 -07:00
Ursprung 6443ff4197
Commit 49910cc949
7 geänderte Dateien mit 37 neuen und 2 gelöschten Zeilen
+8
Datei anzeigen
@@ -1416,6 +1416,14 @@ hipError_t hipFuncSetAttribute(const void* func, hipFuncAttribute attr, int valu
return ihipLogStatus(hipSuccess);
}
hipError_t hipFuncSetSharedMemConfig(const void* func, hipSharedMemConfig config) {
HIP_INIT_API(hipFuncSetSharedMemConfig, func, config);
// Nop, AMD does not support setting shared memory size for function.
return ihipLogStatus(hipSuccess);
}
hipError_t hipFuncGetAttribute(int* value, hipFunction_attribute attrib, hipFunction_t hfunc)
{
HIP_INIT_API(hipFuncGetAttribute, value, attrib, hfunc);