SWDEV-507019 - Change the function lock to the module lock
Multiple functions can be located in the same module.
Change-Id: Ia4ca3db64fe5b0822584059d3770c91103665c63
[ROCm/clr commit: 45a12208b6]
Цей коміт міститься в:
@@ -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();
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача