blob: 6f5028d4d091238300a70657d43ca57ed67b54c7 [file] [log] [blame]
George Gensure447bcd32020-04-06 22:48:33 -07001workspace(name = "pytorch")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4load("//tools/rules:workspace.bzl", "new_patched_local_repository")
5
6http_archive(
7 name = "bazel_skylib",
8 urls = [
9 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
10 ],
11)
12
13http_archive(
14 name = "com_google_googletest",
15 strip_prefix = "googletest-cd6b9ae3243985d4dc725abd513a874ab4161f3e",
16 urls = [
17 "https://github.com/google/googletest/archive/cd6b9ae3243985d4dc725abd513a874ab4161f3e.tar.gz",
18 ],
19)
20
21http_archive(
22 name = "pybind11_bazel",
23 strip_prefix = "pybind11_bazel-7f397b5d2cc2434bbd651e096548f7b40c128044",
24 urls = ["https://github.com/pybind/pybind11_bazel/archive/7f397b5d2cc2434bbd651e096548f7b40c128044.zip"],
25 sha256 = "e4a9536f49d4a88e3c5a09954de49c4a18d6b1632c457a62d6ec4878c27f1b5b",
26)
27
28new_local_repository(
29 name = "pybind11",
30 build_file = "@pybind11_bazel//:pybind11.BUILD",
31 path = "third_party/pybind11",
32)
33
34http_archive(
35 name = "com_github_glog",
36 strip_prefix = "glog-0.4.0",
37 urls = [
38 "https://github.com/google/glog/archive/v0.4.0.tar.gz",
39 ],
40)
41
42http_archive(
43 name = "com_github_gflags_gflags",
44 strip_prefix = "gflags-2.2.2",
45 urls = [
46 "https://github.com/gflags/gflags/archive/v2.2.2.tar.gz",
47 ],
48 sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf",
49)
50
51new_local_repository(
52 name = "gloo",
53 build_file = "//third_party:gloo.BUILD",
54 path = "third_party/gloo",
55)
56
57new_local_repository(
58 name = "onnx",
59 build_file = "//third_party:onnx.BUILD",
60 path = "third_party/onnx",
61)
62
63new_local_repository(
64 name = "foxi",
65 build_file = "//third_party:foxi.BUILD",
66 path = "third_party/foxi",
67)
68
69local_repository(
70 name = "com_google_protobuf",
71 path = "third_party/protobuf",
72)
73
74new_local_repository(
75 name = "eigen",
76 build_file = "//third_party:eigen.BUILD",
77 path = "third_party/eigen",
78)
79
80new_local_repository(
81 name = "fbgemm",
Nikita Shulga5a7f8892020-04-13 15:59:48 -070082 build_file = "//third_party:fbgemm/BUILD.bazel",
George Gensure447bcd32020-04-06 22:48:33 -070083 path = "third_party/fbgemm",
84)
85
86new_local_repository(
87 name = "ideep",
88 build_file = "//third_party:ideep.BUILD",
89 path = "third_party/ideep",
90)
91
92new_local_repository(
93 name = "mkl_dnn",
94 build_file = "//third_party:mkl-dnn.BUILD",
95 path = "third_party/ideep/mkl-dnn",
96)
97
98new_local_repository(
99 name = "cpuinfo",
100 build_file = "//third_party:cpuinfo.BUILD",
101 path = "third_party/cpuinfo",
102)
103
104new_local_repository(
105 name = "asmjit",
Nikita Shulga5a7f8892020-04-13 15:59:48 -0700106 build_file = "//third_party:fbgemm/third_party/asmjit.BUILD",
George Gensure447bcd32020-04-06 22:48:33 -0700107 path = "third_party/fbgemm/third_party/asmjit",
108)
109
110new_local_repository(
111 name = "sleef",
112 build_file = "//third_party:sleef.BUILD",
113 path = "third_party/sleef",
114)
115
Michael Suo68895ed2020-04-29 09:03:31 -0700116new_local_repository(
117 name = "fmt",
118 build_file = "//third_party:fmt.BUILD",
119 path = "third_party/fmt",
120)
121
George Gensure447bcd32020-04-06 22:48:33 -0700122new_patched_local_repository(
123 name = "tbb",
124 patches = [
125 "@//third_party:tbb.patch",
126 ],
127 patch_strip = 1,
128 build_file = "//third_party:tbb.BUILD",
129 path = "third_party/tbb",
130)
131
Luca Wehrstedt5baa6b62020-05-02 01:22:18 -0700132new_local_repository(
133 name = "tensorpipe",
134 build_file = "//third_party:tensorpipe.BUILD",
135 path = "third_party/tensorpipe",
136)
137
George Gensure447bcd32020-04-06 22:48:33 -0700138http_archive(
139 name = "mkl",
140 build_file = "//third_party:mkl.BUILD",
141 strip_prefix = "lib",
142 sha256 = "59154b30dd74561e90d547f9a3af26c75b6f4546210888f09c9d4db8f4bf9d4c",
143 urls = [
144 "https://anaconda.org/anaconda/mkl/2020.0/download/linux-64/mkl-2020.0-166.tar.bz2",
145 ],
146)
147
148http_archive(
149 name = "mkl_headers",
150 build_file = "//third_party:mkl_headers.BUILD",
151 sha256 = "2af3494a4bebe5ddccfdc43bacc80fcd78d14c1954b81d2c8e3d73b55527af90",
152 urls = [
153 "https://anaconda.org/anaconda/mkl-include/2020.0/download/linux-64/mkl-include-2020.0-166.tar.bz2",
154 ],
155)
156
157http_archive(
158 name = "rules_python",
159 url = "https://github.com/bazelbuild/rules_python/releases/download/0.0.1/rules_python-0.0.1.tar.gz",
160 sha256 = "aa96a691d3a8177f3215b14b0edc9641787abaaa30363a080165d06ab65e1161",
161)
162
163load("@pybind11_bazel//:python_configure.bzl", "python_configure")
164python_configure(name = "local_config_python")
165
166load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
167
168protobuf_deps()
169
170load("@rules_python//python:repositories.bzl", "py_repositories")
171
172py_repositories()