forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request iree-org#7407 from google:main-to-google
PiperOrigin-RevId: 404407975
- Loading branch information
Showing
43 changed files
with
2,268 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
bindings/python/iree/runtime/scripts/iree_run_module/__main__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2021 The IREE Authors | ||
# | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
import os | ||
import subprocess | ||
import sys | ||
|
||
|
||
def main(args=None): | ||
if args is None: | ||
args = sys.argv[1:] | ||
exe = os.path.join(os.path.dirname(__file__), "..", "..", "iree-run-module") | ||
return subprocess.call(args=[exe] + args) | ||
|
||
|
||
if __name__ == "__main__": | ||
sys.exit(main()) |
21 changes: 21 additions & 0 deletions
21
bindings/python/iree/runtime/scripts/iree_tracy_capture/__main__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2021 The IREE Authors | ||
# | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
import os | ||
import subprocess | ||
import sys | ||
|
||
|
||
def main(args=None): | ||
if args is None: | ||
args = sys.argv[1:] | ||
exe = os.path.join(os.path.dirname(__file__), "..", "..", | ||
"iree-tracy-capture") | ||
return subprocess.call(args=[exe] + args) | ||
|
||
|
||
if __name__ == "__main__": | ||
sys.exit(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
# Copyright 2021 The IREE Authors | ||
# | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
# The version of tbb installed on manylinux2014 is too old to support the | ||
# parallel STL libraries on the installed GCC9-based toolchain. Further, | ||
# Intel *broke* compatibility starting in 2021 for GCC<=10. | ||
# To make matters worse, the prior 2020 versions did not have cmake or | ||
# install support. | ||
# Shame on you Intel. | ||
# See: https://community.intel.com/t5/Intel-oneAPI-Threading-Building/tbb-task-has-not-been-declared/m-p/1254418 | ||
# Since this is unlikely to be helpful outside of the old centos systems | ||
# that manylinux2014 is based on (newer ones are based on Debian), | ||
# we just tailor this specifically for docker images of that distro. | ||
|
||
# You can test this with either an official manylinux2014 docker image or | ||
# our special one (which is really only special in that it includes bazel): | ||
# docker run --rm -it -v $(pwd):/work stellaraccident/manylinux2014_x86_64-bazel-3.7.2:latest /bin/bash | ||
|
||
set -e | ||
|
||
mkdir -p /tmp/libtbb_build | ||
cd /tmp/libtbb_build | ||
curl -o tbbsrc.tgz -L https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2020.3.tar.gz | ||
tar xzf tbbsrc.tgz | ||
cd oneTBB-*/ | ||
|
||
echo "****** BUILDING TBB ******" | ||
make -j$(nproc) | ||
cp -R include/* /usr/include | ||
cp build/*_release/* /usr/lib64 | ||
echo "prefix=/usr | ||
exec_prefix=${prefix} | ||
libdir=${exec_prefix}/lib64 | ||
includedir=${prefix}/include | ||
Name: Threading Building Blocks | ||
Description: Intel's parallelism library for C++ | ||
URL: http://www.threadingbuildingblocks.org/ | ||
Version: | ||
Libs: -ltbb | ||
Cflags: | ||
" > /usr/lib64/pkgconfig/tbb.pc | ||
|
||
echo "****** DONE BUILDING TBB ******" | ||
|
||
cd / | ||
rm -Rf /tmp/libtbb_build |
14 changes: 14 additions & 0 deletions
14
build_tools/github_actions/install_tracy_cli_deps_manylinux2014.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# Copyright 2021 The IREE Authors | ||
# | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
# Installs deps on a manylinux2014 CentOS docker container needed for | ||
# building Tracy CLI capture tool. | ||
|
||
set -e | ||
|
||
td="$(cd $(dirname $0) && pwd)" | ||
yum -y install capstone-devel libzstd-devel | ||
$td/install_tbb_manylinux2014.sh |
Oops, something went wrong.