|
11 | 11 | - components/eam/src/physics/p3/scream/** |
12 | 12 | - components/eam/src/physics/cam/** |
13 | 13 | - .github/workflows/eamxx-standalone-testing.yml |
14 | | - pull_request_review: |
15 | | - types: [submitted] |
16 | 14 |
|
17 | 15 | # Manual run is used to bless |
18 | 16 | workflow_dispatch: |
|
23 | 21 | type: choice |
24 | 22 | options: |
25 | 23 | - gcc-openmp |
| 24 | + - gcc-cuda |
26 | 25 | bless: |
27 | 26 | description: 'Generate baselines' |
28 | 27 | required: true |
|
33 | 32 | - cron: '0 7 * * *' # Runs at 7 AM UTC, which is midnight MT during Standard Time |
34 | 33 |
|
35 | 34 | concurrency: |
36 | | - # Two runs are in the same group if: |
37 | | - # - they have the same trigger |
38 | | - # - if trigger=pull_request/pull_request_review, the PR number must match |
39 | | - # - if trigger=workflow_dispatch/schedule: no concurrency |
40 | | - group: ${{ github.workflow }}-${{ github.event_name }}-${{ |
41 | | - (github.event_name == 'pull_request' || github.event_name == 'pull_request_review') && github.event.pull_request.number || github.run_id |
42 | | - }} |
| 35 | + # Two runs are in the same group if they are testing the same git ref |
| 36 | + # - if trigger=pull_request, the ref is refs/pull/<PR_NUMBER>/merge |
| 37 | + # - for other triggers, the ref is the branch tested |
| 38 | + group: ${{ github.workflow }}-${{ github.ref }} |
43 | 39 | cancel-in-progress: true |
44 | 40 |
|
45 | 41 | jobs: |
@@ -86,30 +82,46 @@ jobs: |
86 | 82 | generate: ${{ env.generate }} |
87 | 83 | submit: ${{ env.submit }} |
88 | 84 | cmake-configs: Kokkos_ENABLE_OPENMP=ON |
89 | | - # cuda: |
90 | | - # # Disable until the CUDA container is up and running. When CUDA container is availabe, remove |
91 | | - # # this line and uncomment the next if |
92 | | - # if: false |
93 | | - # # Runs always for pull_request. For workflow_dispatch, user must request this machine |
94 | | - # # if: ${{ github.event_name == 'pull_request' || contains(github.event.inputs.jobs_to_run, 'openmp-gcc') }} |
95 | | - # runs-on: [self-hosted, cuda] |
96 | | - # strategy: |
97 | | - # fail-fast: false |
98 | | - # matrix: |
99 | | - # build_type: [sp, dbg, fpe, opt] |
100 | | - # name: cuda-${{ matrix.build_type }} |
101 | | - # steps: |
102 | | - # - name: Show action trigger |
103 | | - # uses: ./.github/actions/print-workflow-trigger |
104 | | - # - name: Check out the repository |
105 | | - # uses: actions/checkout@v4 |
106 | | - # with: |
107 | | - # persist-credentials: false |
108 | | - # show-progress: false |
109 | | - # submodules: recursive |
110 | | - # - name: Run tests |
111 | | - # uses: ./.github/actions/test-all-scream |
112 | | - # with: |
113 | | - # build_type: ${{ matrix.build_type }} |
114 | | - # machine: ghci-snl-cuda |
115 | | - # run_type: at-run |
| 85 | + gcc-cuda: |
| 86 | + runs-on: [self-hosted, ghci-snl-cuda, cuda, gcc] |
| 87 | + strategy: |
| 88 | + fail-fast: false |
| 89 | + matrix: |
| 90 | + build_type: [sp, dbg, opt] |
| 91 | + if: ${{ !(github.event_name == 'workflow_dispatch' && github.event.inputs.jobs_list != 'gcc-cuda') }} |
| 92 | + name: gcc-cuda / ${{ matrix.build_type }} |
| 93 | + steps: |
| 94 | + - name: Check out the repository |
| 95 | + uses: actions/checkout@v4 |
| 96 | + with: |
| 97 | + persist-credentials: false |
| 98 | + show-progress: false |
| 99 | + submodules: recursive |
| 100 | + - name: Show action trigger |
| 101 | + uses: ./.github/actions/show-workflow-trigger |
| 102 | + - name: Check for skip labels |
| 103 | + if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_review' }} |
| 104 | + uses: ./.github/actions/check-skip-labels |
| 105 | + with: |
| 106 | + skip_labels: 'AT: skip gcc,AT: skip cuda,AT: skip eamxx-sa,AT: skip eamxx-all' |
| 107 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 108 | + pr_number: ${{ github.event.pull_request.number }} |
| 109 | + - name: Set test-all inputs based on event specs |
| 110 | + run: | |
| 111 | + echo "submit=false" >> $GITHUB_ENV |
| 112 | + echo "generate=false" >> $GITHUB_ENV |
| 113 | + if [ "${{ github.event_name }}" == "schedule" ]; then |
| 114 | + echo "submit=true" >> $GITHUB_ENV |
| 115 | + elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then |
| 116 | + if [ "${{ inputs.bless }}" == "true" ]; then |
| 117 | + echo "generate=true" >> $GITHUB_ENV |
| 118 | + fi |
| 119 | + fi |
| 120 | + - name: Run tests |
| 121 | + uses: ./.github/actions/test-all-scream |
| 122 | + with: |
| 123 | + build_type: ${{ matrix.build_type }} |
| 124 | + machine: ghci-snl-cuda |
| 125 | + generate: ${{ env.generate }} |
| 126 | + submit: ${{ env.submit }} |
| 127 | + cmake-configs: Kokkos_ARCH_VOLTA70=ON;CMAKE_CUDA_ARCHITECTURES=70 |
0 commit comments