diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..e76f0684bb29dfb47db4ef75cdc0cd29719886e7 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +# -------------------------------------------------------------------------------------------------- +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2024 Jayesh Badwaik <j.badwaik@fz-juelich.de> +# -------------------------------------------------------------------------------------------------- + + +jedi: + id_tokens: + SITE_ID_TOKEN: + aud: "https://gitlab.jsc.fz-juelich.de" + variables: + CUSTOM_CI_BUILDS_DIR: /p/scratch/cjsc/badwaik1.ci/exacb/examples/scaler + tags: + - jacamar + - jedi + - login + - shell + script: + - module load GCC CUDA OpenMPI CMake + - cmake -B build -S . + - cmake --build build + - cmake --install build --prefix opt + - jutil env activate --project cjsc --budget zam + - srun opt/bin/scaler --size 1024 diff --git a/submit.sh b/submit.sh new file mode 100644 index 0000000000000000000000000000000000000000..abe0ad050ebf94ecfb5e8998bca05b120e1cefb2 --- /dev/null +++ b/submit.sh @@ -0,0 +1,44 @@ +#!/bin/bash -x +#SBATCH --job-name="scaler_execute_4" +#SBATCH --mail-user= +#SBATCH --mail-type=NONE +#SBATCH --nodes=1 +#SBATCH --ntasks=4 +#SBATCH --cpus-per-task=1 +#SBATCH --time=00:05:00 +#SBATCH --output=job.out +#SBATCH --error=job.err +#SBATCH --partition=all +#SBATCH --gres=NONE + + +ulimit -l unlimited + +export OMP_NUM_THREADS="1" + + +module purge && module load Stages/2024 && module load GCC OpenMPI + +JUBE_ERR_CODE=$? +if [ $JUBE_ERR_CODE -ne 0 ]; then + touch error + exit $JUBE_ERR_CODE +fi + +srun --cpus-per-task=1 opt/bin/scaler --size 1024 + +JUBE_ERR_CODE=$? +if [ $JUBE_ERR_CODE -ne 0 ]; then + touch error + exit $JUBE_ERR_CODE +fi + + + +JUBE_ERR_CODE=$? +if [ $JUBE_ERR_CODE -ne 0 ]; then + touch error + exit $JUBE_ERR_CODE +fi + +touch ready