Commit Graph

58 Commits

Author SHA1 Message Date
Sandro Jäckel
d43e54487b
pythonPackages.pytorch: remove ? null from inputs 2021-03-10 23:52:37 +01:00
Sandro Jäckel
3ceb5ab5ed
pythonPackages.pytorch: mark broken for darwin 2021-03-10 23:52:36 +01:00
Daniël de Kok
d4a72d5908
Merge pull request #115166 from danieldk/pytorch-bin-1.8.0
python3Packages.pytorch-bin: 1.7.1 -> 1.8.0
2021-03-08 09:03:21 +01:00
Daniël de Kok
d852ce11c3 python3Packages.pytorch-bin: 1.7.1 -> 1.8.0
Changelog:

https://github.com/pytorch/pytorch/releases/tag/v1.8.0
2021-03-06 07:36:54 +01:00
Daniël de Kok
6551ff3d48 python3Packages.pytorch: 1.7.1 -> 1.8.0
Changelog:

https://github.com/pytorch/pytorch/releases/tag/v1.8.0
2021-03-05 10:04:13 +01:00
Daniël de Kok
e9b3e36f44
Merge pull request #113207 from danieldk/pytorch-cuda-11
python3Packages.pytorch: add compute capabilities for CUDA 11
2021-03-05 08:01:50 +01:00
Daniël de Kok
6038b56de8 python3Packages.pytorch: add compute capabilities for CUDA 11
CUDA 11 supports capabilities 8.0 and 8.6. The change adds these
capabilities when CUDA 11 is used, enabling support for Ampere GPUs.
2021-03-04 11:16:48 +01:00
Daniël de Kok
ebf348fc9a python3Packages.pytorch-bin: do not depend on nvidia_x11
libcuda.so should be provided through /run/opengl-driver/lib to use
the system's version. This also avoids rebuilds when linuxPackages is
updated.
2021-02-15 19:29:35 +01:00
Pavol Rusnak
a4bbfba80d
pkgs/development/python-modules: stdenv.lib -> lib 2021-01-24 01:29:22 +01:00
Markus Kowalewski
6dba41fbcb
mpi: use mpi attribute consistently as the default MPI implementations
Use the attribute mpi to provide a system wide default MPI
implementation. The default is openmpi (as before).
This now allows for overriding the MPI implentation by using
the overlay mechanism. Build all packages with mpich instead
of the default openmpi can now be achived like this:
self: super:
 {
   mpi = super.mpich;
 }

All derivations that have been using "mpi ? null" to provide optional
building with MPI have been change in the following way to allow for
optional builds with MPI:
{ ...
, mpi
, useMpi ? false
}
2021-01-23 12:15:13 +01:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Daniël de Kok
e6c42f6405
Merge pull request #106585 from danieldk/pytorch-bin-1.7.1
python3Packages.pytorch-bin: 1.7.0 -> 1.7.1
2020-12-16 13:38:11 +01:00
Daniël de Kok
b9c76212fd python3Packages.pytorch: 1.7.0 -> 1.7.1
Changelog:
https://github.com/pytorch/pytorch/releases/tag/v1.7.1
2020-12-11 15:51:16 +01:00
Daniël de Kok
b51d8fc442 python3Packages.pytorch-bin: 1.7.0 -> 1.7.1
This also adds Python 3.9 compatibility.
2020-12-11 06:56:05 +01:00
Daniël de Kok
75bbba8cee python3Packages.pytorch: add danieldk as a maintainer 2020-12-04 13:38:28 +01:00
Daniël de Kok
7e629cc3ae python3Packages.pytorch: Fix CMake files for split outputs
Fixes #102146
2020-12-03 08:30:18 +01:00
Graham Christensen
bc49a0815a
utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
Daniël de Kok
5e93492b7f
Merge pull request #101917 from danieldk/pytorch-1.7.0
python3Packages.pytorch: 1.6.0 -> 1.7.0
2020-11-11 11:51:20 +01:00
Daniël de Kok
92041430d4 python3Packages.pytorch-bin: 1.6.0 -> 1.7.0
Changelog:

https://github.com/pytorch/pytorch/releases/tag/v1.7.0
2020-10-28 14:04:31 +01:00
Daniël de Kok
4ac0258cd7 python3Packages.pytorch: 1.6.0 -> 1.7.0
Changelog:

https://github.com/pytorch/pytorch/releases/tag/v1.7.0
2020-10-28 11:58:55 +01:00
Matthew Bauer
c85fc341b0 pytorch: update to use passthru's for checks
This makes the checks a little easier to understand - we can just
check it in the passthru. Also increase major check for cuda 11.
2020-09-10 14:23:15 -05:00
Daniël de Kok
33b21aec60 pytorch-bin: init at 1.6.0 2020-08-30 11:12:16 -07:00
Daniël de Kok
a4ed797948 python3Packages.pytorch: remove oneDNN dependency
oneDNN was added as a dependency, but it is not actually used by
PyTorch. PyTorch uses oneDNN from the vendored iDeep dependency.

Using a system-provided oneDNN is currently not a supported build
option.
2020-08-26 10:55:52 +02:00
Daniël de Kok
bc7b404b1a python3Packages.pytorch: fix library names in lib output on Darwin
The library name fixup was attempted on the dev output, whereas it should be
applied to the lib output.
2020-08-08 10:36:48 +02:00
Daniël de Kok
6ffc0fd601 python3Packages.pytorch: fix Darwin build by disabling GCD
PyTorch 1.6.0 has updated the vendored pthreadpool library, which has recently
added support for Grand Central Dispatch. Unfortunately, it uses functionality
(DISPATCH_APPLY_AUTO) that is only available since macOS 10.13, whereas we are
still using 10.12 libraries.

We can't directly pass through option to vendored libraries, since the setup.py
scripts creates/filters the options that are passed to CMake. So, instead, this
adds a small patch that disables the GCD functionality in pthreadpool.
2020-08-08 10:36:48 +02:00
Daniël de Kok
c67ba72dd8 python3Packages.pytorch: 1.5.1 -> 1.6.0
Changelog:
https://github.com/pytorch/pytorch/releases/tag/v1.6.0
2020-07-31 10:58:45 -07:00
Daniël de Kok
2611e96bf3 python3Packages.pytorch: create separate lib output
At some point pytorch.dev was added to expose the libtorch headers and
libraries to non-Python users of libtorch. However, this output
currently has two disadvantages:

1. An application that compiles against the dev output will also have
   the libtorch header files in its closure. This is not so nice when
   e.g. building Docker images of applications that use libtorch.
2. The dev output has a large transitive closure with many dependencies
   that are not necessary when compiling against libtorch.

This change adds the `lib` output so that applications that only link
against libtorch libraries have a small closure.

Before this change, the libtorch dependency adds 746MiB:

% nix path-info -S `realpath result-dev`
/nix/store/10rmy81bjk628sfpbj2szxlws6brq1xn-python3.8-pytorch-1.5.1-dev   782203848

With this change it is reduced to 196MiB:

% nix path-info -S `realpath result-lib`
/nix/store/bck65lf0z7gdhcf89w1zs5nz333lhgwa-python3.8-pytorch-1.5.1-lib   205865056
2020-07-12 08:34:19 +02:00
Daniël de Kok
5c80cdeb1a python3Packages.pytorch: fix AArch64 build
aarch64-linux builds fail because of the use of opcodes in QNNPACK
that the GNU assembpler does not support. This change cherry-picks an
upstream patch that fixes this. See:

https://github.com/pytorch/pytorch/issues/33124
https://github.com/pytorch/pytorch/pull/40584
2020-06-30 09:25:45 +02:00
Daniël de Kok
d144f2dfda python3Packages.pytorch: 1.5.0 -> 1.5.1
Changelog:

https://github.com/pytorch/pytorch/tree/v1.5.1
2020-06-30 08:01:39 +02:00
Guillaume Desforges
0574ace715 pythonPackages.pytorch: 1.4.1 -> 1.5.0
Fixes previous bugs that required a patch
Fixes CUDA build, see https://github.com/NixOS/nixpkgs/issues/89403
2020-06-08 11:39:23 -07:00
Benjamin Hipple
ecef2975e3 python3Packages.pytorch: reference dnnl by new name oneDNN 2020-05-09 14:46:40 -04:00
Benjamin Hipple
fb5bb25c10 python3Packages.pytorch: fixup builds with MKL
- Pass `blas.provider` into `buildInputs`, so that CMake can find the actual
  `mkl` for inspection of its cmake files and headers.

- Add `USE_MKL` correctly when the blas provider is `mkl`.

- Use the MKLDNN and MKLDNN_CBLAS flags by default, since `mkldnn` is FOSS and
  always available..

- Remove a patch for MKL 2019, since we've moved to 2020.

- Add a pythonImportsCheck for "torch" as a basic sanity-check

- Removed some unused variables at the top of the file
2020-05-09 13:30:54 -04:00
Sam Stites
cc245fdcd5 pytorch: 1.2.0 -> 1.4.1
Co-authored-by: Benjamin Hipple <bhipple@protonmail.com>
2020-05-09 13:30:54 -04:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Anders Kaseorg
3cd8ce3bce treewide: Fix unsafe concatenation of $LD_LIBRARY_PATH
Naive concatenation of $LD_LIBRARY_PATH can result in an empty
colon-delimited segment; this tells glibc to load libraries from the
current directory, which is definitely wrong, and may be a security
vulnerability if the current directory is untrusted.  (See #67234, for
example.)  Fix this throughout the tree.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-01-15 09:47:03 +01:00
Sam Stites
dfa8e8b9bc python3Packages.pytorch: 1.0.0 -> 1.2.0 2019-10-23 10:57:43 -07:00
Linus Heckemann
5aa4b19946 treewide: mark some broken packages as broken
Refs:
e6754980264fe927320d5ff2dbd24ca4fac9a160
1e9cc5b9844ef603fe160e9f671178f96200774f
793a2fe1e8bb886ca2096c5904e1193dc3268b6d
c19cf65261639f749012454932a532aa7c681e4b
f6544d618f30fae0bc4798c4387a8c7c9c047a7c
2019-10-08 17:14:26 +02:00
Jonathan Ringer
02648a6cc1 python3Packages.pytorch: fix build 2019-09-29 11:18:58 +02:00
Anders Kaseorg
27d13628ee pytorch: Move cudatoolkit to nativeBuildInputs
nvcc must be available in PATH at build time; otherwise CUDA support
will be disabled.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-04-27 07:49:42 +02:00
Tom Hunger
488230c253 pytorch: Use nativeBuildInputs to specify binary build dependencies. 2019-03-07 09:41:43 +01:00
Austin Seipp
af53114a09 pythonPackages.pytorch: fix Intel MKL BLAS compile failure
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-12-25 10:49:40 -06:00
Austin Seipp
60176e005d pythonPackages.pytorch: add libnuma dep on Linux
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-12-25 10:49:40 -06:00
Austin Seipp
79d21285dd pythonPackages.pytorch: meta touch up, add myself as maintainer
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-12-25 10:49:39 -06:00
Austin Seipp
6fcebb6427 pythonPackages.pytorch: fix spurious test failures
This was fixed upstream already -- these tests ensure multi-GPU
functionality works, and thus requires multiple GPUs.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-12-25 10:49:39 -06:00
Austin Seipp
c6ecb3887f pythonPackages.pytorch: fix weirdly broken wheel version number
Otherwise, the wheel gets built with invalid metadata -- causing
'torch >= 1.0.0' to be unsatisfiable in other python packages, for
instance.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-12-25 10:49:39 -06:00
Kai Wohlfahrt
be96560327 pythonPackages.pytorch: 0.4.1 -> 1.0.0
`thd_distributed` is broken just like `distributed` is. `cpp_extensions`
is broken upstream now, it seems? In the future it can hopefully be
re-enabled.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-12-25 10:49:39 -06:00
Kai Wohlfahrt
4d8cf0b84e pytorch: disable distributed tests
These fail with sandboxing
2018-11-07 17:09:54 +00:00
Dmitry Vyal
f7f8b60ace pytorch-0.4 rpath fix, some tests reenabled 2018-09-23 09:36:32 +02:00
teh
8c3514609b pytorch: 0.4.0 -> 0.4.1 (#45773)
Also disable tests that fail in sandbox.
2018-08-30 17:30:29 +02:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00