From a4c706bcbc8d72db2d74bb42d08ef73bdf8896b3 Mon Sep 17 00:00:00 2001 From: David Berard Date: Wed, 15 Mar 2023 22:20:23 -0700 Subject: [PATCH] [dynamo][dashboard] fix triton clone step in dashboard (#96623) previously this would clone triton, and then try to checkout without being in the git repo directory. This wasn't usually a problem because the environment already had a triton repo downloaded; but I ran into this while trying to construct a new environment. Pull Request resolved: https://github.com/pytorch/pytorch/pull/96623 Approved by: https://github.com/anijain2305 --- benchmarks/dynamo/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/dynamo/Makefile b/benchmarks/dynamo/Makefile index f0c57451407..14799477d07 100644 --- a/benchmarks/dynamo/Makefile +++ b/benchmarks/dynamo/Makefile @@ -10,7 +10,7 @@ clone-deps: && (test -e torchaudio || git clone --recursive https://github.com/pytorch/audio torchaudio) \ && (test -e detectron2 || git clone --recursive https://github.com/facebookresearch/detectron2) \ && (test -e torchbenchmark || git clone --recursive https://github.com/pytorch/benchmark torchbenchmark) \ - && (test -e triton || (git clone --recursive https://github.com/openai/triton.git && git checkout $(TRITON_VERSION) && git submodule update --init --recursive)) \ + && (test -e triton || (git clone --recursive https://github.com/openai/triton.git && git -C triton checkout $(TRITON_VERSION) && git -C triton submodule update --init --recursive)) \ ) pull-deps: clone-deps