Skip to content

Commit

Permalink
libtorch-bin: 2.0.0 -> 2.2.2
Browse files Browse the repository at this point in the history
Also fixed the prefetch script, the url seems to have slightly changed
Fixes #299311
  • Loading branch information
pinpox committed Apr 7, 2024
1 parent d217732 commit 05b9a14
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/science/math/libtorch/bin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let
# this derivation. However, we should ensure on version bumps
# that the CUDA toolkit for `passthru.tests` is still
# up-to-date.
version = "2.0.0";
version = "2.2.2";
device = if cudaSupport then "cuda" else "cpu";
srcs = import ./binary-hashes.nix version;
unavailable = throw "libtorch is not available for this platform";
Expand Down
22 changes: 11 additions & 11 deletions pkgs/development/libraries/science/math/libtorch/binary-hashes.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
version : builtins.getAttr version {
"2.0.0" = {
version: builtins.getAttr version {
"2.2.2" = {
x86_64-darwin-cpu = {
name = "libtorch-macos-2.0.0.zip";
url = "https://download.pytorch.org/libtorch/cpu/libtorch-macos-2.0.0.zip";
hash = "sha256-u6y5IeYoiOC0yQ/k6JCChDs9lXWccLxUorgR8L62lkM=";
name = "libtorch-macos-x86_64-2.2.2.zip";
url = "https://download.pytorch.org/libtorch/cpu/libtorch-macos-x86_64-2.2.2.zip";
hash = "sha256-GcMf+0Cwfz6D8FC5bhtxCdBC4NgysO+2xA7EqXeb2fk=";
};
x86_64-linux-cpu = {
name = "libtorch-cxx11-abi-shared-with-deps-2.0.0-cpu.zip";
url = "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcpu.zip";
hash = "sha256-BoZQ2MC1CDVVGfX3SHC3mEpLGWO8XK7AcLcHJXDsXuc=";
name = "libtorch-cxx11-abi-shared-with-deps-2.2.2-cpu.zip";
url = "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.2.2%2Bcpu.zip";
hash = "sha256-REVmlpMC9xGHfKXtPbw1wOzhNf+G0wNRJBwmwen8fLE=";
};
x86_64-linux-cuda = {
name = "libtorch-cxx11-abi-shared-with-deps-2.0.0-cu118.zip";
url = "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcu118.zip";
hash = "sha256-Dpw9kQdA1NI9EOT7JBKwQP4wZT6lizcnKKTQ8WVJCZc=";
name = "libtorch-cxx11-abi-shared-with-deps-2.2.2-cu118.zip";
url = "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.2.2%2Bcu118.zip";
hash = "sha256-oL1x6VzdQHEW8qp9cFNN3/wi4B/5vhMnWJGKK1yj2Dg=";
};
};
}
4 changes: 2 additions & 2 deletions pkgs/development/libraries/science/math/libtorch/prefetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ set -eou pipefail
version=$1

bucket="https://download.pytorch.org/libtorch"
CUDA_VERSION=cu116
CUDA_VERSION=cu118

url_and_key_list=(
"x86_64-darwin-cpu $bucket/cpu/libtorch-macos-${version}.zip libtorch-macos-${version}.zip"
"x86_64-darwin-cpu $bucket/cpu/libtorch-macos-x86_64-${version}.zip libtorch-macos-x86_64-${version}.zip"
"x86_64-linux-cpu $bucket/cpu/libtorch-cxx11-abi-shared-with-deps-${version}%2Bcpu.zip libtorch-cxx11-abi-shared-with-deps-${version}-cpu.zip"
"x86_64-linux-cuda $bucket/${CUDA_VERSION}/libtorch-cxx11-abi-shared-with-deps-${version}%2B${CUDA_VERSION}.zip libtorch-cxx11-abi-shared-with-deps-${version}-${CUDA_VERSION}.zip"
)
Expand Down

0 comments on commit 05b9a14

Please sign in to comment.