Skip to content

Commit 2bc1a3a

Browse files
committed
Add zlib as a dependency to aarch64-linux Torch
Torch vendors libgfortran, which has zlib as a dependency. We might want to use system libgfortran in the future instead, but it requires more investigation/testing. Fixes #301.
1 parent 3dfcfb5 commit 2bc1a3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/python-modules/torch/binary/generic.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
cudaPackages,
2323
rocmPackages,
2424
xpuPackages,
25+
zlib,
2526

2627
# Python dependencies
2728
filelock,
@@ -193,7 +194,9 @@ buildPythonPackage {
193194
intel-oneapi-mpi
194195
intel-pti
195196
]
196-
);
197+
)
198+
# Torch on aarch64-linux vendors libgfortran, which requires zlib.
199+
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ zlib ];
197200

198201
dependencies = [
199202
filelock

0 commit comments

Comments
 (0)