Skip to content

Commit e014bd8

Browse files
xuzhao9pytorchmergebot
authored andcommitted
Upgrade default cuda version of torchbench (pytorch#84248)
Upgrade CUDA version of torchbench as we are moving away from CUDA 11.3 This PR needs to land together with pytorch/benchmark#1141 RUN_TORCHBENCH: nvfuser TORCHBENCH_BRANCH: xz9/setup-cuda-compile Pull Request resolved: pytorch#84248 Approved by: https://github.com/erichan1, https://github.com/davidberard98
1 parent 7acdb2d commit e014bd8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/scripts/run_torchbench.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def run_torchbench(pytorch_path: str, torchbench_path: str, output_dir: str) ->
121121
"--pytorch-src", pytorch_path, "--torchbench-src", torchbench_path,
122122
"--config", os.path.join(output_dir, TORCHBENCH_CONFIG_NAME),
123123
"--output", os.path.join(output_dir, "result.txt")]
124+
print(f"Running torchbench command: {command}")
124125
subprocess.check_call(command, cwd=torchbench_path, env=env)
125126

126127
def run_userbenchmarks(pytorch_path: str, torchbench_path: str, base_sha: str, head_sha: str,
@@ -133,6 +134,7 @@ def run_userbenchmarks(pytorch_path: str, torchbench_path: str, base_sha: str, h
133134
"--head", head_sha,
134135
"--userbenchmark", userbenchmark,
135136
"--output-dir", output_dir]
137+
print(f"Running torchbench userbenchmark command: {command}")
136138
subprocess.check_call(command, cwd=torchbench_path, env=env)
137139

138140
if __name__ == "__main__":

.github/workflows/run_torchbench.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44

55
env:
66
PYTHON_VERSION: "3.8"
7-
CUDA_VERSION: "11.3"
8-
MAGMA_VERSION: "magma-cuda113"
97
# must be consistent with https://github.com/pytorch/benchmark/blob/main/requirements.txt#L19
108
NUMPY_VERSION: "1.21.2"
119
PR_NUM: ${{ github.event.number }}
@@ -43,8 +41,6 @@ jobs:
4341
conda install -y numpy="${NUMPY_VERSION}" requests ninja pyyaml mkl mkl-include \
4442
setuptools cmake=3.22 cffi typing_extensions \
4543
future six dataclasses pillow pytest tabulate gitpython git-lfs tqdm psutil
46-
# install magma
47-
conda install -y -c pytorch "${MAGMA_VERSION}"
4844
- name: Setup TorchBench branch
4945
run: |
5046
# shellcheck disable=SC1091

0 commit comments

Comments
 (0)