From 3e3aa37750fa9986292b1a14294b1ec73e873e0f Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Mon, 11 Jun 2018 18:36:27 -0500 Subject: [PATCH] Enable SDMA use without platform atomic support. SDMA will use atomic completion fences if KFD reports 64bit atomic support. Otherwise it will fall back to store completion fences. Change-Id: I12b76f8a74ec3ee96372c250f9824d846051536e --- runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index 9e03a1290c..6502b87750 100644 --- a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -563,10 +563,8 @@ void GpuAgent::InitDma() { // Decide which engine to use for blits. auto blit_lambda = [this](bool h2d, lazy_ptr& queue) { const std::string& sdma_override = core::Runtime::runtime_singleton_->flag().enable_sdma(); - const core::Runtime::LinkInfo& link = core::Runtime::runtime_singleton_->GetLinkInfo( - node_id(), core::Runtime::runtime_singleton_->cpu_agents()[0]->node_id()); - bool use_sdma = (isa_->GetMajorVersion() != 8) && link.info.atomic_support_64bit; + bool use_sdma = (isa_->GetMajorVersion() != 8); if (sdma_override.size() != 0) use_sdma = (sdma_override == "1"); if (use_sdma && (HSA_PROFILE_BASE == profile_)) {