Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
micmelesse committed May 10, 2024
1 parent c32e90c commit 900d8c3
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/amd_perf_kernel_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ on:
workflow_dispatch:
pull_request:
branches: [main_perf]
merge_group:
branches: [main_perf]
types: [checks_requested]
merge_group:
branches: [main_perf]
types: [checks_requested]
push:
branches: [main_perf]

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main_perf' }}

permissions:
read-all
permissions: read-all

env:
TRITON_BUILD_WITH_CLANG_LLD: "TRUE"
Expand All @@ -24,25 +23,25 @@ env:

jobs:
Check-File-Changes:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Check file changes
# run: |
# git fetch origin ${{ github.base_ref }}
# changed_files=$(git diff --name-only origin/${{ github.base_ref }} ${{ github.sha }})
# echo "Changed files:"
# echo "$changed_files"
# if echo "$changed_files" | grep -v "^python/perf-kernels/"; then
# echo "Changes detected outside of the python/perf-kernels directory. Failing the workflow."
# exit 1
# fi
- name: Check file changes
run: |
git fetch origin ${{ github.base_ref }}
changed_files=$(git diff --name-only origin/${{ github.base_ref }} ${{ github.sha }})
echo "Changed files:"
echo "$changed_files"
if echo "$changed_files" | grep -v "^python/perf-kernels/"; then
echo "Changes detected outside of the python/perf-kernels directory. Failing the workflow."
exit 1
fi
Runner-Preparation-AMD:
needs: Check-File-Changes
runs-on: ubuntu-latest
timeout-minutes: 30
outputs:
Expand All @@ -54,7 +53,7 @@ jobs:
if [ x"${{ github.repository }}" == x"ROCm/triton" ]; then
echo '::set-output name=matrix-HIP::[["self-hosted", "rocm.gfx90a"]]'
else
echo '::set-output name=matrix-HIP::["ubuntu-latest"]'
echo '::set-output name=matrix-HIP::[["ubuntu-latest"]]'
fi
Integration-Tests-AMD:
Expand Down Expand Up @@ -94,4 +93,4 @@ jobs:
pytest -vvv ./python/perf-kernels/flash-attention.py
- name: Run Perf Kernels Benchmark
run: |
python ./python/perf-kernels/flash-attention.py
python ./python/perf-kernels/flash-attention.py

0 comments on commit 900d8c3

Please sign in to comment.