SWDEV-550231 - fix hipGetDriverEntryPoint_common (#651)

This commit is contained in:
Todd tiantuo Li authored and GitHub committed 2025-08-21 18:57:16 -07:00
1 parent a77f7d5770
commit bbf0d34b48
1 file changed
+2 -2
@@ -737,11 +737,11 @@ hipError_t hipGetDriverEntryPoint_common(const char* symbol, void** funcPtr,
}
*funcPtr = amd::Os::getSymbol(handle, symbolString.c_str());
if (funcPtr == nullptr) {
if (*funcPtr == nullptr) {
if (flags == hipEnablePerThreadDefaultStream) {
*funcPtr = amd::Os::getSymbol(handle, symbol);
}
if (funcPtr == nullptr) {
if (*funcPtr == nullptr) {
if (status != nullptr) {
*status = hipDriverEntryPointSymbolNotFound;
}