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

Make libnuma into a soft dependency #196

Merged
merged 4 commits into from
Apr 30, 2021

Conversation

arthurp
Copy link
Contributor

@arthurp arthurp commented Apr 29, 2021

This uses dlopen to get the 3 symbols we need from libnuma. If the load fails we just assume NUMA information is not available and use the existing "assume sockets are nodes" fallback. All this allows katana built with libnuma to run on machines that don't have it.

Fixes: #185 (because I ran into it while doing this PR).

Fixes: ENG-324

@arthurp arthurp force-pushed the feature/soft-dep-on-libnuma branch from 9d6d837 to eaa52df Compare April 29, 2021 19:53
@arthurp arthurp requested a review from ddn0 April 29, 2021 20:34
@arthurp arthurp marked this pull request as ready for review April 29, 2021 20:59
@arthurp
Copy link
Contributor Author

arthurp commented Apr 29, 2021

Should I add a CI job which runs conda_recipe/test_install_conda_packages.py?

libgalois/src/HWTopoLinux.cpp Show resolved Hide resolved
conda_recipe/test_install_conda_packages.py Outdated Show resolved Hide resolved
arthurp added 3 commits April 30, 2021 14:57
The script was using a fixed path to the version_file in one case
instead of using the detected one.

Fixes: KatanaGraph#185
If loading fails we behave the same as if numa_available() returns
false.
@arthurp arthurp force-pushed the feature/soft-dep-on-libnuma branch from eaa52df to 356f3ba Compare April 30, 2021 20:26
I was already editing it, so it seemed like a good idea.
@arthurp arthurp force-pushed the feature/soft-dep-on-libnuma branch from 356f3ba to 3cb2d0c Compare April 30, 2021 20:32
Comment on lines +116 to +122
strategy:
matrix:
image:
- ubuntu:16.04
- ubuntu:latest
- centos:7
- centos:latest
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ddn0 Did I over do the docker image matrix? Should I include anything else? They take about 5min each and all run in parallel after build_and_test_conda_package finishes.

Copy link
Contributor

Choose a reason for hiding this comment

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

I might add ubuntu:18.04 and ubuntu:20.04 explicitly (in addition to ubuntu:latest). But I don't have a strong preference.

@arthurp arthurp requested a review from ddn0 April 30, 2021 21:45
@arthurp arthurp merged commit b13d62a into KatanaGraph:master Apr 30, 2021
@arthurp arthurp deleted the feature/soft-dep-on-libnuma branch June 17, 2021 14:30
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.

Invalid version error during installation
2 participants