Skip to content

Commit

Permalink
Install the benchmark before running. (#2436)
Browse files Browse the repository at this point in the history
Summary:
In workflows like https://github.com/pytorch/benchmark/actions/runs/10513238627/job/29128387392, we are hitting errors like `No module named 'torchbenchmark.util.framework.fb'`, this is because we directly run the benchmark without installing it.

We need to first install the benchmark before running the models.

Pull Request resolved: #2436

Test Plan: https://github.com/pytorch/benchmark/actions/runs/10533763643

Reviewed By: kit1980

Differential Revision: D61748902

Pulled By: xuzhao9

fbshipit-source-id: ae1661691881766b5899d34cf4de8045d1d6b4ed
  • Loading branch information
xuzhao9 authored and facebook-github-bot committed Aug 24, 2024
1 parent ef3ce35 commit 52103b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/_linux-benchmark-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
run: |
CONDA_ENV=${BASE_CONDA_ENV} . "${SETUP_SCRIPT}"
conda create --name "${CONDA_ENV}" --clone "${BASE_CONDA_ENV}"
- name: Install benchmark
run: |
. "${SETUP_SCRIPT}"
pushd benchmark
python install.py
- name: Run benchmark
run: |
. "${SETUP_SCRIPT}"
Expand Down

0 comments on commit 52103b5

Please sign in to comment.