-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* compile tf 2.3.0 with gcc 7.3 * fix oneflow eigen * minor fix * fix include * update protobuf if xla is on * update path of tf proto generated cpp files * fix path in script * add .clangd to git ignore * update xla ifs * update scripts * update path in script for clangd * add gitignore * add cmake flag XRT_TF_URL * rm comment * check in changes * bash tricks to enable gcc 7.3 * use arg to control tuna * bumpversion * fix build wheel * use real path * add dir for cpu * fix unwanted yum update cublas * uncomment all * rm suffix of wheelhouse_dir * add log info Co-authored-by: tsai <caishenghang@1f-dev.kbaeegfb1x0ubnoznzequyxzve.bx.internal.cloudapp.net> Co-authored-by: tsai <[email protected]> Former-commit-id: da12e8d
- Loading branch information
1 parent
7f8aae2
commit 73603a0
Showing
15 changed files
with
167 additions
and
46 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set -ex | ||
ONEFLOW_SRC_DIR=${ONEFLOW_SRC_DIR:-${PWD}} | ||
wheelhouse_dir=${ONEFLOW_SRC_DIR}/wheelhouse-xla | ||
|
||
# TF requires py3 to build | ||
PY_ROOT=/opt/python/cp37-cp37m | ||
PY_BIN=${PY_ROOT}/bin | ||
export PATH=$PY_BIN:$PATH | ||
python --version | ||
|
||
source scl_source enable devtoolset-7 | ||
|
||
cache_dir=$ONEFLOW_SRC_DIR/manylinux2014-build-cache-cuda-10.2-xla | ||
cache_dir=$ONEFLOW_SRC_DIR/manylinux2014-build-cache-cuda-11.0-xla | ||
export TEST_TMPDIR=$cache_dir/bazel_cache | ||
gcc --version | ||
|
||
bash docker/package/manylinux/build_wheel.sh \ | ||
--python3.6 \ | ||
--cache-dir $cache_dir \ | ||
--house-dir $wheelhouse_dir \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | ||
-DWITH_XLA=ON |
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,4 @@ | ||
set -ex | ||
docker run --rm -it \ | ||
-v `pwd`:`pwd` \ | ||
-w `pwd` oneflow:rel-manylinux2014-cuda-11.0 bash |
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
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