Commit 616b6216 authored by Mccaskey, Alex's avatar Mccaskey, Alex

updating master docker CI to use nvidia-docker

Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 9af4e6cb
Pipeline #68203 passed with stage
in 5 minutes and 15 seconds
......@@ -6,11 +6,11 @@ build_devel:
only:
- devel
script:
- cd docker/ci/ubuntu1804/devel && docker build -t exatn/devel . --no-cache
- cd docker/ci/ubuntu1804/devel && nvidia-docker build -t exatn/devel . --no-cache
build_master:
stage: build
only:
- master
script:
- cd docker/ci/ubuntu1804/master && docker build -t exatn/master . --no-cache
- cd docker/ci/ubuntu1804/master && nvidia-docker build -t exatn/master . --no-cache
from ubuntu:18.04
from nvidia/cuda:10.0-devel
run apt-get -y update && apt-get install -y gcc-8 g++-8 gfortran-8 git wget \
libcurl4-openssl-dev libssl-dev python3 libunwind-dev libmpich-dev \
python3 libunwind-dev libmpich-dev \
libpython3-dev python3-pip libblas-dev liblapack-dev software-properties-common \
&& python3 -m pip install ipopo cmake \
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
&& echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main" > /etc/apt/sources.list.d/llvm.list \
&& apt-get update -y && apt-get install -y libclang-9-dev llvm-9-dev \
&& ln -s /usr/bin/llvm-config-9 /usr/bin/llvm-config \
&& python3 -m pip install cmake \
&& rm -rf /var/lib/apt/lists/*
from xacc/ubuntu:18.04
from code.ornl.gov:4567/qci/exatn/base_cuda:10.0
run update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 50 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 50 \
&& update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 50 \
......@@ -9,5 +9,5 @@ run update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 50 \
-DEXATN_BUILD_TESTS=TRUE -DBLAS_LIB=ATLAS \
-DBLAS_PATH=/usr/lib/x86_64-linux-gnu \
-DMPI_LIB=MPICH -DMPI_ROOT_DIR=/usr/lib/mpich \
-DMPI_BIN_PATH=/usr/bin \
-DMPI_BIN_PATH=/usr/bin -DCUDA_HOST_COMPILER=g++-7 \
&& make -j$(nproc) install && ctest --output-on-failure
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment