Skip to content

Commit

Permalink
Merge pull request #3 from AnacondaRecipes/PKG-4582-update-12.4
Browse files Browse the repository at this point in the history
Pkg 4582 update 12.4
  • Loading branch information
danpetry authored May 3, 2024
2 parents c248164 + bbe72c8 commit 54e0806
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 30 deletions.
1 change: 1 addition & 0 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ c_compiler:
- gcc
c_compiler_version:
- '12'
c_stdlib:
- sysroot
c_stdlib_version:
- '2.12'
cdt_name:
- cos6
channel_sources:
Expand All @@ -19,3 +23,5 @@ target_platform:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
6 changes: 6 additions & 0 deletions .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ c_compiler:
- gcc
c_compiler_version:
- '12'
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_arch:
- aarch64
cdt_name:
Expand All @@ -25,3 +29,5 @@ target_platform:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
6 changes: 6 additions & 0 deletions .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ c_compiler:
- gcc
c_compiler_version:
- '12'
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_name:
- cos7
channel_sources:
Expand All @@ -19,3 +23,5 @@ target_platform:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
2 changes: 2 additions & 0 deletions .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
c_compiler:
- vs2019
c_stdlib:
- vs
channel_sources:
- conda-forge
channel_targets:
Expand Down
6 changes: 3 additions & 3 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .scripts/run_win_build.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 4 additions & 14 deletions abs.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
# The buildout of these CUDA packages is happening on a private channel for the moment,
# while we wait for a redistribution license.
# It also prevents uploading to our public staging channel.
# The below can probably all be deleted next time the feedstock needs updating.

upload_channels:
- lc030263

upload_to_staging_channel_in_pr: False

# don't skip existing, to update any existing packages
# don't error overlinking (this should stay, see https://github.com/conda-forge/cuda-cudart-feedstock/pull/15)
build_parameters:
- "--suppress-variables"
# without this, only the linux-64 noarch package will be uploaded
# (the noarch packages contain the libraries)
noarch_upload:
- all
5 changes: 3 additions & 2 deletions build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ for i in `ls`; do
ln -sv ${PREFIX}/${targetsDir}/$j ${PREFIX}/$j

if [[ $j =~ \.so\. ]]; then
# --force-rpath is added to reflect what conda-build does in other feedstocks; they just hadn't updated this one yet.
# see https://github.com/conda-forge/cuda-cudart-feedstock/issues/21#issuecomment-1944420886
patchelf --set-rpath '$ORIGIN' --force-rpath ${PREFIX}/${targetsDir}/$j
fi
done
Expand Down
12 changes: 6 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set name = "cuda-cudart" %}
{% set version = "12.3.101" %}
{% set cuda_version = "12.3" %}
{% set version = "12.4.127" %}
{% set cuda_version = "12.4" %}
{% set platform = "linux-x86_64" %} # [linux64]
{% set platform = "linux-ppc64le" %} # [ppc64le]
{% set platform = "linux-sbsa" %} # [aarch64]
Expand All @@ -18,10 +18,10 @@ package:

source:
url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_cudart/{{ platform }}/cuda_cudart-{{ platform }}-{{ version }}-archive.{{ extension }}
sha256: e37d478d1e7a10490d55fb87a5ef379a18c648f3010e1d3687c4298ddc3e9e19 # [linux64]
sha256: 23f6ef558bb954dea3ef5b378c3ad28e1da93080890bd8bf1a18a75ae2ee605d # [ppc64le]
sha256: 131e62c60ba979f6870687db99a7537482f6df445915789d2a4799dc4e898b66 # [aarch64]
sha256: 310a71bc9c92d6e61eeddf3489cc195519665fbfaca16c618b03da0ac5ea9f7d # [win]
sha256: 0483bff9a36e7a44465db3cd42874f6f70f019297dcf803fbefcbf58d7448c8f # [linux64]
sha256: f5e636944c7817b4f178070daa1259f25b3e84ebd092305d32aa189b21ae37e3 # [ppc64le]
sha256: fb96abcff3544384440b9259f9aeab9bf222a5775348546ef87c68ee02eee379 # [aarch64]
sha256: 6a1c32e68ee1a95ca17334691ff9ad1ffe7f352c24a083d55e4c96b8063b2bcb # [win]

build:
number: 0
Expand Down
6 changes: 5 additions & 1 deletion recipe/test-rpath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ for lib in `find ${PREFIX}/${targetsDir}/lib -type f`; do

rpath=$(patchelf --print-rpath $lib)
echo "$lib rpath: $rpath"
[[ $rpath == "\$ORIGIN" ]] || errors+="$lib\n"
if [[ $rpath != "\$ORIGIN" ]]; then
errors+="$lib\n"
elif [[ $(objdump -x ${lib} | grep "PATH") == *"RUNPATH"* ]]; then
errors+="$lib\n"
fi
done

if [[ $errors ]]; then
Expand Down

0 comments on commit 54e0806

Please sign in to comment.