aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ngraph/ngraph.BUILD
diff options
context:
space:
mode:
authorGravatar Avijit <30507445+avijit-nervana@users.noreply.github.com>2018-07-24 23:35:27 -0700
committerGravatar GitHub <noreply@github.com>2018-07-24 23:35:27 -0700
commit121e0161c5a7273c5a59f1e10a8577428c685796 (patch)
treefb6b99b4af3accd9c68d05442be95f9250b59604 /third_party/ngraph/ngraph.BUILD
parent80fb8679ab14ba3d180e8eb22da11509a15b9219 (diff)
nGraph integration with TensorFlow
* Added nGraph bridge as a third_party to be built with TensorFlow based on user selection. * Added a limited set of C++ unit tests to verify the correctness of the computation
Diffstat (limited to 'third_party/ngraph/ngraph.BUILD')
-rw-r--r--third_party/ngraph/ngraph.BUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/third_party/ngraph/ngraph.BUILD b/third_party/ngraph/ngraph.BUILD
new file mode 100644
index 0000000000..17710b2cb9
--- /dev/null
+++ b/third_party/ngraph/ngraph.BUILD
@@ -0,0 +1,45 @@
+licenses(["notice"]) # 3-Clause BSD
+
+exports_files(["license.txt"])
+
+filegroup(
+ name = "LICENSE",
+ srcs = [
+ "license.txt",
+ ],
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "ngraph_core",
+ srcs = glob([
+ "src/ngraph/*.cpp",
+ "src/ngraph/autodiff/*.cpp",
+ "src/ngraph/builder/*.cpp",
+ "src/ngraph/descriptor/*.cpp",
+ "src/ngraph/descriptor/layout/*.cpp",
+ "src/ngraph/op/*.cpp",
+ "src/ngraph/op/util/*.cpp",
+ "src/ngraph/pattern/*.cpp",
+ "src/ngraph/pattern/*.hpp",
+ "src/ngraph/pass/*.cpp",
+ "src/ngraph/pass/*.hpp",
+ "src/ngraph/runtime/*.cpp",
+ "src/ngraph/type/*.cpp",
+ "src/ngraph/runtime/interpreter/*.cpp",
+ "src/ngraph/runtime/interpreter/*.hpp",
+ ]),
+ hdrs = glob(["src/ngraph/**/*.hpp"]),
+ deps = [
+ "@eigen_archive//:eigen",
+ "@nlohmann_json_lib",
+ ],
+ copts = [
+ "-I external/ngraph/src",
+ "-I external/nlohmann_json_lib/include/",
+ '-D SHARED_LIB_EXT=\\".so\\"',
+ '-D NGRAPH_VERSION=\\"0.5.0\\"',
+ ],
+ visibility = ["//visibility:public"],
+ alwayslink=1
+)