Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport gfx12 improvements to 6.3 release #3561

Open
wants to merge 2 commits into
base: release/rocm-rel-6.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/targets/gpu/fuse_mlir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<rejected>(option))
Expand Down
7 changes: 4 additions & 3 deletions src/targets/gpu/hipblaslt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading