Skip to content

Commit

Permalink
Fix dockerfile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Jun 12, 2024
1 parent bacbff4 commit aeaaa0d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion docker/build-torchbench-nightly-docker.sh
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}
7 changes: 5 additions & 2 deletions docker/torchbench-nightly.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ ENV SETUP_SCRIPT=/workspace/setup_instance.sh
ARG TORCHBENCH_BRANCH=${TORCHBENCH_BRANCH:-main}
ARG FORCE_DATE=${FORCE_DATE}

# Setup Conda env and CUDA
# Checkout Torchbench and submodules
RUN git clone -b "${TORCHBENCH_BRANCH}" --single-branch \
https://github.com/pytorch/benchmark /workspace/benchmark
https://github.com/pytorch/benchmark /workspace/benchmark
RUN cd /workspace/benchmark \
git submodule update --init --recursive

# Setup conda env and CUDA
RUN cd /workspace/benchmark && \
. ${SETUP_SCRIPT} && \
python ./utils/python_utils.py --create-conda-env ${CONDA_ENV} && \
Expand Down
2 changes: 1 addition & 1 deletion userbenchmark/triton/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def install_fbgemm():
cmd = [sys.executable, "setup.py", "bdist_wheel", "--package_variant=genai"]
subprocess.check_call(cmd, cwd=FBGEMM_PATH)
subprocess.check_call(cmd, cwd=str(FBGEMM_PATH.resolve()))

def test_fbgemm():
cmd = [sys.executable, "-c", '"import fbgemm_gpu.experimental.gen_ai"']
Expand Down

0 comments on commit aeaaa0d

Please sign in to comment.