Skip to content

Commit

Permalink
ci: disable power9 and add roci jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
rbberger committed Feb 22, 2024
1 parent c3e08cc commit 434a498
Showing 1 changed file with 94 additions and 69 deletions.
163 changes: 94 additions & 69 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,42 @@ variables:
# SPACK_USER_CACHE_PATH: "${CI_PROJECT_DIR}/spack-local"
# DEVEL_SPACK_CHECKOUT: "${CI_PROJECT_DIR}/spack"

before_script:
- echo "Running on $(hostname)"
- section() { echo $'\e[0K'"section_$1:$(date +%s):$2"$'\r\e[0K'"${3+${COLOR_CYAN}$3${COLOR_PLAIN}}"; }
- export PYTHONNOUSERSITE=1
- export SPACK_DISABLE_LOCAL_CONFIG=true
- export SPACK_USER_CACHE_PATH=${SPACK_USER_CACHE_PATH:-/tmp/spack-local}
- export DEVEL_SPACK_CHECKOUT=${DEVEL_SPACK_CHECKOUT:-/tmp/spack}
- export SINGULARITY_EOS_SPACK_DIR=${SINGULARITY_EOS_TEMP_SPACK_DIR:=$XCAP_OSS_SPACK_DIR}
- section start "spack_init[collapsed=true]" "Creating Spack instance at ${DEVEL_SPACK_CHECKOUT}"
- |
rsync -rpl \
--exclude=".git" \
--exclude="etc/spack/repos.yaml" \
--exclude="etc/spack/packages.yaml" \
--include="etc/spack/**" \
--include="lib/spack/**" \
--exclude-from=${SINGULARITY_EOS_SPACK_DIR}/.gitignore \
${SINGULARITY_EOS_SPACK_DIR}/ ${DEVEL_SPACK_CHECKOUT}/
- source ${DEVEL_SPACK_CHECKOUT}/share/spack/setup-env.sh
- spack --version
- spack compiler list
- section end spack_init
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_PIPELINE_SOURCE == "pipeline"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG

default:
tags:
- darwin-slurm-shared
id_tokens:
SITE_ID_TOKEN:
aud: https://asc-git.lanl.gov
before_script:
- echo "Running on $(hostname)"
- section() { echo $'\e[0K'"section_$1:$(date +%s):$2"$'\r\e[0K'"${3+${COLOR_CYAN}$3${COLOR_PLAIN}}"; }
- export PYTHONNOUSERSITE=1
- export SPACK_DISABLE_LOCAL_CONFIG=true
- export SPACK_USER_CACHE_PATH=${SPACK_USER_CACHE_PATH:-/tmp/spack-local}
- export DEVEL_SPACK_CHECKOUT=${DEVEL_SPACK_CHECKOUT:-/tmp/spack}
- export SINGULARITY_EOS_SPACK_DIR=${SINGULARITY_EOS_TEMP_SPACK_DIR:=$XCAP_OSS_SPACK_DIR}
- section start "spack_init[collapsed=true]" "Creating Spack instance at ${DEVEL_SPACK_CHECKOUT}"
- |
rsync -rpl \
--exclude=".git" \
--exclude="etc/spack/repos.yaml" \
--exclude="etc/spack/packages.yaml" \
--include="etc/spack/**" \
--include="lib/spack/**" \
--exclude-from=${SINGULARITY_EOS_SPACK_DIR}/.gitignore \
${SINGULARITY_EOS_SPACK_DIR}/ ${DEVEL_SPACK_CHECKOUT}/
- source ${DEVEL_SPACK_CHECKOUT}/share/spack/setup-env.sh
- spack --version
- spack compiler list
- section end spack_init

##########################
# Build Matrix Variables #
Expand All @@ -66,45 +80,55 @@ before_script:
.nofort: &nofort
SINGULARITY_USE_FORTRAN: "false"

.skylake: &skylake
SCHEDULER_PARAMETERS: "--nodes=1 --partition=skylake-gold,skylake-platinum"

.power9: &power9
SCHEDULER_PARAMETERS: "--nodes=1 --partition=power9-rhel7"

.x86volta: &x86volta
SCHEDULER_PARAMETERS: "--nodes=1 --partition=volta-x86 -C cpu_family:haswell"

.python: &python
SINGULARITY_BUILD_PYTHON: "ON"

#################
# General Setup #
#################
######################
# Platform Variables #
######################

.rocinante_shell: &rocinante_shell
tags: &rocinante_shell_tags
- rocinante
- shell
- jacamar
- slurm

.rocinante_batch: &rocinante_batch
tags: &rocinante_batch_tags
- rocinante
- batch
- jacamar
- slurm
variables: &rocinante_batch_var
SCHEDULER_PARAMETERS: "--nodes=1 --time 1:00:00 --account=asc-ci --qos=ci --reservation=ci --partition=ci"

.darwin_shell: &darwin_shell
tags: &darwin_shell_tags
- darwin
- jacamar
- shell

.darwin_batch: &darwin_batch
tags: &darwin_batch_tags
- darwin
- jacamar
- batch
variables: &darwin_batch_var
SCHEDULER_PARAMETERS: "--nodes=1 -p skylake-gold,skylake-platinum"

.job: &job_def
id_tokens:
SITE_ID_TOKEN:
aud: https://asc-git.lanl.gov
tags:
- darwin-slurm-shared
variables:
SCHEDULER_PARAMETERS: "--nodes=1 --partition=skylake-gold,skylake-platinum"
only:
refs:
- main
- merge_requests
except:
refs:
.skylake: &skylake
SCHEDULER_PARAMETERS: "--nodes=1 -p skylake-gold,skylake-platinum"

.x86volta: &x86volta
SCHEDULER_PARAMETERS: "--nodes=1 --partition=volta-x86 -C cpu_family:haswell"

#######################
# Job Script Template #
#######################

.test:
stage: build_n_test
extends:
- .job
script:
- module load gcc/${SINGULARITY_EOS_GCC_VERSION}
- module load cuda/${SINGULARITY_EOS_CUDA_VERSION}
Expand Down Expand Up @@ -182,47 +206,48 @@ before_script:
########

test_gnu_skylake:
<<: *job_def
extends: .test
variables:
<<: *skylake
<<: *python

test_gnu_power9:
<<: *job_def
extends: .test
variables:
<<: *power9
<<: *python

test_gnu_power9_gpu:
<<: *job_def
extends: .test
variables:
<<: *power9
<<: *buildtype_release
<<: *gpu

test_x86_volta_gpu:
<<: *job_def
extends: .test
variables:
<<: *x86volta
<<: *buildtype_release
<<: *gpu

install_gnu_skylake_fort:
<<: *job_def
extends: .test
variables:
<<: *skylake
<<: *python
<<: *fort

install_gnu_skylake_nofort:
<<: *job_def
extends: .test
variables:
<<: *skylake
<<: *python
<<: *nofort

test_gnu_rocinante:
<<: *rocinante_batch
extends: .test
variables:
<<: *python

install_gnu_rocinante_fort:
<<: *rocinante_batch
extends: .test
variables:
<<: *python
<<: *fort

install_gnu_rocinante_nofort:
<<: *rocinante_batch
extends: .test
variables:
<<: *python
<<: *nofort

0 comments on commit 434a498

Please sign in to comment.