ADD: opal-x A100 workflow

This commit is contained in:
2025-05-21 13:42:54 +02:00
parent b7f2a28f73
commit 99fd9f2f23
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,17 @@
name: OPAL-X-GPU Merlin7 Scheduler
run-name: OPAL-X-GPU Merlin7 Scheduler
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
jobs:
checkout:
runs-on: merlin7
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Sbatch A100 GPU script
run: |
chmod +x .gitea/workflows/sbatch/opal-x_gpu.sbatch
sbatch .gitea/workflows/sbatch/opal-x_gpu.sbatch

View File

@ -0,0 +1,29 @@
#!/bin/bash
#SBATCH --job-name="opal-x-scheduled-A100-GPU"
#SBATCH --output=_scheduler-stdout.txt
#SBATCH --error=_scheduler-stderr.txt
#SBATCH --partition=a100-daily
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=16
#SBATCH --time=01:00:00
#SBATCH --cluster=tgmerlin7
#SBATCH --gpus=1
#SBATCH --wait
export SSL_CERT_FILE=/etc/ssl/ca-bundle.pem
export REQUESTS_CA_BUNDLE=/etc/ssl/ca-bundle.pem
PMODULES_VERSION='2.0.0.2'
source /opt/psi/config/profile.bash
module use Spack unstable
module load gcc/13.2.0 openmpi/4.1.6-57rc-A100-gpu
module load boost/1.82.0-e7gp fftw/3.3.10 gnutls/3.8.3 googletest/1.14.0 gsl/2.8 h5hut/2.0.0rc7 openblas/0.3.26-omp cmake/3.31.6-oe7u
git clone https://gitlab.psi.ch/OPAL/opal-x/src.git
cd src
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DKokkos_ARCH_AMPERE80=ON -DCMAKE_CXX_STANDARD=20 -DIPPL_ENABLE_FFT=ON -DIPPL_ENABLE_TESTS=OFF -DIPPL_ENABLE_SOLVERS=ON -DIPPL_ENABLE_ALPINE=True -DIPPL_PLATFORMS=cuda ..
make -j 16

0
.gitea/workflows/sbatch/q-e_cpu.sbatch Normal file → Executable file
View File