SWDEV-374400, SWDEV-374404 - Change error message in hipFuncGetAttribute(s) to match nvidia.
Change-Id: I95b69a49ced24115f0aebc288ea067a49b770aca
[ROCm/clr commit: 97c5f772c6]
Ta zmiana jest zawarta w:
%! (template.HTML=
Ioannis Assiouras)złożyło 2022-12-20 12:49:17 -05:00
1 rodzic
23b51242fd
złożenie
c4d2a2c557
2 plików zmienionych
+5
-2
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -114,7 +114,7 @@ hipError_t hipModuleGetGlobal(hipDeviceptr_t* dptr, size_t* bytes, hipModule_t h
|
||||
hipError_t hipFuncGetAttribute(int* value, hipFunction_attribute attrib, hipFunction_t hfunc) {
|
||||
HIP_INIT_API(hipFuncGetAttribute, value, attrib, hfunc);
|
||||
|
||||
if ((value == nullptr) || (hfunc == nullptr)) {
|
||||
if ((value == nullptr)) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -860,9 +860,12 @@ hipError_t PlatformState::getStatFunc(hipFunction_t* hfunc, const void* hostFunc
|
||||
|
||||
hipError_t PlatformState::getStatFuncAttr(hipFuncAttributes* func_attr, const void* hostFunction,
|
||||
int deviceId) {
|
||||
if (func_attr == nullptr || hostFunction == nullptr) {
|
||||
if (func_attr == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
if (hostFunction == nullptr) {
|
||||
return hipErrorInvalidDeviceFunction;
|
||||
}
|
||||
return statCO_.getStatFuncAttr(func_attr, hostFunction, deviceId);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika