diff --git a/.github/workflows/pytorchsim_test.yml b/.github/workflows/pytorchsim_test.yml index 345c716e..a1b475c1 100644 --- a/.github/workflows/pytorchsim_test.yml +++ b/.github/workflows/pytorchsim_test.yml @@ -637,6 +637,16 @@ jobs: name: Run test_scheduler runs-on: ubuntu-latest steps: + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: true + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: false + - name: Log in to GitHub Container Registry uses: docker/login-action@v3 with: @@ -647,8 +657,17 @@ jobs: - name: Run test_scheduler.py run: | echo "Running test_scheduler.py" + # test_scheduler compiles resnet18 + EncoderBlock and launches each + # twice, so per-kernel RISC-V ELFs, objdump dumps and gem5 m5out dirs + # accumulate and overflow the small github-hosted root volume. + # Redirect those artifacts to the larger /mnt scratch disk (~70G). + sudo mkdir -p /mnt/togout /mnt/togtmp + sudo chmod 777 /mnt/togout /mnt/togtmp docker run --rm \ -e TOGSIM_CONFIG="${{ inputs.togsim_config }}" \ + -e TMPDIR=/tmp \ + -v /mnt/togout:/workspace/PyTorchSim/outputs \ + -v /mnt/togtmp:/tmp \ ${{ inputs.image_name }} python3 PyTorchSim/tests/system/test_scheduler.py test_llama: