Skip to content

Conversation

@kanvi-nervana
Copy link
Contributor

@kanvi-nervana kanvi-nervana commented Sep 24, 2019

In order to build the hello_tf example with clang and libc++, this PR introduces a dockerfile which creates an env for the same. The hello_tf example cpp app is then built using the following command : BAZEL_LINKOPTS=-lc++ BAZEL_CXXOPTS=-stdlib=libc++ bazel build :hello_tf
The README for the dockerfile gives the detail steps to be followed.

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
Copy link
Contributor

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",
Copy link
Contributor

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'
Copy link
Contributor

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)

'-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\\"',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the version

@avijit-nervana avijit-nervana merged commit d78f036 into r0.19 Sep 26, 2019
@avijit-nervana avijit-nervana deleted the Kanvi/bazel_build_with_clang_libc++ branch September 26, 2019 01:11
avijit-nervana pushed a commit that referenced this pull request Sep 27, 2019
* Kanvi/bazel build with clang libc++ (#260)
gopoka pushed a commit that referenced this pull request Oct 28, 2019
* Kanvi/bazel build with clang libc++ (#260)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants