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-linux.zip && mv -f libtorch %{lib}%/ )"
14 ] { os = "linux" }
15 [
16 "sh"
17 "-c"
18 "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/ )"
19 ] { os = "macos" }
20]
21remove: [
22 [ "rm" "-Rf" "%{lib}%/libtorch" ]
23]
24depexts: [
25 ["libomp"] {os-distribution = "homebrew" & os = "macos"}
26]
27synopsis: "LibTorch library package"
28description: """
29This is used by the torch package to trigger the install of the
30libtorch library."""
31extra-source "libtorch-linux.zip" {
32 src:
33 "https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.1.0.zip"
34 checksum: [
35 "sha256=c863a0073ff4c7b6feb958799c7dc3202b3449e86ff1cec9c85c7da9d1fe0218"
36 "md5=93c81f522ff252180e156781efbfbc43"
37 ]
38}
39extra-source "libtorch-macos.zip" {
40 src: "https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.1.0.zip"
41 checksum: [
42 "sha256=2db31f6c7e69ea9142396d8ed0a7ad70dde2a9993cc8c23cc48c03ffeea13f0f"
43 "md5=584d813e330a4ef093a29bd0eea0b672"
44 ]
45}
46extra-source "mklml-macos.tgz" {
47 src:
48 "https://github.com/intel/mkl-dnn/releases/download/v0.17.2/mklml_mac_2019.0.1.20181227.tgz"
49 checksum: [
50 "sha256=1ddbb0922254f9b4e545f89a9cf952378f4a5d421f671e53b79e4f3a5da0dba9"
51 "md5=a8b4b158dc8e7aad13c0d594a9a8d241"
52 ]
53}