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"); }