Skip to content

Fallback using a compatible HWLOC.#341

Merged
abouteiller merged 2 commits intoICLDisco:masterfrom
bosilca:fix/hwloc_detection
Mar 14, 2022
Merged

Fallback using a compatible HWLOC.#341
abouteiller merged 2 commits intoICLDisco:masterfrom
bosilca:fix/hwloc_detection

Conversation

@bosilca
Copy link
Copy Markdown
Contributor

@bosilca bosilca commented Mar 11, 2022

If the MPI provides HWLOC and it conflicts with the HWLOC version installed by
default on the system, we were not correctly detecting the right HWLOC version
to use. With this patch, if HWLOC_DIR is not specified we will try to use the
MPI provided HWLOC first, if any.

In the same commit I tried to cleanup our usage of _ROOT and _DIR. HWLOC_ROOT is provided by the upper layer as a mean to direct the search process, while HWLOC_DIR is set by the detection itself to facilitate subsequent searches. HWLOC_ROOT is input only, while HWLOC is output only and cached.

Signed-off-by: George Bosilca bosilca@icl.utk.edu

@bosilca bosilca added the bug Something isn't working label Mar 11, 2022
@bosilca bosilca requested review from abouteiller and devreal March 11, 2022 18:49
@bosilca bosilca self-assigned this Mar 11, 2022
@bosilca bosilca force-pushed the fix/hwloc_detection branch 2 times, most recently from f343238 to dd82591 Compare March 12, 2022 04:16
@bosilca bosilca removed the request for review from devreal March 14, 2022 15:29
@bosilca bosilca force-pushed the fix/hwloc_detection branch from bf32609 to b8482b7 Compare March 14, 2022 15:31
If the MPI provides HWLOC and it conflicts with the HWLOC version installed by
default on the system, we were not correctly detecting the right HWLOC version
to use. With this patch, if HWLOC_DIR is not specified we will try to use the
MPI provided HWLOC first, if any.

Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
@bosilca bosilca force-pushed the fix/hwloc_detection branch from b8482b7 to b0a1ca0 Compare March 14, 2022 16:03
…tection

Signed-off-by: Aurélien Bouteiller <bouteill@icl.utk.edu>
@abouteiller abouteiller force-pushed the fix/hwloc_detection branch from b0a1ca0 to d9d55d3 Compare March 14, 2022 16:18
@abouteiller abouteiller merged commit 6ef5470 into ICLDisco:master Mar 14, 2022
@bosilca bosilca deleted the fix/hwloc_detection branch March 24, 2022 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants