SWDEV-306410 - Remove program lock

Remove global program lock in order to fix too
long kernel launch overhead with multi-threads
on MGPUs.
This patch depends on a compiler patch that makes
LC thread safe.
Change-Id: Ic8a7374d19112764d6de5d483ec5d07a56661d1b


[ROCm/clr commit: 3b2a8f3c8b]
This commit is contained in:
Tao Sang
2022-11-07 15:12:13 -05:00
committed by Tao Sang
vanhempi d992a8aeca
commit c0a12bbbb5
2 muutettua tiedostoa jossa 0 lisäystä ja 11 poistoa
@@ -126,9 +126,6 @@ class Program : public RuntimeObject {
//! Clears the program object if the app attempts to rebuild the program
void clear();
//! Global build lock (remove when LLVM is thread-safe).
static Monitor buildLock_;
public:
//! Construct a new program to be compiled from the given source code.
Program(Context& context, const std::string& sourceCode, Language language,