SWDEV-240803 - add hipFuncSetAttribute and hipFuncAttribute

Change-Id: I3f4d67b19d89fd348fa5b884af4a2542ee4aba60
Cette révision appartient à :
Todd tiantuo Li
2020-07-28 03:46:44 -07:00
Parent 6f8909be34
révision 9dfe15a843
7 fichiers modifiés avec 47 ajouts et 1 suppressions
+8
Voir le fichier
@@ -1408,6 +1408,14 @@ hipError_t hipFuncGetAttributes(hipFuncAttributes* attr, const void* func)
return ihipLogStatus(hipSuccess);
}
hipError_t hipFuncSetAttribute(const void* func, hipFuncAttribute attr, int value) {
HIP_INIT_API(hipFuncSetCacheConfig, func, attr, value);
// 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);