diff --git a/builds-gcc7/Dockerfile.centos7 b/builds-gcc7/Dockerfile.centos7 index f59eee1c..874b5a31 100644 --- a/builds-gcc7/Dockerfile.centos7 +++ b/builds-gcc7/Dockerfile.centos7 @@ -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 @@ -29,9 +31,24 @@ 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++.* diff --git a/miniconda-cuda/Dockerfile b/miniconda-cuda/Dockerfile index dbde45e7..1919a65f 100644 --- a/miniconda-cuda/Dockerfile +++ b/miniconda-cuda/Dockerfile @@ -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 \ diff --git a/miniforge-cuda/Dockerfile b/miniforge-cuda/Dockerfile index 80539681..5fbc347c 100644 --- a/miniforge-cuda/Dockerfile +++ b/miniforge-cuda/Dockerfile @@ -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 \