From 47c4c7bacf4e498f08aecac4fca28d74cbd527f8 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Fri, 20 Dec 2019 17:25:47 -0600 Subject: [PATCH] Disable SDMA on gfx10. Lack of cache controls only allow operating SDMA at agent scope. All copy APIs are defined at system scope so may result in data errors. Change-Id: I9cd10007defddcbf8feb14a2e3daa1ba17c0489f [ROCm/ROCR-Runtime commit: 22a601292d74fa4a6944f700890192366c3d33d7] --- .../runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index fc3db586fe..b2acd54afe 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -533,7 +533,7 @@ void GpuAgent::InitDma() { auto blit_lambda = [this](bool use_xgmi, lazy_ptr& queue) { const std::string& sdma_override = core::Runtime::runtime_singleton_->flag().enable_sdma(); - bool use_sdma = (isa_->GetMajorVersion() != 8); + bool use_sdma = ((isa_->GetMajorVersion() != 8) && (isa_->GetMajorVersion() != 10)); if (sdma_override.size() != 0) use_sdma = (sdma_override == "1"); if (use_sdma && (HSA_PROFILE_BASE == profile_)) {