Add experimental option to force discovery of all copy agents.

Discards all user provided async copy agent info and relies on
pointer info discovery.

Change-Id: Ife3e708a49ffccbede4983ab47d5ed0032970857


[ROCm/ROCR-Runtime commit: 3ebe99f96d]
This commit is contained in:
Sean Keely
2022-04-29 16:35:49 -05:00
rodzic 3fd1f5696e
commit a1f04fe1ed
2 zmienionych plików z 13 dodań i 6 usunięć
@@ -153,6 +153,9 @@ class Flag {
// Will become opt-out and possibly removed in future releases.
var = os::GetEnvVar("HSA_COOP_CU_COUNT");
coop_cu_count_ = (var == "1") ? true : false;
var = os::GetEnvVar("HSA_DISCOVER_COPY_AGENTS");
discover_copy_agents_ = (var == "1") ? true : false;
}
void parse_masks(uint32_t maxGpu, uint32_t maxCU) {
@@ -221,6 +224,8 @@ class Flag {
bool coop_cu_count() const { return coop_cu_count_; }
bool discover_copy_agents() const { return discover_copy_agents_; }
private:
bool check_flat_scratch_;
bool enable_vm_fault_message_;
@@ -241,6 +246,7 @@ class Flag {
bool debug_;
bool cu_mask_skip_init_;
bool coop_cu_count_;
bool discover_copy_agents_;
SDMA_OVERRIDE enable_sdma_;