aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/tensorrt/BUILD.tpl
diff options
context:
space:
mode:
authorGravatar Sami Kama <skama@nvidia.com>2018-01-19 22:58:50 +0000
committerGravatar Sami Kama <skama@nvidia.com>2018-01-19 22:58:50 +0000
commit825e7a32e9f4dbad21a9ddb9d8a34bd3e32b1d0e (patch)
treeab8f8406065cac5ada579b571a1ebcc6338f5365 /third_party/tensorrt/BUILD.tpl
parente810b107d81a0016417b100bd89fd53e065e8d14 (diff)
Introducing TensortRT Operator to TF which can run (sub)graphs in
highly optimized TensorRT engines. This commit is a merged version of many commits by benbarsdell <bbarsdell at nvidia.com> deadeyegoodwin <davidg at nvidia.com jjsjann123 <jiej at nvidia.com> samikama <skama at nvidia.com>
Diffstat (limited to 'third_party/tensorrt/BUILD.tpl')
-rw-r--r--third_party/tensorrt/BUILD.tpl42
1 files changed, 42 insertions, 0 deletions
diff --git a/third_party/tensorrt/BUILD.tpl b/third_party/tensorrt/BUILD.tpl
new file mode 100644
index 0000000000..8962751f56
--- /dev/null
+++ b/third_party/tensorrt/BUILD.tpl
@@ -0,0 +1,42 @@
+# -*- python -*-
+# Description:
+# provide tensorrt information
+
+#TODO(Sami) these needs to be defined
+
+licenses(["notice"])
+
+exports_files(["LICENSE"])
+
+load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts", "if_cuda")
+
+config_setting(
+ name = "trt_enabled",
+ define_values = {
+ "using_tensorrt":"true"
+ },
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "tensorrt",
+ srcs =[%{tensorrt_lib}],
+ hdrs = ["include/NvInfer.h",
+ "include/NvUtils.h",
+ ],
+ copts= cuda_default_copts(),
+ deps =["@local_config_cuda//cuda:cuda",
+ "@local_config_cuda//cuda:cudnn",],
+ linkstatic = 1,
+ #include_prefix="include/",
+ includes=["include/"],
+ visibility = ["//visibility:public"],
+)
+
+%{tensorrt_genrules}
+
+# filegroup(
+# name = "%{tensorrt_lib}",
+# srcs = ["%{tensorrt_lib}"],
+# visibility = ["//visibility:public"],
+# )