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"
6license: "BSD-3-Clause"
7authors: [
8 "Laurent Mazare"
9]
10install: [
11 [
12 "sh"
13 "-c"
14 "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/ )"
15 ]
16]
17depexts: [
18 ["libomp"] {os-distribution = "homebrew"}
19]
20synopsis: "LibTorch library package"
21description: """
22This is used by the torch package to trigger the install of the
23libtorch library."""
24extra-source "libtorch-macos.zip" {
25 src: "https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.13.0.zip"
26 checksum: [
27 "sha256=a8f80050b95489b4e002547910410c2c230e9f590ffab2482e19e809afe4f7aa"
28 "md5=51a1a465138ca22dc06342085abaadbc"
29 ]
30}
31extra-source "mklml-macos.tgz" {
32 src:
33 "https://github.com/intel/mkl-dnn/releases/download/v0.17.2/mklml_mac_2019.0.1.20181227.tgz"
34 checksum: [
35 "sha256=1ddbb0922254f9b4e545f89a9cf952378f4a5d421f671e53b79e4f3a5da0dba9"
36 "md5=a8b4b158dc8e7aad13c0d594a9a8d241"
37 ]
38}
39available: arch = "x86_64" & os = "macos"