Adding checks for return type compatibility with CUDA
Change-Id: I09b6bd9a7299f0a97ac9011ea0903a1f81e28251
[ROCm/clr commit: d752b6d14b]
Tá an tiomantas seo le fáil i:
tiomanta ag
Jatin Chaudhary
tuismitheoir
9734ad0e68
tiomantas
c04f949c1d
@@ -773,6 +773,9 @@ hipError_t PlatformState::getDynFunc(hipFunction_t* hfunc, hipModule_t hmod,
|
||||
DevLogPrintfError("Cannot find the module: 0x%x", hmod);
|
||||
return hipErrorNotFound;
|
||||
}
|
||||
if (0 == strlen(func_name)) {
|
||||
return hipErrorNotFound;
|
||||
}
|
||||
|
||||
return it->second->getDynFunc(hfunc, func_name);
|
||||
}
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir