Skip to content

Commit 5d1f804

Browse files
[test-triton.sh] Allow USE_IPEX=0 when running benchmarks (#2765)
Signed-off-by: Whitney Tsang <[email protected]>
1 parent 7551a90 commit 5d1f804

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/compile-pytorch-ipex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if pip show torch &>/dev/null; then
6666
echo "**** Pinned PyTorch commit $PYTORCH_PINNED_COMMIT ****"
6767
if [ "$FORCE_REINSTALL" = false ]; then
6868
echo "**** Exiting without action. ****"
69-
echo "**** INFO: Run the install-pytorch script with the --force-reinstall flag to force reinstallation of PyTorch,
69+
echo "**** INFO: Run the compile-pytorch-ipex script with the --force-reinstall flag to force reinstallation of PyTorch,
7070
or uninstall the current version of PyTorch manually. ****"
7171
exit 1
7272
fi

scripts/test-triton.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ install_deps() {
152152
echo "**** Skipping installation of pytorch ****"
153153
else
154154
echo "**** Installing pytorch ****"
155-
if [ "$TEST_BENCHMARK_SOFTMAX" = true ] || [ "$TEST_BENCHMARK_GEMM" = true ] || [ "$TEST_BENCHMARK_ATTENTION" = true ]; then
155+
if ([ ! -v USE_IPEX ] || [ "$USE_IPEX" = 1 ]) && ([ "$TEST_BENCHMARK_SOFTMAX" = true ] || [ "$TEST_BENCHMARK_GEMM" = true ] || [ "$TEST_BENCHMARK_ATTENTION" = true ]); then
156156
$SCRIPTS_DIR/compile-pytorch-ipex.sh $([ $VENV = true ] && echo "--venv")
157157
else
158158
$SCRIPTS_DIR/install-pytorch.sh $([ $VENV = true ] && echo "--venv")

0 commit comments

Comments
 (0)