Skip to content
This repository was archived by the owner on Jul 25, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 16 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
33 changes: 28 additions & 5 deletions builds-gcc7/Dockerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ FROM ${FROM_IMAGE}:${CUDA_VER}-${CUDA_TYPE}-${LINUX_VER}

# Define arguments
ARG GCC7_DIR=/usr/local/gcc7
ARG GCC7_VER=gcc-7.5.0
ARG GCC7_VER=7.5.0
ARG GCC9_DIR=/usr/local/gcc9
ARG GCC9_VER=9.3.0
ARG NUM_BUILD_CPUS=16

# Add /usr/local/cuda/* temporarily to LD_LIBRARY_PATH to support various build steps
Expand All @@ -29,9 +31,30 @@ RUN yum upgrade -y \
# NOTE: this step requires packages gmp-devel, mpfr-devel,
# libmpc-devel, and file (see above)
RUN mkdir -p ${GCC7_DIR} \
&& cd ${GCC7_DIR} && wget -q http://ftp.gnu.org/gnu/gcc/${GCC7_VER}/${GCC7_VER}.tar.gz \
&& cd ${GCC7_DIR} && tar zxf ${GCC7_VER}.tar.gz \
&& cd ${GCC7_DIR}/${GCC7_VER} \
&& cd ${GCC7_DIR} && wget -q http://ftp.gnu.org/gnu/gcc/gcc-${GCC7_VER}/gcc-${GCC7_VER}.tar.gz \
&& cd ${GCC7_DIR} && tar zxf gcc-${GCC7_VER}.tar.gz \
&& cd ${GCC7_DIR}/gcc-${GCC7_VER} \
&& ./configure --prefix=${GCC7_DIR} --disable-multilib \
&& make -j${NUM_BUILD_CPUS} && make install \
&& rm -r ${GCC7_DIR}/${GCC7_VER} ${GCC7_DIR}/${GCC7_VER}.tar.gz
&& rm -r ${GCC7_DIR}/gcc-${GCC7_VER} ${GCC7_DIR}/gcc-${GCC7_VER}.tar.gz

# Build gcc 9
RUN mkdir -p ${GCC9_DIR} \
&& cd ${GCC9_DIR} && wget -q http://ftp.gnu.org/gnu/gcc/gcc-${GCC9_VER}/gcc-${GCC9_VER}.tar.gz \
&& cd ${GCC9_DIR} && tar zxf gcc-${GCC9_VER}.tar.gz \
&& cd ${GCC9_DIR}/gcc-${GCC9_VER} \
&& ./configure --prefix=${GCC9_DIR} --disable-multilib \
&& make -j${NUM_BUILD_CPUS} && make install \
&& rm -r ${GCC9_DIR}/gcc-${GCC9_VER} ${GCC9_DIR}/gcc-${GCC9_VER}.tar.gz

# Pull gcc9's libstdc++ into gcc7's lib64
RUN rm -rfv ${GCC7_DIR}/lib64/libstdc++.* \
&& ls -la ${GCC9_DIR}/lib64/libstdc++.* \
&& cp -av ${GCC9_DIR}/lib64/libstdc++.* ${GCC7_DIR}/lib64 \
&& ls -la ${GCC7_DIR}/lib64/libstdc++.*

# Pull gcc9's headers into gcc7's
RUN rm -rfv ${GCC7_DIR}/include/c++/${GCC7_VER}/* \
&& ls -la ${GCC9_DIR}/include/c++/${GCC9_VER}/* \
&& cp -av ${GCC9_DIR}/include/c++/${GCC9_VER}/* ${GCC7_DIR}/include/c++/${GCC7_VER} \
&& ls -la ${GCC7_DIR}/include/c++/${GCC7_VER}/*
5 changes: 3 additions & 2 deletions miniconda-cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ RUN if [ "${LINUX_VER:0:6}" == "ubuntu" ] ; then \
echo -e "\n\n>>>> SKIPPING: LINUX_VER is not 'ubuntu16.04' or 'ubuntu18.04'\n\n"; \
fi

# Disable CUDA repo using the appropriate manager
# Also add langpack for locale in CentOS 8
# Disable CUDA repo using the appropriate manager to prevent cross CUDA version
# updates seen on 10.1 with 10.2 libraries
# CentOS 8 - install glibc langpack
RUN if [ "${LINUX_VER}" == "centos7" ] ; then \
yum-config-manager --disable cuda ; \
elif [ "${LINUX_VER}" == "centos8" ] ; then \
Expand Down
5 changes: 3 additions & 2 deletions miniforge-cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ RUN if [ "${LINUX_VER:0:6}" == "ubuntu" ] ; then \
echo -e "\n\n>>>> SKIPPING: LINUX_VER is not 'ubuntu16.04' or 'ubuntu18.04'\n\n"; \
fi

# Disable CUDA repo using the appropriate manager
# Also add langpack for locale in CentOS 8
# Disable CUDA repo using the appropriate manager to prevent cross CUDA version
# updates seen on 10.1 with 10.2 libraries
# CentOS 8 - install glibc langpack
RUN if [ "${LINUX_VER}" == "centos7" ] ; then \
yum-config-manager --disable cuda ; \
elif [ "${LINUX_VER}" == "centos8" ] ; then \
Expand Down
6 changes: 4 additions & 2 deletions rapidsai/devel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ channels: \n\
&& cat /opt/conda/.condarc ; \
fi

# Install gcc7 - 7.5.0 to bring build stack in line with conda-forge
# Install gcc7 - 7.5.0 for CUDA 10.X builds and install latest
# 'libstdc++6' to be compatible with conda-forge dependencies
# for from-source builds, see PR #159
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& apt-get update \
&& apt-get install -y gcc-7 g++-7 \
&& apt-get install -y gcc-7 g++-7 libstdc++6 \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7 \
&& update-alternatives --set gcc /usr/bin/gcc-7 \
Expand Down