Skip to content

Commit

Permalink
Add gfx110x and gfx120x cards to hipblaslt supported arch
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsan-ca committed Oct 21, 2024
1 parent 04ac9fc commit 95701b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/targets/gpu/hipblaslt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ 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"));
return ((starts_with(device_name, "gfx9") and device_name >= "gfx908" and
not starts_with(device_name, "gfx10")) ||

Check warning on line 61 in src/targets/gpu/hipblaslt.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

style: Use 'or' instead of || [UseNamedLogicOperator]
starts_with(device_name, "gfx110") ||

Check warning on line 62 in src/targets/gpu/hipblaslt.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

style: Use 'or' instead of || [UseNamedLogicOperator]
starts_with(device_name, "gfx120"));
}

#endif // MIGRAPHX_USE_HIPBLASLT
Expand Down

0 comments on commit 95701b6

Please sign in to comment.