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

Adding cuda-compat recipe #21952

Merged
merged 8 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions recipes/cuda-compat/build.sh
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
48 changes: 48 additions & 0 deletions recipes/cuda-compat/meta.yaml
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") }}
Copy link
Contributor

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.

Suggested change
- {{ compiler("cxx") }}
- {{ compiler("cxx") }}
run_constrained:
- __cuda >=12

Copy link
Member

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?

Copy link
Contributor

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?

Suggested change
- {{ compiler("cxx") }}
- {{ compiler("cxx") }}
run_constrained:
- __cuda >=12,<13


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