SWDEV-504084 - Make hipModuleGetFunction use the device the module is loaded on

If a module is loaded on one device, hipModuleGetFunction and other similar APIs should be able to run successfully from another device.

Change-Id: I96084cbd6c6dcf2a81019779a6ab1842ef2f35d1
This commit is contained in:
Marko Arandjelovic
2024-12-19 11:20:24 +00:00
committed by Marko Arandjelovic
parent 5e3a29078d
commit c46f843b99
4 changed files with 27 additions and 17 deletions
+1 -1
View File
@@ -760,7 +760,7 @@ hipError_t PlatformState::loadModule(hipModule_t* module, const char* fname, con
return hip_error;
}
*module = dynCo->module();
*module = dynCo->getModule();
assert(*module != nullptr);
amd::ScopedLock lock(lock_);