Skip to content

Commit

Permalink
Do not install upstream pytorch when running benchmarks (#2118)
Browse files Browse the repository at this point in the history
Signed-off-by: Whitney Tsang <[email protected]>
  • Loading branch information
whitneywhtsang authored Sep 4, 2024
1 parent cb0b7e1 commit 02f5eed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/test-triton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ if [ "$TRITON_TEST_REPORTS" == true ]; then
capture_runtime_env
fi

$SKIP_DEPS || $SCRIPTS_DIR/compile-pytorch-ipex.sh --upstream-pytorch --pinned $([ $VENV = true ] && echo "--venv")
if [ "$TEST_BENCHMARK_SOFTMAX" = true ] || [ "$TEST_BENCHMARK_GEMM" = true ] || [ "$TEST_BENCHMARK_ATTENTION" = true ]; then
$SKIP_DEPS || $SCRIPTS_DIR/compile-pytorch-ipex.sh --pytorch --ipex --pinned --source $([ $VENV = true ] && echo "--venv")
else
$SKIP_DEPS || $SCRIPTS_DIR/compile-pytorch-ipex.sh --upstream-pytorch --pinned $([ $VENV = true ] && echo "--venv")
fi

if [ ! -d "$TRITON_PROJ_BUILD" ]
then
Expand Down Expand Up @@ -317,9 +321,6 @@ test_triton() {
if [ "$TEST_MICRO_BENCHMARKS" = true ]; then
run_microbench_tests
fi
if [ "$TEST_BENCHMARK_SOFTMAX" = true ] || [ "$TEST_BENCHMARK_GEMM" = true ] || [ "$TEST_BENCHMARK_ATTENTION" = true ]; then
$SKIP_DEPS || $SCRIPTS_DIR/compile-pytorch-ipex.sh --pinned --source --pytorch --ipex
fi
if [ "$TEST_BENCHMARK_SOFTMAX" = true ]; then
run_benchmark_softmax
fi
Expand Down

0 comments on commit 02f5eed

Please sign in to comment.