Commit 505b6e65 authored by Florian Wittkamp's avatar Florian Wittkamp
Browse files

Added CI.

parent ece818e7
stages:
- build
- test
gcc:
stage: build
before_script:
- echo "LAMA Version:" && expr `git --git-dir=${SCAI_ROOT}/../.git/ log -1 --pretty=%h`
script:
- echo "g++ Version:" && g++ --version
- cd src/ && make install CC=g++ CFLAGS="-std=c++11 -fopenmp -Wall -Wextra -Werror"
artifacts:
expire_in: 10 min
paths:
- bin/
openmp-gcc:
stage: test
dependencies:
- gcc
script:
- DYLD_LIBRARY_PATH=${SCAI_ROOT}/lib/:${DYLD_LIBRARY_PATH}
- LD_LIBRARY_PATH=${SCAI_ROOT}/lib:${LD_LIBRARY_PATH}
- OMP_NUM_THREADS=4
- cd par/
- ./../bin/FDSimulation
- cd seismograms && gnuplot seismogram.gnuplot
artifacts:
expire_in: 30 min
name: "openmp-gcc"
paths:
- par/seismograms/seismogram.png
openmpi-gcc:
stage: test
dependencies:
- gcc
script:
- DYLD_LIBRARY_PATH=${SCAI_ROOT}/lib/:${DYLD_LIBRARY_PATH}
- LD_LIBRARY_PATH=${SCAI_ROOT}/lib:${LD_LIBRARY_PATH}
- OMP_NUM_THREADS=1
- cd par/
- mpirun -np 4 ./../bin/FDSimulation
- md5sum seismograms/seismogram.mtx
- cd seismograms && gnuplot seismogram.gnuplot
artifacts:
expire_in: 30 min
name: "openmpi-gcc"
paths:
- par/seismograms/seismogram.png
\ No newline at end of file
## Finite-Difference simulation with the HPC library LAMA
Master: [![build status](https://git.scc.kit.edu/WAVE/FDSimulation_LAMA/badges/master/build.svg)](https://git.scc.kit.edu/WAVE/FDSimulation_LAMA/commits/master) Develop: [![build status](https://git.scc.kit.edu/WAVE/FDSimulation_LAMA/badges/develop/build.svg)](https://git.scc.kit.edu/WAVE/FDSimulation_LAMA/commits/develop)
*3D Acoustic Finite-Difference Code developed within the [WAVE-Project](http://wave-toolbox.org).*
Get started:
......
Supports Markdown
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