Skip to content

Commit

Permalink
compile-pytorch-ipex.sh should install upstream pytorch by default (#…
Browse files Browse the repository at this point in the history
…2022)

Closes #2020

---------

Signed-off-by: Kirill Suvorov <[email protected]>
  • Loading branch information
Retribution98 authored Aug 27, 2024
1 parent fa98f75 commit 386ae76
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions scripts/compile-pytorch-ipex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ if [ "$UPSTREAM_PYTORCH" = true ] && [ "$BUILD_IPEX" = true ]; then
exit 1
fi

if [ "$BUILD_PYTORCH" = false ] && [ "$UPSTREAM_PYTORCH" = false ]; then
echo "***** Use upstream pytorch by the default *****"
UPSTREAM_PYTORCH=true
fi

if [ "$BUILD_PINNED" = false ] && [ "$BUILD_FROM_SOURCE" = false ]; then
echo "***** Use pinned pytorch by the default *****"
BUILD_PINNED=true
fi

if [ ! -v BASE ]; then
echo "**** BASE is not given *****"
BASE=$ROOT/.scripts_cache
Expand Down Expand Up @@ -189,11 +199,6 @@ if [ "$BUILD_FROM_SOURCE" = false ]; then
fi
fi

if [ "$BUILD_PINNED" = false ]; then
echo "**** Since '--pinned' option is not used, enable building from source. ****"
BUILD_FROM_SOURCE=true
fi

if [ "$BUILD_FROM_SOURCE" = false ]; then
echo "**** Download nightly builds. ****"
PYTHON_VERSION=$( python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')" )
Expand Down

0 comments on commit 386ae76

Please sign in to comment.