Commit Graph

54 Commits

Author SHA1 Message Date
Jörg Thalheim
57ae5de960
Merge pull request #118964 from danieldk/pytorch-no-tests
python3Packages.pytorch: disable building of tests
2021-04-11 15:22:13 +01:00
Daniël de Kok
0603c25738 python3Packages.pytorch: remove unused USE_MKL variable
PyTorch will always try to find MKL, USE_MKL does not do anything
anymore. So, we have to rely on MKL not being in the build
environment.
2021-04-10 08:10:28 +02:00
Daniël de Kok
209f4678f2 python3Packages.pytorch: disable building of tests
- We do not run them.
- The test binaries are installed into site-packages by default.
2021-04-10 08:09:38 +02:00
Daniël de Kok
4f876309fe python3Packages.pytorch: convert boolean environment variables
We relied on the stdenv serialization for booleans. However, the
PyTorch configure script expects 0/1. So convert the options to 0/1
values.
2021-04-10 08:08:08 +02:00
Daniël de Kok
9917d918d6 python3Packages.pytorch: 1.8.0 -> 1.8.1
Changelog:
https://github.com/pytorch/pytorch/releases/tag/v1.8.1
2021-03-25 17:57:11 +01:00
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
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
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
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
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
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
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
Vladimír Čunát
2059bf9e39
Merge older staging with added firefox-related updates 2018-06-29 21:06:39 +02:00
Ryan Mulligan
fce8f26af6 treewide: http -> https (#42665) 2018-06-27 22:12:57 +02:00
Frederik Rietdijk
ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00
Anders Kaseorg
d2f7acf30c pytorch: 0.3.1 -> 0.4.0
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-05-13 14:02:08 -04:00