Skip to content

Commit

Permalink
rsmi: make another error message ignorable
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jun 9, 2020
1 parent a9d475f commit d416bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hwloc/topology-rsmi.c
Expand Up @@ -157,7 +157,7 @@ hwloc_rsmi_discover(struct hwloc_backend *backend, struct hwloc_disc_status *dst

ret = rsmi_num_monitor_devices(&nb);
if (RSMI_STATUS_SUCCESS != ret || !nb) {
if (RSMI_STATUS_SUCCESS != ret)
if (RSMI_STATUS_SUCCESS != ret && !hwloc_hide_rsmi_errors())
fprintf(stderr, "RSMI: Failed to get device count\n");
rsmi_shut_down();
return 0;
Expand Down

0 comments on commit d416bcb

Please sign in to comment.