Skip to content

Commit

Permalink
FP8OCP GFX update (#3635)
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieL7 authored Nov 20, 2024
1 parent 333161f commit 07010b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/targets/gpu/device_name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ std::string get_device_name()
bool gfx_has_fp8fnuz_intrinsics()
{
const auto device_name = trim(split_string(get_device_name(), ':').front());
return (starts_with(device_name, "gfx9") and device_name >= "gfx940");
return (starts_with(device_name, "gfx94"));
}

bool gfx_has_fp8ocp_intrinsics()
{
const auto device_name = trim(split_string(get_device_name(), ':').front());
return (starts_with(device_name, "gfx12") and device_name >= "gfx1200");
bool is_navi_with_fp8ocp = starts_with(device_name, "gfx12") and device_name >= "gfx1200";
bool is_mi_with_fp8ocp = starts_with(device_name, "gfx9") and device_name >= "gfx950";
return (is_navi_with_fp8ocp or is_mi_with_fp8ocp);
}

} // namespace gpu
Expand Down

0 comments on commit 07010b6

Please sign in to comment.