SWDEV-507019 - Change the function lock to the module lock

Multiple functions can be located in the same module.

Change-Id: Ia4ca3db64fe5b0822584059d3770c91103665c63
This commit is contained in:
German Andryeyev committed 2025-01-09 12:35:29 -05:00
1 förälder b62995ce1a
incheckning 45a12208b6
3 files changed
+5 -2

No files matched your search

+1 -1
Visa fil
@@ -162,7 +162,7 @@ hipError_t Function::getStatFunc(hipFunction_t* hfunc, int deviceId) {
*hfunc = dFunc_[deviceId]->asHipFunction();
return hipSuccess;
}
amd::ScopedLock lock(fc_lock_);
amd::ScopedLock lock((*modules_)->FatBinaryLock());
// Check for the compiled kernel again, to make sure only one thread does compilation
if (dFunc_[deviceId] != nullptr) {
*hfunc = dFunc_[deviceId]->asHipFunction();