Added cleanfort10.x to CMakeLists.txt #14
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: TurboRVB (GCC + OpenBLAS + OpenMPI) | |
| on: | |
| push: | |
| branches: [ "main", "devel" ] | |
| pull_request: | |
| branches: [ "main", "devel" ] | |
| jobs: | |
| gcc-openblas-openmpi: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| # Avoid oversubscription failures in CI VMs | |
| OMP_NUM_THREADS: 2 | |
| OMPI_MCA_rmaps_base_oversubscribe: "1" | |
| OMPI_MCA_btl_vader_single_copy_mechanism: "none" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.8" | |
| - name: Install toolchain and libraries | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| build-essential cmake pkg-config \ | |
| gcc g++ gfortran \ | |
| openmpi-bin libopenmpi-dev \ | |
| libopenblas-dev liblapack-dev \ | |
| python3-pip | |
| python -m pip install --upgrade pip | |
| pip install numpy scipy pandas | |
| - name: Lint | |
| run: python ./devel_tools/run_linter.py . | |
| - name: Configure (CMake) | |
| env: | |
| CC: mpicc | |
| CXX: mpicxx | |
| FC: mpifort | |
| run: | | |
| cmake -S . -B build -G "Unix Makefiles" \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DEXT_PARALLEL=ON \ | |
| -DBLA_VENDOR=OpenBLAS | |
| - name: Build | |
| run: cmake --build build -j 2 | |
| - name: Test | |
| run: ctest --test-dir build --output-on-failure |