Fix fextract with > 1 MPI rank #11
Workflow file for this run
This file contains hidden or 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: Fextract Driver | |
| on: | |
| push: | |
| branches: [ development ] | |
| pull_request: | |
| branches: [ development ] | |
| merge_group: | |
| branches: [ development ] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.head_ref }}-fextract-driver | |
| cancel-in-progress: true | |
| env: | |
| BUILD_TYPE: Release | |
| permissions: | |
| contents: read | |
| jobs: | |
| check_changes: | |
| uses: ./.github/workflows/check_changes.yml | |
| with: | |
| workflow_file: '.github/workflows/fextract-driver.yml' | |
| fextract_driver: | |
| runs-on: ubuntu-latest | |
| needs: check_changes | |
| if: needs.check_changes.outputs.has_non_docs_changes == 'true' | |
| steps: | |
| - uses: actions/checkout@c2d88d3ecc89a9ef08eebf45d9637801dcee7eb5 # v4.2.2 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Create Build Environment | |
| run: cmake -E make_directory ${{ runner.workspace }}/build | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install gcc-11 g++-11 openmpi-bin libopenmpi-dev libhdf5-mpi-dev | |
| - name: Configure CMake | |
| shell: bash | |
| working-directory: ${{ runner.workspace }}/build | |
| run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DAMReX_SPACEDIM=3 | |
| - name: Build HydroBlast3D and fextract driver | |
| shell: bash | |
| working-directory: ${{ runner.workspace }}/build | |
| run: cmake --build . --config $BUILD_TYPE --parallel 4 --target HydroBlast3D fextract_util_driver | |
| - name: Generate plotfile with HydroBlast3D (1 timestep) | |
| shell: bash | |
| working-directory: ${{ runner.workspace }} | |
| run: | | |
| cmake -E make_directory run-fextract | |
| cd run-fextract | |
| mpirun --host localhost --bind-to none --map-by slot --oversubscribe -np 2 \ | |
| ${{ runner.workspace }}/build/src/problems/HydroBlast3D/HydroBlast3D \ | |
| $GITHUB_WORKSPACE/inputs/blast_32.in \ | |
| max_timesteps=1 plotfile_interval=1 amr.plot_nfiles=1 | |
| PLOTFILE=$(ls -d plt* | head -n 1) | |
| echo "PLOTFILE_PATH=${PWD}/${PLOTFILE}" >> $GITHUB_ENV | |
| - name: Run fextract MPI consistency test | |
| shell: bash | |
| working-directory: ${{ github.workspace }} | |
| run: scripts/bash/test_fextract_mpi.sh -p "${PLOTFILE_PATH}" -b ${{ runner.workspace }}/build -n 2 |