Commit f80a1efb authored by Niklas Eiling's avatar Niklas Eiling
Browse files

cuda: make CI build with CUDA. Add new CI target that builds dpsim with CUDA...

cuda: make CI build with CUDA. Add new CI target that builds dpsim with CUDA support. We have no GPUs in the runners so we need a separate target. Add CUDA dependencies to Dockerfile.dev
parent 2bc5b080
......@@ -35,6 +35,24 @@ docker:
- linux
build:linux:
stage: build
script:
- mkdir -p build
- cd build
- cmake -DWITH_CUDA=OFF ..
- make -j 32
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG}
cache:
paths:
- build
key: build-linux
artifacts:
paths:
- build
tags:
- docker
build:linux-cuda:
stage: build
script:
- mkdir -p build
......@@ -217,4 +235,4 @@ deploy:packages:
tags:
- fein-deploy
- shell
- linux
\ No newline at end of file
- linux
......@@ -36,12 +36,21 @@ RUN dnf --refresh -y install \
sundials-devel \
gsl-devel
# CUDA dependencies
RUN dnf -y install https://developer.download.nvidia.com/compute/cuda/repos/fedora29/x86_64/cuda-repo-fedora29-10.2.89-1.x86_64.rpm && \
dnf --refresh -y install cuda-compiler-10-2 cuda-libraries-dev-10-2 && \
ln -s cuda-10.2 /usr/local/cuda
ENV PATH="/usr/local/cuda/bin:${PATH}"
ENV LD_LIBRARY_PATH="/usr/local/cuda/lib64:${LD_LIBRARY_PATH}"
# Install some debuginfos
RUN dnf -y debuginfo-install \
python3
# CIMpp and VILLAS are installed here
ENV LD_LIBRARY_PATH /usr/local/lib64
ENV LD_LIBRARY_PATH="/usr/local/lib64:${LD_LIBRARY_PATH}"
# VILLAS dependencies
RUN dnf -y install \
......
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