Commit 01c276e6 authored by Pape, David (FWCC) - 139658's avatar Pape, David (FWCC) - 139658
Browse files

Added CI manual to README.

parent ca790dcb
Prototype of a gitlab-runner using a custom executor to run CI jobs on hemera cluster.
Prototype of a gitlab-runner using a custom executor to run CI jobs on hemera cluster with Slurm.
Instructions
============
Instructions -- Use in .gitlab-ci.yml
=====================================
- Stages that are supposed to run on the cluster must be tagged with "hemera"
- Pass options to the Slurm job by prepending "CI_SLURM_" to their name. Options must be all upper
case, hyphens become underscores. Currently supported options are:
- CI_SLURM_NODES
- CI_SLURM_NTASKS
- CI_SLURM_NTASKS_PER_NODE
- CI_SLURM_CPUS_PER_TASK
- CI_SLURM_PARTITION
- CI_SLURM_GRES
- Example 1 -- Run a hybrid MPI/OpenMP job
run_mpi_omp:
stage: deploy
dependencies:
- build_mpi_omp
tags:
- hemera
variables:
CI_SLURM_NODES: 2
CI_SLURM_NTASKS_PER_NODE: 4
CI_SLURM_CPUS_PER_TASK: 8
script:
- export OMP_NUM_THREADS=8
- mpirun ./mpi_omp
- Example 2 -- Run a CUDA job on the GPU partition
run_cuda:
stage: deploy
dependencies:
- build_cuda
tags:
- hemera
variables:
CI_SLURM_PARTITION: "gpu"
CI_SLURM_GRES: "gpu:1"
script:
- ./cuda
Instructions -- Runner setup
============================
- Run ./setup.sh to symlink the runner configuration file to the apropriate place. You will be
warned if the gitlab-runner executable (which you will need when working with artifacts) is not in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment