From 1bb9bb33086aec5f39fdc0148552d01e29326cb0 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Wed, 18 Oct 2023 22:19:24 -0700 Subject: [PATCH] misc: Copy .github directory from develop to stable (#485) --- .github/workflows/compiler-tests.yaml | 4 +-- .github/workflows/daily-tests.yaml | 14 ++++----- .github/workflows/gpu-tests.yaml | 43 ++++++++++++++++++++++++--- .github/workflows/weekly-tests.yaml | 6 ++-- 4 files changed, 51 insertions(+), 16 deletions(-) diff --git a/.github/workflows/compiler-tests.yaml b/.github/workflows/compiler-tests.yaml index 1a340e0bf5..ac092cd3d3 100644 --- a/.github/workflows/compiler-tests.yaml +++ b/.github/workflows/compiler-tests.yaml @@ -22,7 +22,7 @@ jobs: opts: [.opt, .fast] runs-on: [self-hosted, linux, x64] timeout-minutes: 2880 # 48 hours - container: gcr.io/gem5-test/${{ matrix.image }}:latest + container: ghcr.io/gem5/${{ matrix.image }}:latest steps: - uses: actions/checkout@v3 with: @@ -45,7 +45,7 @@ jobs: opts: [.opt] runs-on: [self-hosted, linux, x64] timeout-minutes: 2880 # 48 hours - container: gcr.io/gem5-test/${{ matrix.image }}:latest + container: ghcr.io/gem5/${{ matrix.image }}:latest steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/daily-tests.yaml b/.github/workflows/daily-tests.yaml index 36006d03e4..89a72fd852 100644 --- a/.github/workflows/daily-tests.yaml +++ b/.github/workflows/daily-tests.yaml @@ -39,7 +39,7 @@ jobs: command-line: --default=NULL PROTOCOL=MI_example -j $(nproc) runs-on: [self-hosted, linux, x64] needs: name-artifacts - container: gcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest + container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest steps: - uses: actions/checkout@v3 with: @@ -61,7 +61,7 @@ jobs: matrix: type: [fast, debug] runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest + container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest timeout-minutes: 60 steps: - uses: actions/checkout@v3 @@ -80,7 +80,7 @@ jobs: test-type: [arm_boot_tests, fs, gpu, insttest_se, learning_gem5, m5threads_test_atomic, memory, multi_isa, replacement_policies, riscv_boot_tests, stdlib, x86_boot_tests] runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest + container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest needs: [name-artifacts, build-gem5] timeout-minutes: 1440 # 24 hours for entire matrix to run steps: @@ -169,7 +169,7 @@ jobs: matrix: test-type: [gem5-library-example-x86-ubuntu-run-ALL-x86_64-opt, gem5-library-example-riscv-ubuntu-run-ALL-x86_64-opt, lupv-example-ALL-x86_64-opt, gem5-library-example-arm-ubuntu-run-test-ALL-x86_64-opt, gem5-library-example-riscvmatched-hello-ALL-x86_64-opt] - container: gcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest + container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest needs: [name-artifacts, build-gem5] timeout-minutes: 1440 # 24 hours steps: @@ -209,7 +209,7 @@ jobs: # ext/sst/sst/example.py. sst-test: runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/sst-env:latest + container: ghcr.io/gem5/sst-env:latest timeout-minutes: 180 steps: @@ -234,7 +234,7 @@ jobs: # simulation with it. systemc-test: runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/systemc-env:latest + container: ghcr.io/gem5/systemc-env:latest timeout-minutes: 180 steps: @@ -258,7 +258,7 @@ jobs: # Runs the gem5 Nighyly GPU tests. gpu-tests: runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/gcn-gpu:latest + container: ghcr.io/gem5/gcn-gpu:latest timeout-minutes: 720 # 12 hours steps: diff --git a/.github/workflows/gpu-tests.yaml b/.github/workflows/gpu-tests.yaml index 43eff95529..4b49b34945 100644 --- a/.github/workflows/gpu-tests.yaml +++ b/.github/workflows/gpu-tests.yaml @@ -1,7 +1,9 @@ --- -# This workflow runs all of the very-long tests within main.py +# This workflow runs all the Weekly GPU Tests. +# For now this file is kept separate as we are still developing and testing +# this workflow. It will eventually be merged with "weekly-tests.yaml" -name: Weekly Tests +name: Weekly Tests (GPU) on: # Runs every Sunday from 7AM UTC @@ -13,7 +15,7 @@ on: jobs: build-gem5: runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/gcn-gpu:latest + container: ghcr.io/gem5/gcn-gpu:latest steps: - uses: actions/checkout@v3 with: @@ -29,9 +31,42 @@ jobs: retention-days: 5 - run: echo "This job's status is ${{ job.status }}." + LULESH-tests: + runs-on: [self-hosted, linux, x64] + container: ghcr.io/gem5-test/gcn-gpu:latest + needs: build-gem5 + timeout-minutes: 480 # 8 hours + steps: + - uses: actions/checkout@v3 + with: + # Scheduled workflows run on the default branch by default. We + # therefore need to explicitly checkout the develop branch. + ref: develop + + - name: Download build/GCN3_X86/gem5.opt + uses: actions/download-artifact@v3 + with: + name: weekly-test-${{ github.run_number }}-attempt-${{ github.run_attempt }}-gem5-build-gcn3 + path: build/GCN3_X86 + # `download-artifact` does not preserve permissions so we need to set + # them again. + - run: chmod u+x build/GCN3_X86/gem5.opt + + - name: Obtain LULESH + working-directory: ${{ github.workspace }}/lulesh + # Obtains the latest LULESH compatible with this version of gem5 via + # gem5 Resources. + run: build/GCN3_X86/gem5.opt util/obtain-resource.py lulesh -p lulesh + + - name: Run LULUESH tests + working-directory: ${{ github.workspace }} + run: | + build/GCN3_X86/gem5.opt configs/example/apu_se.py -n3 --mem-size=8GB --reg-alloc-policy=dynamic --benchmark-root="lulesh" -c \ + lulesh 0.01 2 + HACC-tests: runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/gcn-gpu:latest + container: ghcr.io/gem5/gcn-gpu:latest needs: build-gem5 timeout-minutes: 120 # 2 hours steps: diff --git a/.github/workflows/weekly-tests.yaml b/.github/workflows/weekly-tests.yaml index b21613f7a1..17f111fc42 100644 --- a/.github/workflows/weekly-tests.yaml +++ b/.github/workflows/weekly-tests.yaml @@ -13,7 +13,7 @@ on: jobs: build-gem5: runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest + container: ghcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest outputs: build-name: ${{ steps.artifact-name.outputs.name }} steps: @@ -41,7 +41,7 @@ jobs: matrix: test-type: [gem5_library_example_tests, gem5_resources, parsec_benchmarks, x86_boot_tests] runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest + container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest needs: [build-gem5] timeout-minutes: 4320 # 3 days steps: @@ -78,7 +78,7 @@ jobs: dramsys-tests: runs-on: [self-hosted, linux, x64] - container: gcr.io/gem5-test/ubuntu-22.04_all-dependencies:latest + container: ghcr.io/gem5/ubuntu-22.04_all-dependencies:latest timeout-minutes: 4320 # 3 days steps: - uses: actions/checkout@v3