Skip to content

Commit

Permalink
try rocprof
Browse files Browse the repository at this point in the history
  • Loading branch information
msaroufim committed Nov 18, 2024
1 parent 4da129b commit de6e6cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/amd_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ jobs:
pip install --upgrade pip
pip install --pre pytorch-triton-rocm==3.1.0+cf34004b8a torch==2.6.0.dev20241023+rocm6.2 --index-url https://download.pytorch.org/whl/nightly/rocm6.2
- name: Run script
- name: Run script with rocprof
run: |
source ${VENV_DIR}/bin/activate
python "${{ github.event.inputs.filename }}" > training.log 2>&1
mkdir -p rocprof_output
rocprof --stats --timestamp on --hip-trace --roctx-trace \
--output-dir rocprof_output \
python "${{ github.event.inputs.filename }}" > training.log 2>&1
- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand All @@ -49,3 +52,4 @@ jobs:
path: |
training.log
${{ github.event.inputs.filename }}
rocprof_output/

0 comments on commit de6e6cf

Please sign in to comment.