Skip to content

Commit

Permalink
Re-enable using a pip installed iree-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
marbre committed Sep 17, 2024
1 parent 84d9e02 commit 86bfc54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions build_tools/install_iree_host_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ PATH_TO_REPO="`realpath ${PATH_TO_SCRIPT}/../`"
if [[ $# -eq 0 ]] ; then
IREE_VERSION="`sed -n 's/.*dist-\(.*\)-linux-x86_64.tar.xz/\1/p' ${PATH_TO_REPO}/iree-release-link.txt`"
else
IREE_VERSION="`sed -n 2p ${PATH_TO_REPO}/requirements-compiler.txt | sed 's/.*=//'`"
if [[ "`echo ${IREE_VERSION} | sed 's/.*[.]//'`" -gt "395" ]] ; then
echo "Installation via pip is only supported up to version '20230112.395'."
echo "Install IREE via the iree-dist tarball instead."
exit 1
fi
IREE_VERSION="`sed -n 4p ${PATH_TO_REPO}/requirements-compiler.txt | sed 's/.*=//'`"
fi

echo "Installing IREE host tools candidate-${IREE_VERSION}"
Expand Down Expand Up @@ -101,8 +96,8 @@ cmake -GNinja \
${PATH_TO_REPO}/third_party/iree/
cmake --build . --target iree-c-embed-data iree-flatcc-cli

cp build_tools/embed_data/iree-c-embed-data ../build-iree-host-install/bin
cp build_tools/third_party/flatcc/iree-flatcc-cli ../build-iree-host-install/bin/
cp tools/iree-c-embed-data ../build-iree-host-install/bin
cp tools/iree-flatcc-cli ../build-iree-host-install/bin/
cd ..

echo ""
Expand Down
4 changes: 2 additions & 2 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ cmake -GNinja \
../third_party/iree/
cmake --build . --target iree-c-embed-data iree-flatcc-cli

cp build_tools/embed_data/iree-c-embed-data ../build-iree-host-install/bin
cp build_tools/third_party/flatcc/iree-flatcc-cli ../build-iree-host-install/bin/
cp tools/iree-c-embed-data ../build-iree-host-install/bin
cp tools/iree-flatcc-cli ../build-iree-host-install/bin/
cd ..
```

Expand Down

0 comments on commit 86bfc54

Please sign in to comment.