From 1c0f03a62b8f50c0f5a420cc9f5d405c2917c2dc Mon Sep 17 00:00:00 2001 From: jakirkham Date: Wed, 22 Jan 2025 17:41:27 -0800 Subject: [PATCH] Relax `nvcc`'s `sysroot` upper bound Allow newer `sysroot`s to be installed with the old `nvcc` package. --- recipe/patch_yaml/nvcc.yaml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/recipe/patch_yaml/nvcc.yaml b/recipe/patch_yaml/nvcc.yaml index 09bbaf0a3..9364124fd 100644 --- a/recipe/patch_yaml/nvcc.yaml +++ b/recipe/patch_yaml/nvcc.yaml @@ -27,3 +27,46 @@ if: - linux-aarch64 then: - add_depends: "cudatoolkit ${version}.*" +--- + + +# Relax `sysroot` pins of `nvcc_{{ target_platform }}` +# Done by arch to handle package name differences +if: + name: nvcc_linux-64 + version_lt: 12.0.0 + timestamp_lt: 1737594364000 + has_depends: "sysroot_linux-64?( *)" +then: + - replace_depends: + old: sysroot_linux-64 2.17.* + new: sysroot_linux-64 >=2.17,<3.0a0 + - replace_depends: + old: sysroot_linux-64 >=2.17 + new: sysroot_linux-64 >=2.17,<3.0a0 +--- +if: + name: nvcc_linux-aarch64 + version_lt: 12.0.0 + timestamp_lt: 1737594364000 + has_depends: "sysroot_linux-aarch64?( *)" +then: + - replace_depends: + old: sysroot_linux-aarch64 2.17.* + new: sysroot_linux-aarch64 >=2.17,<3.0a0 + - replace_depends: + old: sysroot_linux-aarch64 >=2.17 + new: sysroot_linux-aarch64 >=2.17,<3.0a0 +--- +if: + name: nvcc_linux-ppc64le + version_lt: 12.0.0 + timestamp_lt: 1737594364000 + has_depends: "sysroot_linux-ppc64le?( *)" +then: + - replace_depends: + old: sysroot_linux-ppc64le 2.17.* + new: sysroot_linux-ppc64le >=2.17,<3.0a0 + - replace_depends: + old: sysroot_linux-ppc64le >=2.17 + new: sysroot_linux-ppc64le >=2.17,<3.0a0