Skip to content

Commit

Permalink
Add build-hpc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
reuterbal committed Nov 21, 2024
1 parent 156ea96 commit 506f47b
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/build-hpc-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
build:
modules:
- ecbuild
- cmake
- ninja
- prgenv/nvidia
- hpcx-openmpi
- fftw
parallel: 32
cmake_options:
- -DENABLE_MPI=ON
- -DENABLE_FFTW=ON
- -DENABLE_ACC=ON
- -DENABLE_GPU=ON
force_build: true
env:
- GH_TOKEN=${GH_TOKEN}
compiler_cc: nvc
compiler_cxx: nvc++
compiler_fc: nvfortran
43 changes: 43 additions & 0 deletions .github/workflows/build-hpc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build-hpc

# Controls when the action will run
on:

# Trigger the workflow on all pull requests
pull_request: ~

# Allow workflow to be dispatched on demand
workflow_dispatch: ~

env:
ECTRANS_TOOLS: ${{ github.workspace }}/.github/tools
CTEST_PARALLEL_LEVEL: 1
CACHE_SUFFIX: v1 # Increase to force new cache to be created

jobs:
ci-hpc:
name: ci-hpc
runs-on: [self-hosted, linux, hpc]
env:
GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }}
steps:
- uses: ecmwf-actions/reusable-workflows/ci-hpc@v2
with:
# github_user: ${{ secrets.BUILD_PACKAGE_HPC_GITHUB_USER }}
# github_token: ${{ secrets.GH_REPO_READ_TOKEN }}
site: ac-batch
troika_user: ${{ secrets.HPC_CI_SSH_USER }}
# repository: ecmwf-ifs/ectrans@${{ github.event.pull_request.head.sha || github.sha }}
build_config: .github/build-hpc-config.yml
dependencies: |
ecmwf-ifs/fiat
dependency_branch: develop
dependency_cmake_options: |
ecmwf-ifs/fiat: "-G Ninja -DENABLE_TESTS=OFF -DENABLE_MPI=ON"
sbatch_options: |
#SBATCH --time=00:20:00
#SBATCH --nodes=1
#SBATCH --ntasks=32
#SBATCH --gpus=1
#SBATCH --mem=128G
#SBATCH --qos=dg
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,30 @@ jobs:
# uses: codecov/codecov-action@v2
# with:
# files: ${{ steps.build-test.outputs.coverage_file }}

ci-hpc:
name: ci-hpc
runs-on: [self-hosted, linux, hpc]
env:
GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }}
steps:
- uses: ecmwf-actions/reusable-workflows/ci-hpc@v2
with:
# github_user: ${{ secrets.BUILD_PACKAGE_HPC_GITHUB_USER }}
# github_token: ${{ secrets.GH_REPO_READ_TOKEN }}
site: ac-batch
troika_user: ${{ secrets.HPC_CI_SSH_USER }}
# repository: ecmwf-ifs/ectrans@${{ github.event.pull_request.head.sha || github.sha }}
build_config: .github/build-hpc-config.yml
dependencies: |
ecmwf-ifs/fiat
dependency_branch: develop
dependency_cmake_options: |
ecmwf-ifs/fiat: "-G Ninja -DENABLE_TESTS=OFF -DENABLE_MPI=ON"
sbatch_options: |
#SBATCH --time=00:20:00
#SBATCH --nodes=1
#SBATCH --ntasks=32
#SBATCH --gpus=1
#SBATCH --mem=128G
#SBATCH --qos=dg

0 comments on commit 506f47b

Please sign in to comment.