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

AZP/RELEASE: Add CUDA support to Deb packages #8862

Merged
merged 1 commit into from
Feb 12, 2023

Conversation

Alexey-Rivkin
Copy link
Collaborator

What

Check for CUDA support based on PATH environment variable.

Why ?

Following #8502, UCX release was built without CUDA support.

@Alexey-Rivkin
Copy link
Collaborator Author

/CC @tzafrir-mellanox

debian/rules.in Outdated
@@ -9,7 +9,7 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

CUDA_OPT = $(shell echo ${DEB_BUILD_PROFILES} | grep -qw cuda \
CUDA_OPT = $(shell echo ${PATH} | grep -qw cuda \
Copy link
Contributor

Choose a reason for hiding this comment

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

why checking PATH var?
maybe check if /usr/local/cuda exists?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

How about the CUDA_VERSION env var?
We can check if the version is new enough.

@tzafrir-mellanox
Copy link

No, simply checking /usr/local/cuda is not good enough. It may contain a version that is not new enough. We currently need version >= 11.6 . And we'll probably switch to 12.0 on most systems soon (in 23.04). This is not logic to keep in the deb package.

debian/rules.in Outdated
@@ -9,7 +9,7 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

CUDA_OPT = $(shell echo ${DEB_BUILD_PROFILES} | grep -qw cuda \
CUDA_OPT = $(shell echo ${PATH} | grep -qw cuda \
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe to check nvcc presence command -v nvcc and its version nvcc --version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tzafrir-mellanox would this work for you?

@yosefe
Copy link
Contributor

yosefe commented Feb 12, 2023

According to @tzafrir-mellanox the fix should be to add -Pcuda to dpkg-buildpackage command, so cuda will be added to DEB_BUILD_PROFILES env var.

yosefe
yosefe previously approved these changes Feb 12, 2023
@yosefe
Copy link
Contributor

yosefe commented Feb 12, 2023

@Al3xR01 the commit title should contain "AZP/RELEASE: " to trigger release CI

@Alexey-Rivkin Alexey-Rivkin changed the title AZP/RELEASE: Conditional CUDA support based on PATH AZP/RELEASE: Conditional CUDA support - add cuda var Feb 12, 2023
@Alexey-Rivkin Alexey-Rivkin changed the title AZP/RELEASE: Conditional CUDA support - add cuda var AZP/RELEASE: Add CUDA support to Deb packages Feb 12, 2023
@yosefe yosefe merged commit 4400272 into openucx:v1.14.x Feb 12, 2023
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.

4 participants