Skip to content

Commit 0d9e90e

Browse files
committed
Merge branch 'python' of ssh://github.com/espressomd/espresso into dds_gpu_replica_field_tracking
2 parents c7cd617 + 1f838ac commit 0d9e90e

450 files changed

Lines changed: 14399 additions & 12120 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/push_pull.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,23 @@ jobs:
2121
save: ${{ github.ref == 'refs/heads/python' }}
2222
- name: Get runner specifications
2323
run: system_profiler SPHardwareDataType
24-
- run: |
25-
brew install boost boost-mpi fftw ccache
26-
# https://mac.r-project.org/openmp/
27-
curl -O https://mac.r-project.org/openmp/openmp-17.0.6-darwin20-Release.tar.gz
28-
sudo tar fvxz openmp-17.0.6-darwin20-Release.tar.gz -C /
24+
- name: Install dependencies
25+
run: |
26+
echo '' > Brewfile
27+
for dep in boost boost-mpi fftw ccache ninja; do echo "brew \"${dep}\"" >> Brewfile; done
28+
brew bundle check >/dev/null 2>&1 || brew bundle --verbose --no-upgrade
29+
# set up Xcode compiler
30+
echo "::group::List available Xcode compilers"
31+
ls /Applications | grep Xcode
32+
echo "::endgroup::"
33+
sudo xcode-select -switch /Applications/Xcode_16.4.app
34+
echo "::group::Install OpenMP (https://mac.r-project.org/openmp/)"
35+
curl -s -o ${{ runner.temp }}/openmp.tar.gz https://mac.r-project.org/openmp/openmp-19.1.0-darwin20-Release.tar.gz
36+
sudo tar fvxz ${{ runner.temp }}/openmp.tar.gz -C /
37+
rm ${{ runner.temp }}/openmp.tar.gz
2938
codesign -d -vv /usr/local/lib/libomp.dylib
39+
echo "::endgroup::"
40+
# Python dependencies
3041
python3 -m venv venv
3142
. venv/bin/activate
3243
pip3 install -c requirements.txt cython numpy scipy packaging
@@ -38,11 +49,14 @@ jobs:
3849
build_procs: 3
3950
check_procs: 3
4051
with_ccache: 'true'
52+
with_walberla: 'true'
53+
with_walberla_fft: 'false'
54+
with_walberla_avx: 'false'
4155

4256
debian:
4357
runs-on: ubuntu-latest
4458
container:
45-
image: ghcr.io/espressomd/docker/debian:77a3823c5c4c2338c39eb0e0f054b5802f0f2a5e-base-layer
59+
image: ghcr.io/espressomd/docker/debian:17ae5d9f6217a5653be3ec409178f0ee15cb519f-base-layer
4660
credentials:
4761
username: ${{ github.actor }}
4862
password: ${{ secrets.github_token }}
@@ -64,8 +78,8 @@ jobs:
6478
env:
6579
build_procs: 4
6680
check_procs: 4
67-
CC: 'gcc-12'
68-
CXX: 'g++-12'
81+
CC: 'gcc-14'
82+
CXX: 'g++-14'
6983
myconfig: 'maxset'
7084
with_ccache: 'true'
7185
with_cuda: 'false'
@@ -83,7 +97,7 @@ jobs:
8397
runs-on: ubuntu-latest
8498
if: ${{ github.repository == 'espressomd/espresso' }}
8599
container:
86-
image: ghcr.io/espressomd/docker/ubuntu-wo-dependencies:77a3823c5c4c2338c39eb0e0f054b5802f0f2a5e-base-layer
100+
image: ghcr.io/espressomd/docker/ubuntu-wo-dependencies:17ae5d9f6217a5653be3ec409178f0ee15cb519f-base-layer
87101
credentials:
88102
username: ${{ github.actor }}
89103
password: ${{ secrets.github_token }}

.gitlab-ci.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: ghcr.io/espressomd/docker/ubuntu:77a3823c5c4c2338c39eb0e0f054b5802f0f2a5e
1+
image: ghcr.io/espressomd/docker/ubuntu:17ae5d9f6217a5653be3ec409178f0ee15cb519f
22

33
stages:
44
- prepare
@@ -16,7 +16,7 @@ stages:
1616

1717
.notification_job_template: &notification_job_definition
1818
<<: *global_job_definition
19-
image: ghcr.io/espressomd/docker/fedora:77a3823c5c4c2338c39eb0e0f054b5802f0f2a5e
19+
image: ghcr.io/espressomd/docker/fedora:17ae5d9f6217a5653be3ec409178f0ee15cb519f
2020
variables:
2121
GET_SOURCES_ATTEMPTS: 3
2222
before_script:
@@ -108,7 +108,7 @@ maxset:
108108
with_stokesian_dynamics: 'true'
109109
with_caliper: 'true'
110110
check_skip_long: 'true'
111-
cmake_params: '-D CMAKE_CXX_STANDARD=23 -D ESPRESSO_TEST_NP=8'
111+
cmake_params: '-D CMAKE_CXX_STANDARD=23 -D CMAKE_CXX_EXTENSIONS=OFF -D ESPRESSO_TEST_NP=8'
112112
script:
113113
- bash maintainer/CI/build_cmake.sh
114114
tags:
@@ -137,10 +137,10 @@ no_rotation:
137137
- no-cuda
138138
- numa
139139

140-
fedora:41:
140+
fedora:42:
141141
<<: *global_job_definition
142142
stage: build
143-
image: ghcr.io/espressomd/docker/fedora:77a3823c5c4c2338c39eb0e0f054b5802f0f2a5e
143+
image: ghcr.io/espressomd/docker/fedora:17ae5d9f6217a5653be3ec409178f0ee15cb519f
144144
variables:
145145
with_cuda: 'false'
146146
with_gsl: 'false'
@@ -149,7 +149,6 @@ fedora:41:
149149
myconfig: 'maxset'
150150
make_check_python: 'true'
151151
with_stokesian_dynamics: 'true'
152-
with_fftw: 'false'
153152
cmake_params: '-D CMAKE_INCLUDE_PATH=/usr/include/mpich-x86_64 -D CMAKE_PREFIX_PATH=/usr/lib64/mpich/lib/'
154153
script:
155154
- bash maintainer/CI/build_cmake.sh
@@ -176,6 +175,7 @@ clang-sanitizer:
176175
with_scafacos: 'true'
177176
with_walberla: 'true'
178177
with_stokesian_dynamics: 'true'
178+
with_shared_memory_parallelism: 'true'
179179
with_coverage: 'false'
180180
with_coverage_python: 'false'
181181
script:
@@ -398,12 +398,12 @@ installation:
398398
script:
399399
- bash maintainer/CI/build_cmake.sh
400400
- cd build
401-
- make install
401+
- ninja install
402402
- cmake . -D ESPRESSO_BUILD_TESTS=ON
403403
- sed -i "s|$(pwd)/pypresso|/tmp/espresso-unit-tests/bin/pypresso|" testsuite/{python,samples,tutorials}/CTestTestfile.cmake
404-
- make check_python_skip_long
405-
- make check_samples
406-
- make check_tutorials
404+
- ninja check_python_skip_long
405+
- ninja check_samples
406+
- ninja check_tutorials
407407
tags:
408408
- espresso
409409
- cuda
@@ -442,8 +442,8 @@ check_sphinx:
442442
artifacts: true
443443
script:
444444
- cd ${CI_PROJECT_DIR}/build
445-
- make -t && make sphinx
446-
- make -j2 tutorials
445+
- ninja sphinx
446+
- ninja -j2 tutorials
447447
- bash ${CI_PROJECT_DIR}/maintainer/CI/doc_warnings.sh
448448
- python3 ${CI_PROJECT_DIR}/maintainer/CI/jupyter_warnings.py
449449
artifacts:
@@ -464,9 +464,9 @@ run_tutorials:
464464
artifacts: true
465465
script:
466466
- cd ${CI_PROJECT_DIR}/build
467-
- make -t
468-
- make tutorials
469-
- make -j1 tutorials_html
467+
- ninja -t restat
468+
- ninja tutorials
469+
- ninja -j1 tutorials_html
470470
- cd doc/tutorials
471471
- mkdir html
472472
- ${CI_PROJECT_DIR}/maintainer/CI/deploy_tutorials.py
@@ -492,7 +492,7 @@ run_doxygen:
492492
artifacts: true
493493
script:
494494
- cd ${CI_PROJECT_DIR}/build
495-
- make -t && make doxygen
495+
- ninja doxygen
496496
artifacts:
497497
paths:
498498
- build/doc/doxygen
@@ -515,7 +515,8 @@ maxset_no_gpu:
515515
script:
516516
- export CUDA_VISIBLE_DEVICES=""
517517
- cd ${CI_PROJECT_DIR}/build
518-
- make -t && make check
518+
- ninja -t restat
519+
- ninja check
519520
tags:
520521
- espresso
521522
- no-cuda

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
language: system
1010
always_run: false
1111
files: '.*\.(cpp|hpp|h|cu|cuh)'
12-
exclude: '^libs/|^src/walberla_bridge/src/.*/generated_kernels/.*\.(cpp|cu)|^maintainer/walberla_kernels/templates/.*\.tmpl\.(cpp|hpp|h|cu|cuh)'
12+
exclude: '^libs/|^src/config/include/config/version.hpp.in|^src/walberla_bridge/src/.*/generated_kernels/.*\.(cpp|cu)|^maintainer/walberla_kernels/templates/.*\.tmpl\.(cpp|hpp|h|cu|cuh)'
1313
args: ["-i", "-style=file"]
1414

1515
- id: autopep8
@@ -27,7 +27,7 @@ repos:
2727
language: system
2828
always_run: false
2929
files: 'CMakeLists.txt'
30-
exclude: '^libs/h5xx/|^libs/Random123-1\.09/'
30+
exclude: '^libs/Random123-1\.09/'
3131
args: ["-i"]
3232

3333
- id: ex-flags

0 commit comments

Comments
 (0)