diff --git a/.gitlab/pnnl/.gitlab-ci.yml b/.gitlab/pnnl/.gitlab-ci.yml index a32ba8dc4..7ddee8441 100644 --- a/.gitlab/pnnl/.gitlab-ci.yml +++ b/.gitlab/pnnl/.gitlab-ci.yml @@ -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: diff --git a/.gitlab/pnnl/base.gitlab-ci.yml b/.gitlab/pnnl/base.gitlab-ci.yml index bf6d97771..5fbd29d0c 100644 --- a/.gitlab/pnnl/base.gitlab-ci.yml +++ b/.gitlab/pnnl/base.gitlab-ci.yml @@ -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: @@ -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 " \ No newline at end of file diff --git a/.gitlab/pnnl/incline.gitlab-ci.yml b/.gitlab/pnnl/incline.gitlab-ci.yml new file mode 100644 index 000000000..10ce27e70 --- /dev/null +++ b/.gitlab/pnnl/incline.gitlab-ci.yml @@ -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 \ No newline at end of file