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


[ROCm/clr commit: c46f843b99]
This commit is contained in:
Marko Arandjelovic authored and Marko Arandjelovic committed 2025-01-16 10:16:42 -05:00
1 parent 67c93c3bad
commit 8647bb483b
4 files changed
+27 -17

No files matched your search

+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_);