Commit Graph

34 Commits

Author SHA1 Message Date
Someone Serge
2c51064b0b treewide: remove cudatoolkit.cc references 2024-04-13 14:24:39 +00:00
Ben Darwin
8969c706d2 mxnet: opencv3 -> opencv4 2023-10-10 17:31:32 -04:00
oddlama
3d0ab76d81
mxnet: fix darwin build 2023-07-29 13:28:30 +02:00
Someone Serge
471dbe9bcf
treewide: consume config.cudaSupport as required
Eliminate uses of `config.cudaSupport or false` and alike, since the
option is now declared in config.nix with a default value

fd .nix -t f -x sed 's/config\.cudaSupport or false, cudaPackages [?] [{][}]/config.cudaSupport, cudaPackages ? { }/' '{}' -i
fd .nix -t f -x sed 's/config\.cudaSupport or false/config.cudaSupport/' '{}' -i
fd .nix -t f -x sed 's/cudaSupport = pkgs.config.cudaSupport/inherit (pkgs.config) cudaSupport/' '{}' -i
fd .nix -t f -x sed 's/cudaSupport = config.cudaSupport/inherit (config) cudaSupport/' '{}' -i
2023-07-20 18:08:19 +03:00
Someone Serge
d378cc6fb2
opencv4: respect config.cudaCapabilities
This is needed for faster builds when debugging the opencv derivation,
and it's more consistent with other cuda-enabled packages

-DCUDA_GENERATION seems to expect architecture names, so we refactor
cudaFlags to facilitate easier extraction of the configured archnames
2023-03-04 00:59:21 +02:00
Connor Baker
dddc103fdb cudaFlags: rewrite to capture all architechtures and fix #215436 2023-02-23 16:34:12 -05:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
2023-02-22 21:23:04 +02:00
Fabián Heredia Montiel
0cf5d85f0c treewide: add gcc12 flags 2023-01-27 21:20:52 -06:00
Jason Miller
8392158289
cudaPackages: add cudaFlags (#205351)
* cudaPackages: add cudaFlags

* cudaNames -> cudaMicroarchitectureNames

* update documentation, remove config for static library removal

* doc link added to flags

* fix whitespace in assignment
2022-12-16 22:00:36 -08:00
Theodore Ni
5ac4f45f72
mxnet: patch to fix build on aarch64-darwin
The patches autodetect when the system is x86 and supports SSE.
2022-09-24 17:49:23 -07:00
Theodore Ni
c13952175c
mxnet: 1.8.0 -> 1.9.1 2022-09-22 16:49:40 -07:00
Someone Serge
b96c7caea6
mxnet: mark cuda build as broken 2022-05-18 09:48:45 +03:00
Frederik Rietdijk
1d63f89caa cudaPackages: overhaul of how we package cuda packages
There are many different versions of the `cudatoolkit` and related
cuda packages, and it can be tricky to ensure they remain compatible.

- `cudaPackages` is now a package set with `cudatoolkit`, `cudnn`, `cutensor`, `nccl`, as well as `cudatoolkit` split into smaller packages ("redist");
- expressions should now use `cudaPackages` as parameter instead of the individual cuda packages;
- `makeScope` is now used, so it is possible to use `.overrideScope'` to set e.g. a different `cudnn` version;
- `release-cuda.nix` is introduced to easily evaluate cuda packages using hydra.
2022-04-09 08:50:22 +02:00
Someone Serge
565201d769
python310Packages.mxnet: mark cudaSupport broken 2022-04-06 00:44:36 +03:00
Someone Serge
226fabb1a6
python3Packages.mxnet: pass explicit cuda gencodes 2022-04-06 00:44:35 +03:00
Dmitry Kalinkin
51bf009063
mxnet: 1.6.0 -> 1.8.0 2021-11-28 17:27:31 -05:00
Dmitry Kalinkin
b39504da72
mxnet: fix for gcc10+, enable on darwin 2021-11-28 17:27:11 -05: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
Ben Siraphob
3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Jonathan Ringer
3a4fec8232 mxnet: use blas.provider, fix build 2020-05-28 15:08:47 -07:00
R. RyanTM
a930faab93 mxnet: 1.4.1 -> 1.6.0 2020-05-02 10:17:38 +02:00
Matthew Bauer
1c8aba8334 treewide: use blas and lapack
This makes packages use lapack and blas, which can wrap different
BLAS/LAPACK implementations.

treewide: cleanup from blas/lapack changes

A few issues in the original treewide:

- can’t assume blas64 is a bool
- unused commented code
2020-04-17 16:24:09 -05:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Nikolay Amiantov
1deb406ac2 mxnet: 1.2.1 -> 1.4.1 2019-06-02 21:50:06 +03:00
Julien Dehos
a13f5d0da1 mxnet: fix cuda support enabled build (#48781) 2019-04-12 10:31:22 +00:00
Jan Malakhovski
49148a3ea2 mxnet: move defaults to package file 2019-02-03 15:32:14 +00:00
Daniël de Kok
590ce7d1ae mxnet: fix library dependencies.
- mxnet now builds the open source MKL DNN library. However, this
  was not included with the build.
- mxnet builds its own OpenMP library, even when OpenMP is provided
  by the system. This leads to problems, so remove the included
  OpenMP implementation:

  https://github.com/apache/incubator-mxnet/pull/12160
2018-09-04 20:27:25 +02:00
Daniël de Kok
93a5947158 mxnet: 1.1.0 -> 1.2.1 (#46026)
Update and fix the build:

- Perl is a build-time requirement.
- Fix hardcoded /bin/bash invocation.
2018-09-04 11:37:54 +02:00
Nikolay Amiantov
3179002f61 mxnet: 0.11.0 -> 1.1.0 2018-02-25 22:24:09 +03:00
Nikolay Amiantov
08f8ad26b3 treewide: unquote homepage in my packages
I don't like this personally but we have #27809 as a precedent.
2018-02-25 22:24:08 +03:00
Nikolay Amiantov
67bbe467a4 mxnet: disable GPU autodetection 2017-09-25 22:46:44 +03:00
Nikolay Amiantov
c71d8a1aeb mxnet: init at 0.11.0 2017-09-16 04:40:55 +03:00