Skip to content

Commit

Permalink
Merge pull request #920 from carterbox/patch-cuda-things
Browse files Browse the repository at this point in the history
Patch old nvcc_*, cudnn, and libcufile packages
  • Loading branch information
jakirkham authored Dec 18, 2024
2 parents b9b6d02 + 9221fff commit b22def8
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipe/patch_yaml/cudnn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# cuDNN is a redist. zlib has been statically linked into the windows library since cuDNN 9
# Resolves: https://github.com/conda-forge/cudnn-feedstock/issues/98
if:
name: "cudnn"
version_lt: 9.3.1
version_ge: 9.0.0
timestamp_lt: 1733272752000
subdir_in: win-64
then:
- remove_depends: "libzlib-wapi *"
13 changes: 13 additions & 0 deletions recipe/patch_yaml/libcufile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# For uninvestigated reasons, old aarch64 builds of libcufile have no constraint on __glibc
# This is a follow-up to https://github.com/conda-forge/libcufile-feedstock/pull/24
if:
name: "libcufile*"
version_ge: 1.7.0
timestamp_lt: 1733272752000
subdir_in:
- linux-aarch64
then:
- add_depends: __glibc >=2.28,<3.0.a0
- replace_depends:
old: __glibc [*]
new: __glibc >=2.28,<3.0.a0
29 changes: 29 additions & 0 deletions recipe/patch_yaml/nvcc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Fixes https://github.com/conda-forge/nvcc-feedstock/issues/108 for older builds by applying
# https://github.com/conda-forge/nvcc-feedstock/pull/109/files#diff-f3725a55bf339595bf865fec73bda8ac99f283b0810c205442021f29c06eea9a
# tl;dr prevents older versions of nvcc from being installed with newer 12+ versions
if:
name: "nvcc_*"
version_lt: 12.0.0
version_ge: 11.2.0
timestamp_lt: 1733272752000
subdir_in:
- linux-64
- win-64
- linux-ppc64le
- linux-aarch64
then:
- add_depends: cudatoolkit >=${version},<12
---
# No enhanced compatability until CUDA 11.2; everything before is pinned to minor version
if:
name: "nvcc_*"
# This will patch all the way back to version 9.2
version_lt: 11.2.0
timestamp_lt: 1733272752000
subdir_in:
- linux-64
- win-64
- linux-ppc64le
- linux-aarch64
then:
- add_depends: "cudatoolkit ${version}.*"

0 comments on commit b22def8

Please sign in to comment.