@@ -49,43 +49,41 @@ new_local_repository(
49
49
# Tarballs and fetched dependencies (default - use in cases when building from precompiled bin and tarballs)
50
50
#############################################################################################################
51
51
52
- # TODO: Uncomment these and comment out the lower section before merge into master
53
-
54
- # http_archive(
55
- # name = "libtorch",
56
- # build_file = "@//third_party/libtorch:BUILD",
57
- # strip_prefix = "libtorch",
58
- # urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.5.0.zip"],
59
- # sha256 = "0efdd4e709ab11088fa75f0501c19b0e294404231442bab1d1fb953924feb6b5"
60
- # )
52
+ http_archive (
53
+ name = "libtorch" ,
54
+ build_file = "@//third_party/libtorch:BUILD" ,
55
+ strip_prefix = "libtorch" ,
56
+ urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.5.0.zip" ],
57
+ sha256 = "0efdd4e709ab11088fa75f0501c19b0e294404231442bab1d1fb953924feb6b5"
58
+ )
61
59
62
- # http_archive(
63
- # name = "libtorch_pre_cxx11_abi",
64
- # build_file = "@//third_party/libtorch:BUILD",
65
- # strip_prefix = "libtorch",
66
- # sha256 = "ea8de17c5f70015583f3a7a43c7a5cdf91a1d4bd19a6a7bc11f074ef6cd69e27",
67
- # urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.5.0.zip"],
68
- # )
60
+ http_archive (
61
+ name = "libtorch_pre_cxx11_abi" ,
62
+ build_file = "@//third_party/libtorch:BUILD" ,
63
+ strip_prefix = "libtorch" ,
64
+ sha256 = "ea8de17c5f70015583f3a7a43c7a5cdf91a1d4bd19a6a7bc11f074ef6cd69e27" ,
65
+ urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.5.0.zip" ],
66
+ )
69
67
70
68
# Download these tarballs manually from the NVIDIA website
71
69
# Either place them in the distdir directory in third_party and use the --distdir flag
72
70
# or modify the urls to "file:///<PATH TO TARBALL>/<TARBALL NAME>.tar.gz
73
71
74
- # http_archive(
75
- # name = "cudnn",
76
- # urls = ["https://developer.nvidia.com/compute/machine-learning/cudnn/secure/7.6.5.32/Production/10.2_20191118/cudnn-10.2-linux-x64-v7.6.5.32.tgz"],
77
- # build_file = "@//third_party/cudnn/archive:BUILD",
78
- # sha256 = "600267f2caaed2fd58eb214ba669d8ea35f396a7d19b94822e6b36f9f7088c20",
79
- # strip_prefix = "cuda"
80
- # )
72
+ http_archive (
73
+ name = "cudnn" ,
74
+ urls = ["https://developer.nvidia.com/compute/machine-learning/cudnn/secure/7.6.5.32/Production/10.2_20191118/cudnn-10.2-linux-x64-v7.6.5.32.tgz" ],
75
+ build_file = "@//third_party/cudnn/archive:BUILD" ,
76
+ sha256 = "600267f2caaed2fd58eb214ba669d8ea35f396a7d19b94822e6b36f9f7088c20" ,
77
+ strip_prefix = "cuda"
78
+ )
81
79
82
- # http_archive(
83
- # name = "tensorrt",
84
- # urls = ["https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/7.0/7.0.0.11/tars/TensorRT-7.0.0.11.Ubuntu-18.04.x86_64-gnu.cuda-10.2.cudnn7.6.tar.gz"],
85
- # build_file = "@//third_party/tensorrt/archive:BUILD",
86
- # sha256 = "c7d73b2585b18aae68b740249efa8c8ba5ae852abe9a023720595432a8eb4efd",
87
- # strip_prefix = "TensorRT-7.0.0.11"
88
- # )
80
+ http_archive (
81
+ name = "tensorrt" ,
82
+ urls = ["https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/7.0/7.0.0.11/tars/TensorRT-7.0.0.11.Ubuntu-18.04.x86_64-gnu.cuda-10.2.cudnn7.6.tar.gz" ],
83
+ build_file = "@//third_party/tensorrt/archive:BUILD" ,
84
+ sha256 = "c7d73b2585b18aae68b740249efa8c8ba5ae852abe9a023720595432a8eb4efd" ,
85
+ strip_prefix = "TensorRT-7.0.0.11"
86
+ )
89
87
90
88
####################################################################################
91
89
# Locally installed dependencies (use in cases of custom dependencies or aarch64)
@@ -98,50 +96,50 @@ new_local_repository(
98
96
# x86_64 python distribution. If using NVIDIA's version just point to the root of the package
99
97
# for both versions here and do not use --config=pre-cxx11-abi
100
98
101
- new_local_repository (
102
- name = "libtorch" ,
103
- # path = "/usr/local/lib/python3.6/dist-packages/torch",
104
- # TODO: Remove this and use the above line before merge into master
105
- path = "/home/nvidia/.local/lib/python3.6/site-packages/torch" ,
106
- build_file = "third_party/libtorch/BUILD"
107
- )
99
+ # new_local_repository(
100
+ # name = "libtorch",
101
+ # path = "/usr/local/lib/python3.6/dist-packages/torch",
102
+ # # Use below for aarch64
103
+ # # path = "/home/nvidia/.local/lib/python3.6/site-packages/torch",
104
+ # build_file = "third_party/libtorch/BUILD"
105
+ # )
108
106
109
- new_local_repository (
110
- name = "libtorch_pre_cxx11_abi" ,
111
- # path = "/usr/local/lib/python3.6/dist-packages/torch",
112
- # TODO: Remove this and use above line before merge into master
113
- path = "/home/nvidia/.local/lib/python3.6/site-packages/torch" ,
114
- build_file = "third_party/libtorch/BUILD"
115
- )
107
+ # new_local_repository(
108
+ # name = "libtorch_pre_cxx11_abi",
109
+ # path = "/usr/local/lib/python3.6/dist-packages/torch",
110
+ # # Use below for aarch64
111
+ # # path = "/home/nvidia/.local/lib/python3.6/site-packages/torch",
112
+ # build_file = "third_party/libtorch/BUILD"
113
+ # )
116
114
117
- new_local_repository (
118
- name = "cudnn" ,
119
- path = "/usr/" ,
120
- build_file = "@//third_party/cudnn/local:BUILD"
121
- )
115
+ # new_local_repository(
116
+ # name = "cudnn",
117
+ # path = "/usr/",
118
+ # build_file = "@//third_party/cudnn/local:BUILD"
119
+ # )
122
120
123
- new_local_repository (
124
- name = "tensorrt" ,
125
- path = "/usr/" ,
126
- build_file = "@//third_party/tensorrt/local:BUILD"
127
- )
121
+ # new_local_repository(
122
+ # name = "tensorrt",
123
+ # path = "/usr/",
124
+ # build_file = "@//third_party/tensorrt/local:BUILD"
125
+ # )
128
126
129
127
#########################################################################
130
128
# Testing Dependencies (optional - comment out on aarch64)
131
129
#########################################################################
132
130
133
- # pip3_import(
134
- # name = "trtorch_py_deps",
135
- # requirements = "//py:requirements.txt"
136
- # )
131
+ pip3_import (
132
+ name = "trtorch_py_deps" ,
133
+ requirements = "//py:requirements.txt"
134
+ )
137
135
138
- # load("@trtorch_py_deps//:requirements.bzl", "pip_install")
139
- # pip_install()
136
+ load ("@trtorch_py_deps//:requirements.bzl" , "pip_install" )
137
+ pip_install ()
140
138
141
- # pip3_import(
142
- # name = "py_test_deps",
143
- # requirements = "//tests/py:requirements.txt"
144
- # )
139
+ pip3_import (
140
+ name = "py_test_deps" ,
141
+ requirements = "//tests/py:requirements.txt"
142
+ )
145
143
146
- # load("@py_test_deps//:requirements.bzl", "pip_install")
147
- # pip_install()
144
+ load ("@py_test_deps//:requirements.bzl" , "pip_install" )
145
+ pip_install ()
0 commit comments