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]
21depexts: [
22 ["libomp"] {os-distribution = "homebrew" & os = "macos"}
23]
24synopsis: "LibTorch library package"
25description: """
26This is used by the torch package to trigger the install of the
27libtorch library."""
28extra-source "libtorch-linux.zip" {
29 src:
30 "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.3.1%2Bcpu.zip"
31 checksum: [
32 "sha256=3f36d7a20e2d8e65b4ba5f6b5a8ccab0bbf65f1e1ccc9c95eb6853b2278fdf45"
33 "md5=2f725525ceb8c298225b056b8c9122c8"
34 ]
35}
36extra-source "libtorch-macos.zip" {
37 src: "https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.3.1.zip"
38 checksum: [
39 "sha256=eda550df98414e4f90a854c2220da354fe50692a8e55a53e999d36dbae4cd506"
40 "md5=89f328b3dddf5a96e7ed5feba5717582"
41 ]
42}
43extra-source "mklml-macos.tgz" {
44 src:
45 "https://github.com/intel/mkl-dnn/releases/download/v0.17.2/mklml_mac_2019.0.1.20181227.tgz"
46 checksum: [
47 "sha256=1ddbb0922254f9b4e545f89a9cf952378f4a5d421f671e53b79e4f3a5da0dba9"
48 "md5=a8b4b158dc8e7aad13c0d594a9a8d241"
49 ]
50}