Add HSA signal global tracking logic.

Implement the global class for signals tracking per device queue.
Switch to the new tracking mechanism.

Change-Id: I3c4dda04b34e6d18d6a95510d84102909633b415


[ROCm/clr commit: 8698aeef0d]
이 커밋은 다음에 포함됨:
German Andryeyev가 2021-01-08 12:57:33 -05:00를 커밋했습니다
1 부모 a962e2d0b3
커밋 30cf81fc93
6 파일이 변경됨
+284 -289

검색과 일치하는 파일 없음

+5
파일 보기
@@ -260,7 +260,12 @@ Device::~Device() {
context().svmFree(coopHostcallBuffer_);
coopHostcallBuffer_ = nullptr;
}
if (0 != prefetch_signal_.handle) {
hsa_signal_destroy(prefetch_signal_);
}
}
bool NullDevice::initCompiler(bool isOffline) {
#if defined(WITH_COMPILER_LIB)
// Initialize the compiler handle if has already not been initialized