Skip to content
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

Fix build with hwloc support disabled #778

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

npmiller
Copy link
Contributor

@npmiller npmiller commented Oct 7, 2024

Description

umfMemspaceCreateFromNumaArray is defined in
memspaces/memspace_numa.c which is only added to the build if hwloc is enabled.

When hwloc is enabled this is added as an optional symbol to the linker script through UMF_OPTIONAL_SYMBOLS_LINUX.

When hwloc is disabled this symbol isn't available so this linker script would fail, I believe the correct fix is just to remove the symbol from the linker script.

I ran into this issue while building DPC++ with hwloc disabled.

Checklist

  • Code compiles without errors locally
  • CI workflows execute properly

`umfMemspaceCreateFromNumaArray` is defined in
`memspaces/memspace_numa.c` which is only added to the build if hwloc is
enabled.

When hwloc is enabled this is added as an optional symbol to the linker
script through `UMF_OPTIONAL_SYMBOLS_LINUX`.

When hwloc is disabled this symbol isn't available so this linker script
would fail, I believe the correct fix is just to remove the symbol from
the linker script.
@npmiller npmiller requested a review from a team as a code owner October 7, 2024 16:03
@bratpiorka
Copy link
Contributor

@npmiller could you provide the cmake flags? I would like to have this scenario added to the CI

@npmiller
Copy link
Contributor Author

npmiller commented Oct 7, 2024

The variable is UMF_DISABLE_HWLOC, see here.

If UMF_DISABLE_HWLOC=ON it won't take that branch and so it won't add memspaces/memspace_numa.c to the sources.

@bratpiorka bratpiorka requested a review from ldorau October 8, 2024 06:30
@bratpiorka bratpiorka merged commit 8d18f28 into oneapi-src:main Oct 8, 2024
72 checks passed
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.

3 participants