From 34314b3f929fc0d9b199dc09b06b23b08d698d5d Mon Sep 17 00:00:00 2001 From: Melissa Jost <50555529+mkjost0@users.noreply.github.com> Date: Wed, 18 Oct 2023 22:14:39 -0700 Subject: [PATCH] misc: Add LULESH GPU tests (#256) Adds the LULESH GPU Tests to our GitHub Actions infrastructure Co-authored-by: Bobby R. Bruce Co-authored-by: Harshil Patel --- .github/workflows/gpu-tests.yaml | 39 ++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gpu-tests.yaml b/.github/workflows/gpu-tests.yaml index fe6df5eb1e..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 @@ -29,6 +31,39 @@ 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: ghcr.io/gem5/gcn-gpu:latest