From 079eadd71bc3f3572abfdb93cae53be60e40c310 Mon Sep 17 00:00:00 2001 From: Jay Cornwall Date: Tue, 22 Jan 2019 16:04:55 -0600 Subject: [PATCH] Remove legacy microcode version check in GpuAgent::InvalidateCodeCaches Fixes instruction cache invalidation when using microcode branches. Change-Id: I932676e683983145f5c807204e592fb5e530c8af --- runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index 0b862db48f..ccfe443ad8 100644 --- a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -1239,14 +1239,7 @@ void GpuAgent::InvalidateCodeCaches() { // Microcode is handling code cache invalidation. return; } - } else if (isa_->GetMajorVersion() == 9) { - if (properties_.EngineId.ui32.uCode < 334) { - static std::once_flag once; - std::call_once( - once, []() { fprintf(stderr, "warning: code cache invalidation not implemented\n"); }); - return; - } - } else { + } else if (isa_->GetMajorVersion() > 9) { assert(false && "Code cache invalidation not implemented for this agent"); }