this repo has no description

Merge pull request #22155 from LaurentMazare/libtorch-1.12

Add opam files for libtorch 1.12.

Kate f5928d87 41a11a78

Changed files
+57
packages
libtorch
libtorch.1.12.0+linux-x86_64
libtorch.1.12.0+macos-x86_64
+25
packages/libtorch/libtorch.1.12.0+linux-x86_64/opam
···
···
+
opam-version: "2.0"
+
homepage: "https://github.com/LaurentMazare/ocaml-torch"
+
license: "BSD-3-Clause"
+
maintainer: "lmazare@gmail.com"
+
bug-reports: "https://github.com/LaurentMazare/ocaml-torch/issues"
+
dev-repo: "git+https://github.com/LaurentMazare/ocaml-torch.git"
+
authors: [
+
"Laurent Mazare"
+
]
+
install: [
+
[
+
"sh"
+
"-c"
+
"test -d %{lib}%/libtorch/lib/libtorch.so || ( unzip libtorch-linux.zip && mv -f libtorch %{lib}%/ )"
+
]
+
]
+
synopsis: "LibTorch library package"
+
description: """
+
This is used by the torch package to trigger the install of the
+
libtorch library."""
+
extra-source "libtorch-linux.zip" {
+
src: "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.12.0%2Bcpu.zip"
+
checksum: "md5=a0400de625916051176b69f7aa524fc3"
+
}
+
available: arch = "x86_64" & os = "linux"
+32
packages/libtorch/libtorch.1.12.0+macos-x86_64/opam
···
···
+
opam-version: "2.0"
+
homepage: "https://github.com/LaurentMazare/ocaml-torch"
+
maintainer: "lmazare@gmail.com"
+
bug-reports: "https://github.com/LaurentMazare/ocaml-torch/issues"
+
dev-repo: "git+https://github.com/LaurentMazare/ocaml-torch.git"
+
license: "BSD-3-Clause"
+
authors: [
+
"Laurent Mazare"
+
]
+
install: [
+
[
+
"sh"
+
"-c"
+
"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/ )"
+
]
+
]
+
depexts: [
+
["libomp"] {os-distribution = "homebrew"}
+
]
+
synopsis: "LibTorch library package"
+
description: """
+
This is used by the torch package to trigger the install of the
+
libtorch library."""
+
extra-source "libtorch-macos.zip" {
+
src: "https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.12.0.zip"
+
checksum: "md5=b01b0c32221fc81ea1c480eab589cac6"
+
}
+
extra-source "mklml-macos.tgz" {
+
src: "https://github.com/intel/mkl-dnn/releases/download/v0.17.2/mklml_mac_2019.0.1.20181227.tgz"
+
checksum: "md5=a8b4b158dc8e7aad13c0d594a9a8d241"
+
}
+
available: arch = "x86_64" & os = "macos"