From 53573bf0ddd86fafba1619ad3ce2927d58a31680 Mon Sep 17 00:00:00 2001 From: Ahsan Saghir <142340507+ahsan-ca@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:40:50 -0400 Subject: [PATCH 1/2] Add gfx110x and gfx120x cards to hipblaslt supported arch (#3544) --- src/targets/gpu/hipblaslt.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/targets/gpu/hipblaslt.cpp b/src/targets/gpu/hipblaslt.cpp index 1b0e1e99175..47a9e92739b 100644 --- a/src/targets/gpu/hipblaslt.cpp +++ b/src/targets/gpu/hipblaslt.cpp @@ -56,9 +56,10 @@ hipblaslt_preference_ptr create_hipblaslt_preference_ptr() bool hipblaslt_supported() { const auto device_name = trim(split_string(get_device_name(), ':').front()); - // hipblaslt is supported for MI100 and above and Navi3x and above - return (starts_with(device_name, "gfx9") and device_name >= "gfx908" and - not starts_with(device_name, "gfx10")); + // hipblaslt is supported for MI200 and above, and Navi3x and above. + return (device_name == "gfx90a" or + (starts_with(device_name, "gfx94") and device_name >= "gfx940") or + starts_with(device_name, "gfx110") or starts_with(device_name, "gfx120")); } #endif // MIGRAPHX_USE_HIPBLASLT 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 2/2] 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 1b759a89c7c..4376bb323cc 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))