"Fossies" - the Fresh Open Source Software Archive

Member "pytorch-1.8.2/WORKSPACE" (23 Jul 2021, 4409 Bytes) of package /linux/misc/pytorch-1.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "WORKSPACE": 1.12.1_vs_1.13.0.

    1 workspace(name = "pytorch")
    2 
    3 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
    4 load("//tools/rules:workspace.bzl", "new_patched_local_repository")
    5 
    6 http_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 
   13 http_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 
   21 http_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 
   28 new_local_repository(
   29     name = "pybind11",
   30     build_file = "@pybind11_bazel//:pybind11.BUILD",
   31     path = "third_party/pybind11",
   32 )
   33 
   34 http_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 
   42 http_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 
   51 new_local_repository(
   52     name = "gloo",
   53     build_file = "//third_party:gloo.BUILD",
   54     path = "third_party/gloo",
   55 )
   56 
   57 new_local_repository(
   58     name = "onnx",
   59     build_file = "//third_party:onnx.BUILD",
   60     path = "third_party/onnx",
   61 )
   62 
   63 new_local_repository(
   64     name = "foxi",
   65     build_file = "//third_party:foxi.BUILD",
   66     path = "third_party/foxi",
   67 )
   68 
   69 local_repository(
   70     name = "com_google_protobuf",
   71     path = "third_party/protobuf",
   72 )
   73 
   74 new_local_repository(
   75     name = "eigen",
   76     build_file = "//third_party:eigen.BUILD",
   77     path = "third_party/eigen",
   78 )
   79 
   80 new_local_repository(
   81     name = "fbgemm",
   82     build_file = "//third_party:fbgemm/BUILD.bazel",
   83     path = "third_party/fbgemm",
   84 )
   85 
   86 new_local_repository(
   87     name = "ideep",
   88     build_file = "//third_party:ideep.BUILD",
   89     path = "third_party/ideep",
   90 )
   91 
   92 new_local_repository(
   93     name = "mkl_dnn",
   94     build_file = "//third_party:mkl-dnn.BUILD",
   95     path = "third_party/ideep/mkl-dnn",
   96 )
   97 
   98 new_local_repository(
   99     name = "cpuinfo",
  100     build_file = "//third_party:cpuinfo.BUILD",
  101     path = "third_party/cpuinfo",
  102 )
  103 
  104 new_local_repository(
  105     name = "asmjit",
  106     build_file = "//third_party:fbgemm/third_party/asmjit.BUILD",
  107     path = "third_party/fbgemm/third_party/asmjit",
  108 )
  109 
  110 new_local_repository(
  111     name = "sleef",
  112     build_file = "//third_party:sleef.BUILD",
  113     path = "third_party/sleef",
  114 )
  115 
  116 new_local_repository(
  117     name = "fmt",
  118     build_file = "//third_party:fmt.BUILD",
  119     path = "third_party/fmt",
  120 )
  121 
  122 new_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 
  132 new_local_repository(
  133     name = "tensorpipe",
  134     build_file = "//third_party:tensorpipe.BUILD",
  135     path = "third_party/tensorpipe",
  136 )
  137 
  138 http_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 
  148 http_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 
  157 http_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 
  163 load("@pybind11_bazel//:python_configure.bzl", "python_configure")
  164 python_configure(name = "local_config_python")
  165 
  166 load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
  167 
  168 protobuf_deps()
  169 
  170 load("@rules_python//python:repositories.bzl", "py_repositories")
  171 
  172 py_repositories()