Update analysis_fodo_tune.py #435
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🍏 macOS | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.ref }}-${{ github.head_ref }}-macos | |
cancel-in-progress: true | |
jobs: | |
build_appleclang: | |
name: AppleClang | |
runs-on: macos-latest | |
if: github.event.pull_request.draft == false | |
env: | |
CXXFLAGS: "-Werror -Wno-error=pass-failed" | |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: TRUE | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install dependencies | |
run: | | |
set +e | |
brew unlink gcc | |
brew update | |
brew install --overwrite python | |
brew install adios2 | |
brew install ccache | |
brew install cmake | |
brew install hdf5-mpi | |
brew install libomp | |
brew link --overwrite --force libomp | |
brew install ninja | |
brew install open-mpi | |
brew install pkg-config | |
python3 -m pip install --upgrade pip | |
python3 -m pip install --upgrade virtualenv | |
python3 -m venv py-venv | |
source py-venv/bin/activate | |
python3 -m pip install --upgrade pip | |
python3 -m pip install --upgrade build packaging setuptools wheel pytest | |
python3 -m pip install --upgrade pytest | |
python3 -m pip install --upgrade -r requirements_mpi.txt | |
python3 -m pip install --upgrade -r examples/requirements.txt | |
set -e | |
python3 -m pip install --upgrade pipx | |
python3 -m pipx install openPMD-validator | |
- name: CCache Cache | |
uses: actions/cache@v3 | |
# - once stored under a key, they become immutable (even if local cache path content changes) | |
# - for a refresh the key has to change, e.g., hash of a tracked file in the key | |
with: | |
path: /Users/runner/Library/Caches/ccache | |
key: ccache-macos-appleclang-${{ hashFiles('.github/workflows/macos.yml') }}-${{ hashFiles('cmake/dependencies/ABLASTR.cmake') }} | |
restore-keys: | | |
ccache-macos-appleclang-${{ hashFiles('.github/workflows/macos.yml') }}- | |
ccache-macos-appleclang- | |
- name: build ImpactX | |
run: | | |
source py-venv/bin/activate | |
cmake -S . -B build \ | |
-DCMAKE_VERBOSE_MAKEFILE=ON \ | |
-DImpactX_PYTHON=ON \ | |
-DPython_EXECUTABLE=$(which python3) | |
cmake --build build -j 3 | |
- name: run tests | |
run: | | |
source py-venv/bin/activate | |
ctest --test-dir build --output-on-failure -E pytest.AMReX | |
- name: run installed python module | |
run: | | |
cmake --build build --target pip_install | |
source py-venv/bin/activate | |
python3 examples/fodo/run_fodo.py | |
- name: run installed app | |
run: | | |
sudo cmake --build build --target install | |
impactx.MPI.OMP.DP.OPMD examples/fodo/input_fodo.in algo.particle_shape = 1 || \ | |
{ cat Backtrace.0.0; exit 1; } | |
impactx.MPI.OMP.DP.OPMD examples/fodo/input_fodo.in algo.particle_shape = 2 || \ | |
{ cat Backtrace.0.0; exit 1; } | |
impactx.MPI.OMP.DP.OPMD examples/fodo/input_fodo.in algo.particle_shape = 3 || \ | |
{ cat Backtrace.0.0; exit 1; } | |
- name: validate created openPMD files | |
run: find build -name *.h5 | xargs -n1 -I{} openPMD_check_h5 -i {} |