Skip to content

Commit

Permalink
Merge branch 'main' into versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice authored Dec 12, 2023
2 parents 2a15c49 + db91bb8 commit 9c4b031
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
22 changes: 11 additions & 11 deletions ci-conda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
# Install system packages depending on the LINUX_VER
RUN <<EOF
case "${LINUX_VER}" in
"ubuntu"*)
"ubuntu"*)
echo 'APT::Update::Error-Mode "any";' > /etc/apt/apt.conf.d/warnings-as-errors
apt-get update
apt-get upgrade -y
Expand All @@ -39,7 +39,7 @@ case "${LINUX_VER}" in
wget
rm -rf "/var/lib/apt/lists/*"
;;
"centos"* | "rockylinux"*)
"centos"* | "rockylinux"*)
yum -y update
yum -y install --setopt=install_weak_deps=False \
file \
Expand All @@ -49,7 +49,7 @@ case "${LINUX_VER}" in
yum-utils
yum clean all
;;
*)
*)
echo "Unsupported LINUX_VER: ${LINUX_VER}"
exit 1
;;
Expand All @@ -59,11 +59,11 @@ EOF
# Install CUDA packages, only for CUDA 11 (CUDA 12+ should fetch from conda)
RUN <<EOF
case "${CUDA_VER}" in
"11"*)
"11"*)
PKG_CUDA_VER="$(echo ${CUDA_VER} | cut -d '.' -f1,2 | tr '.' '-')"
echo "Attempting to install CUDA Toolkit ${PKG_CUDA_VER}"
case "${LINUX_VER}" in
"ubuntu"*)
"ubuntu"*)
apt-get update
apt-get upgrade -y
apt-get install -y --no-install-recommends \
Expand All @@ -80,7 +80,7 @@ case "${CUDA_VER}" in
sed -i 's/, build-essential//g' /var/lib/dpkg/status
rm -rf "/var/lib/apt/lists/*"
;;
"centos"* | "rockylinux"*)
"centos"* | "rockylinux"*)
yum -y update
yum -y install --setopt=install_weak_deps=False \
cuda-cudart-devel-${PKG_CUDA_VER} \
Expand All @@ -90,13 +90,13 @@ case "${CUDA_VER}" in
rpm -Uvh --nodeps $(repoquery --location cuda-nvcc-${PKG_CUDA_VER})
yum clean all
;;
*)
*)
echo "Unsupported LINUX_VER: ${LINUX_VER}"
exit 1
;;
esac
;;
*)
*)
echo "Skipping CUDA Toolkit installation for CUDA ${CUDA_VER}"
;;
esac
Expand All @@ -115,15 +115,15 @@ rapids-mamba-retry install -y \
gh \
git \
jq \
"sccache==0.4.2" \
"sccache==0.7.4" \
"python=${PYTHON_VERSION}.*=*_cpython"
conda clean -aipty
EOF

# Install codecov binary
RUN <<EOF
case "${TARGETPLATFORM}" in
"linux/amd64")
"linux/amd64")
CODECOV_VERSION=v0.3.2
curl https://uploader.codecov.io/verification.gpg --max-time 10 --retry 5 \
| gpg --no-default-keyring --keyring trustedkeys.gpg --import
Expand All @@ -136,7 +136,7 @@ case "${TARGETPLATFORM}" in
mv codecov /usr/local/bin
rm -f codecov*
;;
*)
*)
echo 'Codecov is only supported on "linux/amd64" machines'
;;
esac
Expand Down
12 changes: 6 additions & 6 deletions ci-wheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ case "${LINUX_VER}" in
make install
popd
;;
*)
*)
echo "Unsupported LINUX_VER: ${LINUX_VER}"
exit 1
;;
Expand All @@ -120,7 +120,7 @@ rm -rf gh_*
EOF

# Install sccache
ARG SCCACHE_VERSION=0.5.4
ARG SCCACHE_VERSION=0.7.4

RUN <<EOF
curl -o /tmp/sccache.tar.gz \
Expand Down Expand Up @@ -176,17 +176,17 @@ RUN pyenv update

RUN <<EOF
case "${LINUX_VER}" in
"ubuntu"*)
"ubuntu"*)
pyenv install --verbose "${RAPIDS_PY_VERSION}"
;;
"centos"*)
"centos"*)
# Need to specify the openssl location because of the install from source
CPPFLAGS="-I/usr/include/openssl" LDFLAGS="-L/usr/lib" pyenv install --verbose "${RAPIDS_PY_VERSION}"
;;
"rockylinux"*)
"rockylinux"*)
CPPFLAGS="-I/usr/include/openssl" LDFLAGS="-L/usr/lib" pyenv install --verbose "${RAPIDS_PY_VERSION}"
;;
*)
*)
echo "Unsupported LINUX_VER: ${LINUX_VER}"
exit 1
;;
Expand Down

0 comments on commit 9c4b031

Please sign in to comment.