Skip to content

Commit

Permalink
add incline CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jaelynlitz committed Oct 26, 2023
1 parent 312bf6f commit 45bf639
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitlab/pnnl/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ trigger_deception:
- local: .gitlab/pnnl/base.gitlab-ci.yml
- local: .gitlab/pnnl/deception.gitlab-ci.yml

trigger_incline:
needs: []
trigger:
include:
- local: .gitlab/pnnl/base.gitlab-ci.yml
- local: .gitlab/pnnl/incline.gitlab-ci.yml

SVC-Account-Cleanup:
image: kfox1111/slurm:deception2
tags:
Expand Down
19 changes: 19 additions & 0 deletions .gitlab/pnnl/base.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ include:
- &rule_yes_deception_test
if: '$CI_COMMIT_TITLE =~ /\[deception-test\]/'
when: always
# Only run when the commit **DOES NOT** contains "[incline-test]"
- &rule_no_incline_test
if: '$CI_COMMIT_TITLE =~ /\[incline-test\]/'
when: never
# Only run when the commit **DOES** contains "[incline-test]"
- &rule_yes_incline_test
if: '$CI_COMMIT_TITLE =~ /\[incline-test\]/'
when: always


variables:
Expand Down Expand Up @@ -246,8 +254,19 @@ stages:
.deception:
rules:
- *rule_yes_deception_test
- *rule_no_incline_test
- *default
variables:
MY_CLUSTER: "deception"
WORKDIR_SUFFIX: "x86_64-build"
SLURM_ARGS: " --gres=gpu:1 --ntasks=3 "

.incline:
rules:
- *rule_no_deception_test
- *rule_yes_incline_test
- *default
variables:
WORKDIR_SUFFIX: "x86_64-clang-hip-build"
MY_CLUSTER: "incline"
SLURM_ARGS: " --exclusive --ntasks=3 "
47 changes: 47 additions & 0 deletions .gitlab/pnnl/incline.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Incline Build:
extends:
- .cluster_build
- .incline
variables:
SCRIPT_ARGS: " --build-only --job=clang-hip "

Incline Test:
extends:
- .cluster_test
- .incline
variables:
SCRIPT_ARGS: " --test-only --job=clang-hip "
CTESTARGS: " --timeout 240 --output-on-failure -LE incline-skip "
needs: ['Incline Build']

Incline Module Rebuild:
extends: .module_rebuild
rules:
- if: $CI_COMMIT_TITLE =~ /\[incline-rebuild\]/
when: always
variables:
MY_CLUSTER: "incline"
WORKDIR_SUFFIX: "spack_incline"

pending:
variables:
MY_CLUSTER: "Incline"
extends:
- .report-pending
stage: .pre

success:
variables:
MY_CLUSTER: "Incline"
extends:
- .report-status
stage: .post

failure:
stage: .post
variables:
MY_CLUSTER: "Incline"
extends:
- .report-status
rules:
- when: on_failure

0 comments on commit 45bf639

Please sign in to comment.