Skip to content

Implement replicas and dipole field tracking to DipolarDirectSumGpu #3779

Implement replicas and dipole field tracking to DipolarDirectSumGpu

Implement replicas and dipole field tracking to DipolarDirectSumGpu #3779

Workflow file for this run

name: run tests
on:
push:
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
macos:
runs-on: macos-15
if: ${{ github.repository == 'espressomd/espresso' }}
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: macos
save: ${{ github.ref == 'refs/heads/python' }}
- name: Get runner specifications
run: system_profiler SPHardwareDataType
- name: Install dependencies
run: |
echo '' > Brewfile
for dep in boost boost-mpi fftw ccache ninja; do echo "brew \"${dep}\"" >> Brewfile; done
brew bundle check >/dev/null 2>&1 || brew bundle --verbose --no-upgrade
# set up Xcode compiler
echo "::group::List available Xcode compilers"
ls /Applications | grep Xcode
echo "::endgroup::"
sudo xcode-select -switch /Applications/Xcode_16.4.app
echo "::group::Install OpenMP (https://mac.r-project.org/openmp/)"
curl -s -o ${{ runner.temp }}/openmp.tar.gz https://mac.r-project.org/openmp/openmp-19.1.0-darwin20-Release.tar.gz
sudo tar fvxz ${{ runner.temp }}/openmp.tar.gz -C /
rm ${{ runner.temp }}/openmp.tar.gz
codesign -d -vv /usr/local/lib/libomp.dylib
echo "::endgroup::"
# Python dependencies
python3 -m venv venv
. venv/bin/activate
pip3 install -c requirements.txt cython numpy scipy packaging
deactivate
shell: bash
- name: Build and check
uses: ./.github/actions/build_and_check
env:
build_procs: 3
check_procs: 3
with_ccache: 'true'
with_walberla: 'true'
with_walberla_fft: 'false'
with_walberla_avx: 'false'
debian:
runs-on: ubuntu-latest
container:
image: ghcr.io/espressomd/docker/debian:17ae5d9f6217a5653be3ec409178f0ee15cb519f-base-layer
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
options: --cpus 4
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: debian
save: ${{ github.ref == 'refs/heads/python' || ( github.repository != 'espressomd/espresso' && ! startsWith(github.ref, 'refs/pull') ) }}
- name: Setup Git environment
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Get runner specifications
run: lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)'
- name: Build and check
uses: ./.github/actions/build_and_check
env:
build_procs: 4
check_procs: 4
CC: 'gcc-14'
CXX: 'g++-14'
myconfig: 'maxset'
with_ccache: 'true'
with_cuda: 'false'
with_hdf5: 'true'
with_fftw: 'true'
with_gsl: 'false'
with_scafacos: 'false'
with_stokesian_dynamics: 'false'
make_check_unit_tests: 'true'
make_check_python: 'false'
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
ubuntu:
runs-on: ubuntu-latest
if: ${{ github.repository == 'espressomd/espresso' }}
container:
image: ghcr.io/espressomd/docker/ubuntu-wo-dependencies:17ae5d9f6217a5653be3ec409178f0ee15cb519f-base-layer
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
options: --cpus 4
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ubuntu
save: ${{ github.ref == 'refs/heads/python' }}
- name: Setup Git environment
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Get runner specifications
run: lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)'
- name: Build and check
uses: ./.github/actions/build_and_check
env:
build_procs: 4
check_procs: 4
CC: 'gcc-13'
CXX: 'g++-13'
myconfig: 'maxset'
with_ccache: 'true'
with_cuda: 'false'
with_hdf5: 'false'
with_fftw: 'false'
with_gsl: 'false'
with_scafacos: 'false'
with_stokesian_dynamics: 'false'
make_check_unit_tests: 'false'
make_check_python: 'false'
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1