Add env var to toggle large bar support in runtime
Use ROC_ENABLE_LARGE_BAR (0/1) to toggle. The support is enabled by default. Change-Id: I6cb93a46594cb6f5e90bf6057738330225efb553
此提交包含在:
1 父節點
b4f1239f34
當前提交
d10d691e76
2 file changed
+6
-4
No files matched your search
@@ -896,7 +896,7 @@ hsa_status_t Device::iterateGpuMemoryPoolCallback(hsa_amd_memory_pool_t pool, vo
|
||||
if (tmp == HSA_AMD_MEMORY_POOL_ACCESS_NEVER_ALLOWED) {
|
||||
dev->info_.largeBar_ = false;
|
||||
} else {
|
||||
dev->info_.largeBar_ = true;
|
||||
dev->info_.largeBar_ = ROC_ENABLE_LARGE_BAR;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
封鎖使用者