Skip to content

Remove UMF_DISABLE_HWLOC option #1228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PatKamin
Copy link
Contributor

Description

After all third-party usage of the UMF_DISABLE_HWLOC is removed, the flag itself can be removed. It was a temporary workaround for UMF usage without the hwloc installed in the system, from the beginning planned to be removed prior to the v1.0 first stable API release.
Currently, UMF either uses libhwloc-dev installed in the system or fetches it from sources.

Fixes: #1047

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

@PatKamin PatKamin force-pushed the remove-disable-hwloc branch 3 times, most recently from 732203e to 5229bc6 Compare April 16, 2025 06:18
@PatKamin PatKamin force-pushed the remove-disable-hwloc branch from 5229bc6 to 29de648 Compare April 16, 2025 06:48
@PatKamin PatKamin marked this pull request as ready for review April 16, 2025 09:56
@PatKamin PatKamin requested a review from a team as a code owner April 16, 2025 09:56
set(UMF_COMMON_COMPILE_DEFINITIONS ${UMF_COMMON_COMPILE_DEFINITIONS}
"UMF_NO_HWLOC=1")
endif()
set(UMF_SOURCES ${UMF_SOURCES} ${HWLOC_DEPENDENT_SOURCES}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this 3 lines could e merged with common sources, libs and dirs lists

@@ -50,6 +50,8 @@ function(build_umf_test)

set(LIB_DIRS ${LIB_DIRS} ${LIBHWLOC_LIBRARY_DIRS})

set(INC_DIRS ${INC_DIRS} ${LIBHWLOC_INCLUDE_DIRS})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove an empty line above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cmake] handling of hwloc-related flags should be improved
2 participants