Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frederik Hennig
lbmpy
Commits
6b04bc1b
Commit
6b04bc1b
authored
Jun 25, 2020
by
Markus Holzer
Browse files
Adapted integration pipeline for lbmpy
parent
434885fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6b04bc1b
...
...
@@ -98,32 +98,26 @@ pycodegen-integration:
stage
:
test
when
:
manual
script
:
# run lbmpy long test pipeline
-
export NUM_CORES=$(nproc --all)
-
mkdir -p ~/.config/matplotlib
-
echo "backend:template" > ~/.config/matplotlib/matplotlibrc
-
pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pystencils.git@master#egg=pystencils
-
py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=.
# change path to outside of lbmpy and call pip to set the environment variable right
-
cd ..
-
pip install -e lbmpy
# fetch pycodegen repository with waLberla as submodule and install waLBerla to run the integration tests
-
git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pycodegen.git
-
cd pycodegen
-
git submodule sync --recursive
-
git submodule update --init --recursive
-
git submodule foreach git fetch origin
# compare the latest master version!
-
git submodule foreach git reset --hard origin/master
-
cd pystencils
-
git remote add test $CI_REPOSITORY_URL
-
git fetch test
-
git reset --hard $CI_COMMIT_SHA
-
cd ..
-
pip install -e pystencils/
-
pip install -e lbmpy/
-
pip install -e pygrandchem/
-
./install_walberla.sh
-
export NUM_CORES=$(nproc --all)
-
mkdir -p ~/.config/matplotlib
-
echo "backend:template" > ~/.config/matplotlib/matplotlibrc
-
cd pystencils
-
py.test -v -n $NUM_CORES .
-
cd ../lbmpy
-
py.test -v -n $NUM_CORES .
-
cd ../pygrandchem
-
py.test -v -n $NUM_CORES .
-
cd ../walberla/build/
-
make CodegenJacobiCPU CodegenJacobiGPU CodegenPoisson MicroBenchmarkGpuLbm LbCodeGenerationExample UniformGridBenchmarkGPU_trt UniformGridBenchmarkGPU_entropic_kbc_n4
# build all integration tests
-
cd walberla/build/
-
make -j $NUM_CORES CodegenJacobiCPU CodegenJacobiGPU CodegenPoisson MicroBenchmarkGpuLbm LbCodeGenerationExample
-
cd apps/benchmarks/UniformGridGPU
-
make -j $NUM_CORES
-
cd ../UniformGridGenerated
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment