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" authors: [ "Laurent Mazare" ] install: [ [ "sh" "-c" "test -d %{lib}%/libtorch/lib/libtorch.so || ( unzip libtorch-linux.zip && mv -f libtorch %{lib}%/ )" ] { os = "linux" } [ "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/ )" ] { os = "macos" } ] remove: [ [ "rm" "-Rf" "%{lib}%/libtorch" ] ] 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-shared-with-deps-1.0.0.zip" checksum: [ "sha256=71cd435d664799cfe5d1c53ad1fd63b7cfc5b64ca934ee6dc2d76badd399e7f5" "md5=0b9e7a3da5da473760709dbf84c292dc" ] } extra-source "libtorch-macos.zip" { src: "https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.0.0.zip" checksum: [ "sha256=fe6be5edcc77a7853eadff7bed82955200512810b415150ca2c49fbd7c987c6d" "md5=82f52647daa39c189a573115d440d09d" ] } 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: [ "sha256=1ddbb0922254f9b4e545f89a9cf952378f4a5d421f671e53b79e4f3a5da0dba9" "md5=a8b4b158dc8e7aad13c0d594a9a8d241" ] }