Block ROCm 4.1+ running against 4.0 and prior kfd.

Sramecc is misreported in kfd 4.0 and prior.  To prevent possible
corruption due to d16 instructions, deny use of gfx906 with older
kfds and correct misreport for gfx908.  Denial of gfx906 may be
overridden by setting HSA_IGNORE_SRAMECC_MISREPORT=1.

Change-Id: I7d5c3a716fad01c348f8b88cd508cedbf914c989
This commit is contained in:
Sean Keely
2021-03-10 13:59:31 -06:00
parent 72fa4a17fa
commit 45fbe5b192
4 changed files with 50 additions and 7 deletions
+2 -1
View File
@@ -1266,7 +1266,8 @@ Runtime::Runtime()
sys_clock_freq_(0),
vm_fault_event_(nullptr),
vm_fault_signal_(nullptr),
ref_count_(0) {}
ref_count_(0),
kfd_version{0} {}
hsa_status_t Runtime::Load() {
flag_.Refresh();