Skip to content

Commit

Permalink
fix: Can't detect librocm 6.0.x
Browse files Browse the repository at this point in the history
librocm reports it's version as 7.0.0.0 in the 6.0.x release series.
  • Loading branch information
imwints committed Feb 12, 2024
1 parent 9c34ac7 commit af741c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/btop_collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ namespace Gpu {
} else if (version.major == 5) {
if ((rsmi_dev_gpu_clk_freq_get_v5 = (decltype(rsmi_dev_gpu_clk_freq_get_v5))load_rsmi_sym("rsmi_dev_gpu_clk_freq_get")) == nullptr)
return false;
} else if (version.major == 6) {
} else if (version.major == 6 || (version.major == 7 && version.minor == 0)) {
if ((rsmi_dev_gpu_clk_freq_get_v6 = (decltype(rsmi_dev_gpu_clk_freq_get_v6))load_rsmi_sym("rsmi_dev_gpu_clk_freq_get")) == nullptr)
return false;
} else {
Expand Down

0 comments on commit af741c8

Please sign in to comment.