summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2020-10-28 13:23:35 +0100
committerDaniël de Kok <me@danieldk.eu>2020-10-28 13:23:35 +0100
commit442ba6668fc3d8165d6cbc18255b089a7133221d (patch)
tree159c8e594ad601ecddd0a395b3d3e247dea7f740
parent533965957eaf8b7a23433ec178c09faa11a682a2 (diff)
libtorch-bin: 1.6.0 -> 1.7.0
Changelog: https://github.com/pytorch/pytorch/releases/tag/v1.7.0
-rw-r--r--pkgs/development/libraries/science/math/libtorch/bin.nix4
-rw-r--r--pkgs/development/libraries/science/math/libtorch/binary-hashes.nix14
2 files changed, 9 insertions, 9 deletions
diff --git a/pkgs/development/libraries/science/math/libtorch/bin.nix b/pkgs/development/libraries/science/math/libtorch/bin.nix
index 3ae462705868..33229bbefc82 100644
--- a/pkgs/development/libraries/science/math/libtorch/bin.nix
+++ b/pkgs/development/libraries/science/math/libtorch/bin.nix
@@ -12,9 +12,9 @@
}:
let
- version = "1.6.0";
+ version = "1.7.0";
device = if cudaSupport then "cuda" else "cpu";
- srcs = import ./binary-hashes.nix;
+ srcs = import ./binary-hashes.nix version;
unavailable = throw "libtorch is not available for this platform";
in stdenv.mkDerivation {
inherit version;
diff --git a/pkgs/development/libraries/science/math/libtorch/binary-hashes.nix b/pkgs/development/libraries/science/math/libtorch/binary-hashes.nix
index 92a2e05e0ba3..6048fe8676b7 100644
--- a/pkgs/development/libraries/science/math/libtorch/binary-hashes.nix
+++ b/pkgs/development/libraries/science/math/libtorch/binary-hashes.nix
@@ -1,14 +1,14 @@
-{
+version: {
x86_64-darwin-cpu = {
- url = "https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.6.0.zip";
- sha256 = "0d4n7la31qzl4s9pwvm07la7q6lhcwiww0yjpfz3kw6nvx84p22r";
+ url = "https://download.pytorch.org/libtorch/cpu/libtorch-macos-${version}.zip";
+ sha256 = "1912lklil0i7i10j1fm4qzcq96cc8c281l9fn5gfbwa2wwry0r59";
};
x86_64-linux-cpu = {
- url = "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.6.0%2Bcpu.zip";
- sha256 = "1975b4zvyihzh89vnwspw0vf9qr05sxj8939vcrlmv3gzvdspcxz";
+ url = "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-${version}%2Bcpu.zip";
+ sha256 = "0jdd7bjcy20xz2gfv8f61zdrbzxz5425bnqaaqgrwpzvd45ay8px";
};
x86_64-linux-cuda = {
- url = "https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.6.0.zip";
- sha256 = "127qnfyi1faqbm40sbnsyqxjhrqj82bzwqyz7c1hs2bm0zgrrpya";
+ url = "https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-${version}.zip";
+ sha256 = "1ag6lvf3a400ivqq4g9cxpmxzlfrga0y5ssjy0rfpw6i1xljibn6";
};
}