SWDEV-446959 - Check fatbinaryinfo for nullptr and return hipErrorInvalidDevice.
Change-Id: Iabc0d8b66ddf73a92e67dd469f1a8bc0b54b9309
[ROCm/clr commit: 8a715ba58c]
Bu işleme şunda yer alıyor:
1 ebeveyn
e78cae6434
işleme
d30e344ae0
1 file changed
+4
-1
@@ -167,7 +167,10 @@ hipError_t Function::getStatFunc(hipFunction_t* hfunc, int deviceId) {
|
||||
}
|
||||
|
||||
hipError_t Function::getStatFuncAttr(hipFuncAttributes* func_attr, int deviceId) {
|
||||
guarantee((modules_ != nullptr), "Module not initialized");
|
||||
|
||||
if (modules_ == nullptr || *modules_ == nullptr) {
|
||||
return hipErrorInvalidDeviceFunction;
|
||||
}
|
||||
|
||||
hipModule_t hmod = nullptr;
|
||||
IHIP_RETURN_ONFAIL((*modules_)->BuildProgram(deviceId));
|
||||
|
||||
Reference in new issue
Bir kullanıcı engelle