-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This PR does the following: - Upgrade the default CUDA version to 12.4. - Pre-install fbgemm_gpu genai kernels to the nightly docker. Pull Request resolved: #2293 Test Plan: Build base image: https://github.com/pytorch/benchmark/actions/runs/9476276319 Build nightly docker: https://github.com/pytorch/benchmark/actions/runs/9486161032 Reviewed By: aaronenyeshi Differential Revision: D58471717 Pulled By: xuzhao9 fbshipit-source-id: 9d2e0b45b7cba4af1cb7578daec001605ee03985
- Loading branch information
1 parent
3ecaae9
commit abb45ae
Showing
8 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
docker build . -f torchbench-nightly.dockerfile -t ghcr.io/pytorch/torchbench:latest | ||
TORCHBENCH_BRANCH=${TORCHBENCH_BRANCH:-main} | ||
|
||
docker build . -f torchbench-nightly.dockerfile -t ghcr.io/pytorch/torchbench:latest \ | ||
--build-arg TORCHBENCH_BRANCH=${TORCHBENCH_BRANCH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import argparse | ||
import subprocess | ||
import sys | ||
import os | ||
from pathlib import Path | ||
|
||
REPO_PATH = Path(os.path.abspath(__file__)).parent.parent.parent | ||
FBGEMM_PATH = REPO_PATH.joinpath("submodules", "FBGEMM", "fbgemm_gpu") | ||
|
||
def install_fbgemm(): | ||
cmd = ["pip", "install", "-r", "requirements.txt"] | ||
subprocess.check_call(cmd, cwd=str(FBGEMM_PATH.resolve())) | ||
# Build target A100(8.0) or H100(9.0) | ||
cmd = [sys.executable, "setup.py", "bdist_wheel", "--package_variant=genai", "-DTORCH_CUDA_ARCH_LIST=8.0;9.0"] | ||
subprocess.check_call(cmd, cwd=str(FBGEMM_PATH.resolve())) | ||
|
||
def test_fbgemm(): | ||
cmd = [sys.executable, "-c", '"import fbgemm_gpu.experimental.gen_ai"'] | ||
subprocess.check_call(cmd) | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument("--fbgemm", action="store_true", help="Install FBGEMM GPU") | ||
args = parser.parse_args() | ||
if args.fbgemm: | ||
install_fbgemm() | ||
test_fbgemm() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters