From f85c896cdf64fb98ab69bd5b0304d421b5333cc2 Mon Sep 17 00:00:00 2001 From: Aarushi Jain <142941703+aarushjain29@users.noreply.github.com> Date: Fri, 25 Oct 2024 20:22:23 -0500 Subject: [PATCH] Migraphx support for gfx12 (#3517) --- src/targets/gpu/fuse_mlir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/targets/gpu/fuse_mlir.cpp b/src/targets/gpu/fuse_mlir.cpp index 1b759a89c7..4376bb323c 100644 --- a/src/targets/gpu/fuse_mlir.cpp +++ b/src/targets/gpu/fuse_mlir.cpp @@ -983,7 +983,7 @@ void fuse_mlir::apply(module_pass_manager& mpm) const #ifdef MIGRAPHX_MLIR std::size_t counter = 0; const auto& device_name = ctx == nullptr ? "" : ctx->get_current_device().get_gfx_name(); - const bool is_navi = starts_with(device_name, "gfx11"); + const bool is_navi = starts_with(device_name, "gfx11") or starts_with(device_name, "gfx12"); auto get_mode = [&](std::string_view option, mlir_mode m1, mlir_mode m2 = mlir_mode::fast) { if(specific_op(option))