@@ -41,27 +41,83 @@ local_repository(
41
41
new_local_repository (
42
42
name = "cuda" ,
43
43
build_file = "@//third_party/cuda:BUILD" ,
44
- path = "/usr/local/cuda-12.1 /" ,
44
+ path = "/usr/local/cuda-11.8 /" ,
45
45
)
46
46
47
+ new_local_repository (
48
+ name = "cublas" ,
49
+ build_file = "@//third_party/cublas:BUILD" ,
50
+ path = "/usr" ,
51
+ )
47
52
#############################################################################################################
48
53
# Tarballs and fetched dependencies (default - use in cases when building from precompiled bin and tarballs)
49
54
#############################################################################################################
50
55
56
+ # Pytorch 1.13
57
+ # http_archive(
58
+ # name = "libtorch",
59
+ # build_file = "@//third_party/libtorch:BUILD",
60
+ # sha256 = "0a013dceedb252f4965b666a2ad772d962135597db5889bd5d43644697c17dbc",
61
+ # strip_prefix = "libtorch",
62
+ # urls = ["https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-1.13.0%2Bcu117.zip"],
63
+ # )
64
+
65
+ # http_archive(
66
+ # name = "libtorch_pre_cxx11_abi",
67
+ # build_file = "@//third_party/libtorch:BUILD",
68
+ # sha256 = "cdbd43985ad9d5886793d5dc455d665cf3fd4b4617ef1094479678ff210ed0af",
69
+ # strip_prefix = "libtorch",
70
+ # urls = ["https://download.pytorch.org/libtorch/cu117/libtorch-shared-with-deps-1.13.0%2Bcu117.zip"],
71
+ # )
72
+
73
+ # Pyt 1.14
74
+ # http_archive(
75
+ # name = "libtorch",
76
+ # build_file = "@//third_party/libtorch:BUILD",
77
+ # sha256 = "28f352d980191492758fbeb6773eda509d3d1917c59a7f52829af1c6b521bbc7",
78
+ # strip_prefix = "libtorch",
79
+ # urls = ["https://download.pytorch.org/libtorch/nightly/cu117/libtorch-cxx11-abi-shared-with-deps-1.14.0.dev20221114%2Bcu117.zip"],
80
+ # )
81
+
82
+ # http_archive(
83
+ # name = "libtorch_pre_cxx11_abi",
84
+ # build_file = "@//third_party/libtorch:BUILD",
85
+ # sha256 = "6e1ee2893cfd2ce3d69604d9988e0f5133aeee45da611edd07cb633f78966ce3",
86
+ # strip_prefix = "libtorch",
87
+ # urls = ["https://download.pytorch.org/libtorch/nightly/cu117/libtorch-shared-with-deps-1.14.0.dev20221114%2Bcu117.zip"],
88
+ # )
89
+
90
+ # Pytorch 2.0
91
+ # http_archive(
92
+ # name = "libtorch",
93
+ # build_file = "@//third_party/libtorch:BUILD",
94
+ # # sha256 = "78f2646bbc46024d6be6db06eac19aea08206b1b84a065af04574a8d92ee3f01",
95
+ # strip_prefix = "libtorch",
96
+ # urls = ["https://download.pytorch.org/libtorch/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcu117.zip"],
97
+ # )
98
+ #
99
+ # http_archive(
100
+ # name = "libtorch_pre_cxx11_abi",
101
+ # build_file = "@//third_party/libtorch:BUILD",
102
+ # # sha256 = "d76af42fd10554b0a9c0e50fd13e0988ea8d2d9912d2bc659d0019ed047882cc",
103
+ # strip_prefix = "libtorch",
104
+ # urls = ["https://download.pytorch.org/libtorch/cu117/libtorch-shared-with-deps-2.0.0%2Bcu117.zip"],
105
+ # )
106
+
51
107
http_archive (
52
108
name = "libtorch" ,
53
109
build_file = "@//third_party/libtorch:BUILD" ,
54
- sha256 = "5ba55259b65e071346a2b547b8d1378595f1467a39aaa923fecb09f134f1bcba " ,
110
+ sha256 = "999becce82b73e566d0ffe010cd21fea8cf3a33f90f09dcc6b01150b820ae063 " ,
55
111
strip_prefix = "libtorch" ,
56
- urls = ["https://download.pytorch.org/libtorch/nightly/cu121 /libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230619%2Bcu121 .zip" ],
112
+ urls = ["https://download.pytorch.org/libtorch/nightly/cu118 /libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230605%2Bcu118 .zip" ],
57
113
)
58
114
59
115
http_archive (
60
116
name = "libtorch_pre_cxx11_abi" ,
61
117
build_file = "@//third_party/libtorch:BUILD" ,
62
- sha256 = "8f6661bfc11597e77400e9e36cc8dd8e5e385ba82361d630d9ccede8518d7c7e " ,
118
+ sha256 = "786cc728c63ea69c40bd8fb535cf8e5e1dfff1d43eaad3eb5256b9ed89c1b268 " ,
63
119
strip_prefix = "libtorch" ,
64
- urls = ["https://download.pytorch.org/libtorch/nightly/cu121 /libtorch-shared-with-deps-2.1.0.dev20230619%2Bcu121 .zip" ],
120
+ urls = ["https://download.pytorch.org/libtorch/nightly/cu118 /libtorch-shared-with-deps-2.1.0.dev20230605%2Bcu118 .zip" ],
65
121
)
66
122
67
123
# Download these tarballs manually from the NVIDIA website
@@ -71,23 +127,57 @@ http_archive(
71
127
http_archive (
72
128
name = "cudnn" ,
73
129
build_file = "@//third_party/cudnn/archive:BUILD" ,
74
- sha256 = "79d77a769c7e7175abc7b5c2ed5c494148c0618a864138722c887f95c623777c" ,
75
- strip_prefix = "cudnn-linux-x86_64-8.8.1.3_cuda12-archive" ,
130
+ strip_prefix = "cudnn-linux-x86_64-8.5.0.96_cuda11-archive" ,
76
131
urls = [
77
- "https ://developer.nvidia.com/downloads/compute/cudnn/secure/8.8.1/local_installers/12.0/ cudnn-linux-x86_64-8.8.1.3_cuda12 -archive.tar.xz" ,
132
+ "file :////home/dperi/Downloads/cudnn/ cudnn-linux-x86_64-8.5.0.96_cuda11 -archive.tar.xz" ,
78
133
],
79
134
)
80
135
136
+ # http_archive(
137
+ # name = "tensorrt",
138
+ # urls = ["http://cuda-repo/release-candidates/Libraries/TensorRT/v8.5/8.5.1.7-d95eb1a4/11.8-r520/Linux-x64-agnostic/tar/TensorRT-8.5.1.7.Linux.x86_64-gnu.cuda-11.8.cudnn8.6.tar.gz",],
139
+ # sha256 = "39cc7f077057d1363794e8ff51c4cf21a5dbeccf1116b0020ba0dae0f3063076",
140
+ # build_file = "@//third_party/tensorrt/archive:BUILD",
141
+ # strip_prefix = "TensorRT-8.5.1.7"
142
+ # )
143
+
81
144
http_archive (
82
145
name = "tensorrt" ,
146
+ # urls = ["http://cuda-repo/release-candidates/Libraries/TensorRT/v8.5/8.5.1.7-d95eb1a4/11.8-r520/Linux-x64-agnostic/tar/TensorRT-8.5.1.7.Linux.x86_64-gnu.cuda-11.8.cudnn8.6.tar.gz",],
147
+ urls = ["file:////home/dperi/Downloads/public_trt/TensorRT-8.6.1.6.Linux.x86_64-gnu.cuda-11.8.tar.gz" ,],
148
+ # sha256 = "39cc7f077057d1363794e8ff51c4cf21a5dbeccf1116b0020ba0dae0f3063076",
83
149
build_file = "@//third_party/tensorrt/archive:BUILD" ,
84
- sha256 = "0f8157a5fc5329943b338b893591373350afa90ca81239cdadd7580cd1eba254" ,
85
- strip_prefix = "TensorRT-8.6.1.6" ,
86
- urls = [
87
- "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/secure/8.6.1/tars/TensorRT-8.6.1.6.Linux.x86_64-gnu.cuda-12.0.tar.gz" ,
88
- ],
150
+ strip_prefix = "TensorRT-8.6.1.6"
89
151
)
90
152
153
+ # http_archive(
154
+ # name = "tensorrt",
155
+ # # urls = ["http://cuda-repo/release-candidates/Libraries/TensorRT/v8.5/8.5.1.7-d95eb1a4/11.8-r520/Linux-x64-agnostic/tar/TensorRT-8.5.1.7.Linux.x86_64-gnu.cuda-11.8.cudnn8.6.tar.gz",],
156
+ # urls = ["file:////home/dperi/Downloads/public_trt/TensorRT-8.5.2.2.Linux.x86_64-gnu.cuda-11.8.cudnn8.6.tar.gz",],
157
+ # # sha256 = "39cc7f077057d1363794e8ff51c4cf21a5dbeccf1116b0020ba0dae0f3063076",
158
+ # build_file = "@//third_party/tensorrt/archive:BUILD",
159
+ # strip_prefix = "TensorRT-8.5.2.2"
160
+ # )
161
+
162
+ # http_archive(
163
+ # name = "cudnn",
164
+ # build_file = "@//third_party/cudnn/archive:BUILD",
165
+ # # sha256 = "d07e15cf1f59ae822ce9cdb04e051cb936b99b727e586f2b61ed04a5f08s35bd2",
166
+ # strip_prefix = "cudnn-linux-x86_64-8.4.1.50_cuda11.6-archive",
167
+ # urls = [
168
+ # "file:////home/dperi/Downloads/cudnn/cudnn-linux-x86_64-8.4.1.50_cuda11.6-archive.tar.xz",
169
+ # ],
170
+ # )
171
+
172
+ # http_archive(
173
+ # name = "tensorrt",
174
+ # urls = ["http://cuda-repo/release-candidates/Libraries/TensorRT/v8.4/8.4.3.1-74b5c2dc/11.6-r510/Linux-x64-agnostic/tar/TensorRT-8.4.3.1.Linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz",],
175
+ # sha256 = "8d7c2085c1639dcc73875048c23598a8526ce3089136876e31d90258e49e4f61",
176
+ # build_file = "@//third_party/tensorrt/archive:BUILD",
177
+ # strip_prefix = "TensorRT-8.4.3.1"
178
+ # )
179
+
180
+
91
181
####################################################################################
92
182
# Locally installed dependencies (use in cases of custom dependencies or aarch64)
93
183
####################################################################################
@@ -111,11 +201,11 @@ http_archive(
111
201
# build_file = "third_party/libtorch/BUILD"
112
202
#)
113
203
114
- #new_local_repository(
204
+ # new_local_repository(
115
205
# name = "cudnn",
116
206
# path = "/usr/",
117
207
# build_file = "@//third_party/cudnn/local:BUILD"
118
- #)
208
+ # )
119
209
120
210
#new_local_repository(
121
211
# name = "tensorrt",
0 commit comments