Debian Codegraph @

debian/patches/verbosity

raw
1 We don't really want to scare all people about missing rocm and zero drivers.
2
3 ---
4 hwloc/topology-levelzero.c | 2 +-
5 hwloc/topology-nvml.c | 2 +-
6 hwloc/topology-rsmi.c | 2 +-
7 3 files changed, 3 insertions(+), 3 deletions(-)
8
9 --- a/hwloc/topology-rsmi.c
10 +++ b/hwloc/topology-rsmi.c
11 @@ -285,7 +285,7 @@ hwloc_rsmi_discover(struct hwloc_backend
12 if (HWLOC_SHOW_ALL_ERRORS()) {
13 const char *status_string;
14 rsmi_status_string(ret, &status_string);
15 - fprintf(stderr, "hwloc/rsmi: Failed to initialize with rsmi_init(): %s\n", status_string);
16 + hwloc_debug("hwloc/rsmi: Failed to initialize with rsmi_init(): %s\n", status_string);
17 }
18 return 0;
19 }
20 --- a/hwloc/topology-nvml.c
21 +++ b/hwloc/topology-nvml.c
22 @@ -195,7 +195,7 @@ hwloc_nvml_discover(struct hwloc_backend
23 if (NVML_SUCCESS != ret) {
24 if (HWLOC_SHOW_ALL_ERRORS()) {
25 const char *error = nvmlErrorString(ret);
26 - fprintf(stderr, "hwloc/nvml: Failed to initialize with nvmlInit(): %s\n", error);
27 + hwloc_debug("hwloc/nvml: Failed to initialize with nvmlInit(): %s\n", error);
28 }
29 return -1;
30 }
31 --- a/hwloc/topology-levelzero.c
32 +++ b/hwloc/topology-levelzero.c
33 @@ -768,7 +768,7 @@ hwloc_levelzero_discover(struct hwloc_ba
34 res = zeInit(0);
35 if (res != ZE_RESULT_SUCCESS) {
36 if (HWLOC_SHOW_ALL_ERRORS()) {
37 - fprintf(stderr, "hwloc/levelzero: Failed to initialize in zeInit(): 0x%x\n", (unsigned)res);
38 + hwloc_debug("hwloc/levelzero: Failed to initialize in zeInit(): 0x%x\n", (unsigned)res);
39 }
40 return 0;
41 }