this repo has no description
1opam-version: "2.0"
2homepage: "https://github.com/LaurentMazare/ocaml-torch"
3maintainer: "lmazare@gmail.com"
4bug-reports: "https://github.com/LaurentMazare/ocaml-torch/issues"
5dev-repo: "git+https://github.com/LaurentMazare/ocaml-torch.git"
6authors: [
7 "Laurent Mazare"
8]
9install: [
10 [
11 "sh"
12 "-c"
13 "test -d %{lib}%/libtorch/lib/libtorch.so || ( unzip libtorch-macos.zip && mv -f libtorch %{lib}%/ && tar xzf mklml-macos.tgz && mv -f mklml_mac_2019.0.1.20181227/lib/libmklml.dylib %{lib}%/libtorch/lib/ && mv -f mklml_mac_2019.0.1.20181227/lib/libiomp5.dylib %{lib}%/libtorch/lib/ )"
14 ]
15]
16depexts: [
17 ["libomp"] {os-distribution = "homebrew"}
18]
19synopsis: "LibTorch library package"
20description: """
21This is used by the torch package to trigger the install of the
22libtorch library."""
23extra-source "libtorch-macos.zip" {
24 src: "https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.8.0.zip"
25 checksum: [
26 "sha256=d4633f937a61d07cf9b38790365951a9fb80c49a4e5d927622c9259f42a9ad83"
27 "md5=23f07569e0c942260c8b13fa8c3289b8"
28 ]
29}
30extra-source "mklml-macos.tgz" {
31 src:
32 "https://github.com/intel/mkl-dnn/releases/download/v0.17.2/mklml_mac_2019.0.1.20181227.tgz"
33 checksum: [
34 "sha256=1ddbb0922254f9b4e545f89a9cf952378f4a5d421f671e53b79e4f3a5da0dba9"
35 "md5=a8b4b158dc8e7aad13c0d594a9a8d241"
36 ]
37}
38available: arch = "x86_64" & os = "macos"