SWDEV-380903 - Add program lock

Create seperate locks for program and HSAIL

Change-Id: I7c826ed9c2f2d839d359e5158f578830655616fd
Цей коміт міститься в:
taosang2 authored and Maneesh Gupta committed 2023-04-05 07:50:16 +00:00
1 джерело 7b419f42eb
коміт 82d2213cfa
4 files changed
+29 -31

No files matched your search

+4
Переглянути файл
@@ -119,6 +119,10 @@ class Program : public amd::HeapObject {
typedef enum { InitKernel = 0, FiniKernel } kernel_kind_t; //!< Kernel kind
bool runInitFiniKernel(kernel_kind_t) const;
#if defined(WITH_COMPILER_LIB)
static amd::Monitor buildLock_; //!< Global build lock for HSAIL which isn't thread-safe
#endif
protected:
union {
struct {