-
Notifications
You must be signed in to change notification settings - Fork 63
Kanvi/bazel build with clang libc++ #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
remove tbb.build file
This will need to be updated again once there is release
| RUN cmake --version | ||
|
|
||
| #Install Bazel | ||
| ADD https://github.com/bazelbuild/bazel/releases/download/0.24.1/bazel-0.24.1-installer-linux-x86_64.sh ./bazel-0.24.1-installer-linux-x86_64.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update this wiki: https://github.com/tensorflow/ngraph-bridge/wiki/Update-TF-version-in-ngraph-bridge
when TF version is upgraded, bazel version will upgrade, and we need to upgrade this (and maybe other) docker file from 0.24.1 to next bazel version
bazel/WORKSPACE
Outdated
| sha256 = "b33f0be032ff59044987ff796b636c1b222579705ac29632bba59b6031b0d58c", | ||
| strip_prefix = "ngraph-0.25.1-rc.3", | ||
| sha256 = "2437295ae696cee472231c38149cfa7cc46b6266c101ef76693e4519cb0604d7", | ||
| strip_prefix = "ngraph-0.25.1-rc.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nGraph needs to be in the latest version i.e., rc7
| # Docker file to setup build envrionment for nGraph-TensorFlow | ||
|
|
||
| FROM ubuntu:18.04 | ||
| ENV http_proxy 'http://proxy-chain.intel.com:911' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these two lines. Update the instructions with information from here: #212 (comment)
bazel/ngraph.BUILD
Outdated
| '-D SHARED_LIB_PREFIX=\\"lib\\"', | ||
| '-D SHARED_LIB_SUFFIX=\\".so\\"', | ||
| '-D NGRAPH_VERSION=\\"v0.25.1-rc.3\\"', | ||
| '-D NGRAPH_VERSION=\\"v0.25.1-rc.5\\"', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the version
In order to build the
hello_tfexample withclangandlibc++, this PR introduces a dockerfile which creates an env for the same. Thehello_tfexample cpp app is then built using the following command :BAZEL_LINKOPTS=-lc++ BAZEL_CXXOPTS=-stdlib=libc++ bazel build :hello_tfThe
READMEfor the dockerfile gives the detail steps to be followed.