-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Adding cuda-compat recipe #21952
Merged
Merged
Adding cuda-compat recipe #21952
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
202cade
Adding cuda-compat recipe
adibbley 9e658ef
Merge branch 'main' into cuda-compat
jakirkham 5d30f50
Merge branch 'main' into cuda-compat
jakirkham dabf6fb
Split out cuda-compat-impl
adibbley ef9d905
Apply suggestions from code review
adibbley f8df209
Use full cuda version
adibbley 92763df
Update recipes/cuda-compat/meta.yaml
adibbley ce2c174
Rename version to driver_version
adibbley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Install to conda style directories | ||
[[ -d lib64 ]] && mv lib64 lib | ||
mkdir -p ${PREFIX}/cuda-compat | ||
|
||
cp lib/libcuda.so.${PKG_VERSION} ${PREFIX}/cuda-compat | ||
ln -s libcuda.so.${PKG_VERSION} ${PREFIX}/cuda-compat/libcuda.so.1 | ||
ln -s libcuda.so.1 ${PREFIX}/cuda-compat/libcuda.so | ||
cp lib/libnvidia-nvvm.so.${PKG_VERSION} ${PREFIX}/cuda-compat | ||
ln -s libnvidia-nvvm.so.${PKG_VERSION} ${PREFIX}/cuda-compat/libnvidia-nvvm.so.4 | ||
ln -s libnvidia-nvvm.so.4 ${PREFIX}/cuda-compat/libnvidia-nvvm.so | ||
cp lib/libnvidia-ptxjitcompiler.so.${PKG_VERSION} ${PREFIX}/cuda-compat | ||
ln -s libnvidia-ptxjitcompiler.so.${PKG_VERSION} ${PREFIX}/cuda-compat/libnvidia-ptxjitcompiler.so.1 | ||
cp lib/libcudadebugger.so.${PKG_VERSION} ${PREFIX}/cuda-compat | ||
ln -s libcudadebugger.so.${PKG_VERSION} ${PREFIX}/cuda-compat/libcudadebugger.so.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{% set name = "cuda-compat" %} | ||
{% set version = "525.60.13" %} | ||
{% set platform = "linux-x86_64" %} # [linux64] | ||
{% set platform = "linux-ppc64le" %} # [ppc64le] | ||
{% set platform = "linux-sbsa" %} # [aarch64] | ||
{% set extension = "tar.xz" %} # [not win] | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://developer.download.nvidia.com/compute/cuda/redist/nvidia_driver/{{ platform }}/nvidia_driver-{{ platform }}-{{ version }}-archive.{{ extension }} | ||
sha256: a42691822f6e87060da5682a8e0662c86d1b20fbf31d12cb2969b819995e4138 # [linux64] | ||
sha256: 4ad08f8431195580349f4984fae2d93697d2f5572837c1e7ae59c37feab291c8 # [ppc64le] | ||
sha256: 1708ae3ba857559cbfc4e6c06267ed6126eff2c68fa5321a95906f50e984148c # [aarch64] | ||
|
||
build: | ||
number: 0 | ||
skip: true # [osx] | ||
skip: true # [win] | ||
|
||
requirements: | ||
build: | ||
- {{ compiler("c") }} | ||
- {{ compiler("cxx") }} | ||
|
||
test: | ||
commands: | ||
- test -f $PREFIX/cuda-compat/libcuda.so.{{ version }} | ||
- test -L $PREFIX/cuda-compat/libcuda.so.1 | ||
- test -L $PREFIX/cuda-compat/libcuda.so | ||
|
||
about: | ||
home: https://developer.nvidia.com/cuda-toolkit | ||
license_file: LICENSE | ||
license: LicenseRef-NVIDIA-End-User-License-Agreement | ||
license_url: https://docs.nvidia.com/cuda/eula/index.html | ||
summary: CUDA Compatibility Platform | ||
description: | | ||
Package containing all the necessary CUDA driver files related to forward | ||
compatibility. This compatibility enables newer CUDA runtimes to work with | ||
older display drivers. Used for TESLA cards only. | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
doc_url: https://docs.nvidia.com/cuda/index.html | ||
|
||
extra: | ||
recipe-maintainers: | ||
- adibbley |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#21952 (comment)
We might need CUDA 12 drivers for this package to be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a more specific pinning for driver version? Or is a lower bound like this sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need a lower and upper bound on
__cuda
?