Commit Graph

132 Commits

Author SHA1 Message Date
Fabián Heredia Montiel
d78f645ea1 cudatoolkit_11: cudatoolkit_11_6 → cudatoolkit_11_5 2022-03-29 21:39:45 -06:00
Fabián Heredia Montiel
233408b810 cudatoolkit_11: cudatoolkit_11_4 → cudatoolkit_11_6 2022-03-20 14:56:20 -06:00
Matt Wittmann
8b8e0b4cac
cudatoolkit: expose compute-sanitizer, nsys utilities (#153542)
* cudatoolkit: expose compute-sanitizer, nsys commands

* Patch compute-sanitizer binary using addOpenGLRunpath

* Revert "Patch compute-sanitizer binary using addOpenGLRunpath"

This reverts commit 82aa57071a.

* Patch compute-sanitizer libs using addOpenGLRunpath

* Patch nsys libs

* Call addOpenGLRunpath on nsys libs

* Clean weird quotation

* Use $ORIGIN in rpath

* Clean unnecessary string interpolation

* Replace while-read-find with for loop

* Move rpath def to preFixup, clean
2022-03-15 12:16:06 -07:00
Samuel Ainsworth
03a4f90f69 cudatoolkit_11_6: 11.6.0 -> 11.6.1 2022-03-04 03:21:17 +00:00
larsr
657baec038
cudatoolkit: added 11.6.0 2022-02-04 13:48:32 +01:00
David Guibert
2923a0fbab cudatoolkit: 11.4.1 -> 11.4.2 2021-10-21 11:24:27 +02:00
David Guibert
8316ec9e4e cudatoolkit: add 11.5.0 2021-10-21 11:03:02 +02:00
David Guibert
7f98fe1ebd cudatoolkit: make 11_4 as default 11 2021-09-28 13:48:47 +02:00
David Guibert
e6da69e878 cudatolkit: fix documentation into $doc output 2021-09-25 14:51:43 +02:00
Samuel Ainsworth
0981d9473f cudatoolkit_11_{3,4}: init at 11.{3,4}.1 2021-09-21 07:03:01 +00:00
Ryan Burns
810e595e4e cudatoolkit: fix build
This is a workaround for a segfault in patchelf
when attempting to set an empty rpath
2021-09-16 22:30:54 -07:00
AndersonTorres
e9e5f5f84d Change all alsaLib references to alsa-lib 2021-06-10 01:12:49 -03:00
Andy Chun @noneucat
fe42dee030 cudatoolkit: set CUDA_HOST_COMPILER cmake flag to supported gcc version 2021-05-16 04:42:15 -07:00
Daniël de Kok
f75286e063 cudatoolkit-{9,9_0,9_1,9_2}: remove
Remove old CUDA toolkits (and corresponding CuDNN versions).

- Not supported by upstream anymore.
- We do not use them in nixpkgs.
- We do not test or actively maintain them.
- Anything but ancient GPUs is supported by newer toolkits.

Fixes #107131.
2021-04-18 11:55:10 +02:00
Daniël de Kok
3c815cf0e6 cudatoolkit-{6,6_5,7,7_5,8}: remove
Remove ancient CUDA toolkits (and corresponding CuDNN versions):

- Not supported by upstream anymore.
- We do not use them in nixpkgs.
- We do not test or actively maintain them.
- Anything but ancient GPUs is supported by newer toolkits.
2021-02-14 11:58:00 +01:00
Daniël de Kok
18b5919d81 cudatoolkit_11: cudatoolkit_11_1 -> cudatoolkit_11_2 2021-02-10 13:28:53 +01:00
Daniël de Kok
8e7955e5bf cudatoolkit_11_2: init at 11.2.1 2021-02-10 13:21:56 +01:00
Ben Siraphob
acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Michael Del Casino
fc086af382
Fix trailing whitespace 2020-12-30 21:35:22 -05:00
Michael Del Casino
cf81348264
CUDA Toolkit 11.1.1 for 455.83 Driver in 20.0.9
NixOS 20.0.9's default NVIDIA video driver version is 455.38, which supports CUDA 11.1.1. 

**Things to note:**
- [ ] Users with nvtop installed may need to upgrade their nvtop installation due to caching behavior
2020-12-30 18:41:07 -05:00
Thomas Bereknyei
d2a6b1d55a cudatoolkit: install missing libraries for nvprof (10.1 and 10.2) 2020-09-12 08:31:41 +02:00
Matthew Bauer
164f8024e9 cudatoolkit: init v11.0.3 2020-08-19 13:34:52 -05:00
Maximilian Bosch
d0743cc2f6
cudatoolkit_7*: build w/gcc6 2020-01-28 20:11:01 +01:00
Maximilian Bosch
7a5c8cf8b8
cudatoolkit_8: build with gcc6 2020-01-28 20:11:00 +01:00
Fernando J Pando
7a01e9096e cudatoolkit: 10.2.89 2019-12-24 17:05:10 -05:00
Andreas Rammhold
78816a875b
cudatoolkit: move the dependencies into a common expression 2019-11-29 03:57:23 +12:00
Andreas Rammhold
464ff0aa24
Revert "cudatoolkit: move the dependencies into a common expression"
This reverts commit ceafd896f5.
2019-11-29 03:49:34 +12:00
Andreas Rammhold
ceafd896f5
cudatoolkit: move the dependencies into a common expression
This has the benefit of being able to override all the inputs to the
build where you were previously only able to override the entire package
set (if at all).
2019-11-26 12:28:45 +01:00
Andreas Rammhold
1e72fa5158
Merge pull request #68954 from dguibert/dg/cudatoolkit_10_1
cudatoolkit: add 10.1.243
2019-11-06 08:58:30 +01:00
Joachim Fasting
bad07dfac5
tree-wide: replace uses of splitString "." with lib.versions
Quoting from the splitString docstring:

   NOTE: this function is not performant and should never be used.

This replaces trivial uses of splitString for splitting version
strings with the (potentially builtin) splitVersion.
2019-09-26 17:42:49 +02:00
David Guibert
78aff37ff1 cudatolkit,cuddn: make 10_1 as default 2019-09-17 15:19:57 +02:00
David Guibert
4a3e7f83f7 cudatoolkit: add 10.1.243 2019-09-17 09:33:06 +02: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
worldofpeace
b1bc0645ea gdk-pixbuf: rename from gdk_pixbuf 2019-07-22 18:50:57 -04:00
Ambroz Bizjak
28a0918916 Add driver library path to some packages to find CUDA libraries.
This is to avoid relying on LD_LIBRARY_PATH for finding the CUDA driver libraries.
2019-05-22 18:34:09 +02:00
(cdep)illabout
7942c79c69 Fix cudatoolkit building on non-sandboxed systems
This fixes cudatoolkit building on non-sandboxed system.

The cudatoolkit tests run each of the CUDA binaries as a small smoke
test just to make sure they all can at least somewhat run.

However, the `cuda-gdb` binary doesn't run correctly on non-sandboxed
systems because it picks up versions of Python from /usr/lib.

This PR disables the smoke tests for now.  They should be re-enabled
when we figure out how to make them work for cuda-gdb on non-sandboxed
systems.

This PR is for #57939.
2019-03-22 19:32:24 +01:00
Josef Kemetmüller
3e0723f2b2 cudatoolkit_9_0: Add later released patch updates 2019-02-19 23:23:35 +01:00
Josef Kemetmüller
ec2c972acc cudatoolkit: Fix GUI applications
This fixes the following error when starting nvvp or nsight:

```
(java:23876): Gtk-WARNING **: 19:12:17.777: Unable to locate theme engine in module_path: "adwaita",

A fatal error has been detected by the Java Runtime Environment:

 SIGSEGV (0xb) at pc=0x00007f957f7b67fe, pid=23876, tid=140281059333888

JRE version: Java(TM) SE Runtime Environment (8.0_77-b03) (build 1.8.0_77-b03)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.77-b03 mixed mode linux-amd64 compressed oops)
Problematic frame:
C  [libpixbufloader-bmp.so+0x27fe]  gdk_pixbuf__bmp_image_load_increment+0xeee
```

Since GDK_PIXBUF_MODULE_FILE should match the version we actually link
to, we override the environment variable using the one provided by the
gdk_pixbuf setup-hook.
2019-02-19 23:23:35 +01:00
Josef Kemetmüller
f483974489 cudatoolkit: Fix building of older versions
Versions prior to 9.0 did not build. Additionally we add some
smoke tests for the binaries in $out/bin.
2019-02-19 23:23:16 +01:00
Josef Kemetmüller
c8fcd68662 cudatoolkit: Fixup cuda-gdb ncurses version
The ncurses upgrade to libncurses.so.6 did silently break cuda-gdb quite
some time ago.
2019-02-19 00:47:07 +01:00
Christian Kögler
9fc6345a91 cudatoolkit: fix nvprof 2019-01-03 13:56:46 +01:00
Jason Hilton
0b95e5dbf7 cudatoolkit: build versions 9.2+ with gcc7
closes issue #50040
2018-11-10 10:57:13 +01:00
Patrick Hilhorst
4cfeb9da53
cudatoolkit, cudnn: many updates
cudatoolkit_9_1: 9.1.85.1 -> 9.1.85.3
cudatoolkit_9_2: init at 9.2.148.1
cudatoolkit_9: 9.1.85.1 -> 9.2.148.1
cudatoolkit_10, cudatoolkit_10_0: init at 10.0.130

cudnn_cudatoolkit_9_0: 7.0.5 -> 7.3.0
cudnn_cudatoolkit_9_1: init at 7.1.3
cudnn_cudatoolkit_9_2: init at 7.2.1
cudnn_cudatoolkit_9: 7.0.5 (9.1) -> 7.3.1 (9.2)
cudnn_cudatoolkit_10, cudnn_cudatoolkit_10_0: init at 7.3.1
2018-10-30 19:09:20 +01:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Jean-Philippe Bernardy
397c4b7748 cudatoolkit: add 9.0
This version is a dependency of tensorflow binaries
2018-05-31 22:21:54 +02:00
Jean-Philippe Bernardy
9e730ee254 renaming cudatoolkit version numbers 2018-05-31 22:21:53 +02:00
Anders Kaseorg
6f073154da Give working advice for running nix-prefetch-url
nix-prefetch-url file://… requires a full path.  Suggest an invocation
that will provide one.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-03-04 17:28:36 +00:00
Nikolay Amiantov
efe836160f cudatoolkit: 9.0.176 -> 9.1.85.1 2018-02-25 22:24:09 +03:00
Nikolay Amiantov
cac556be8d cudatoolkit8: 8.0.61 -> 8.0.88
This requires a refactor so that we support binary patches from NVIDIA.
2018-02-25 22:24:09 +03:00
Franz Pletz
cd7c8e42c6
cudatoolkit: fix build with newer glibc versions
Packages that use CUDA would fail to build with missing defines.
2017-12-14 16:03:08 +01:00
Nikolay Amiantov
7cf6010fd3 cudatoolkit: use recommended gcc by default
This way one may build packages requiring old CUDA Toolkit with usual stdenv;
only bits which are compiled with NVCC would use older GCC.
2017-10-19 12:47:30 +03:00
Nikolay Amiantov
fe7c7a852d cudatoolkit9: init at 9.0.176
Make CUDA Toolkit 9 the default choice.
2017-10-19 12:47:30 +03:00
Eelco Dolstra
bb1c9b027d cudatoolkit: Move libcudart to a separate output
This prevents opensubdiv (and thus blender) from having all of
cudatoolkit in its closure.
2017-09-16 22:45:14 +02:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Nikolay Amiantov
044a49febf cudatoolkit: remove OpenCL library
libOpenCL is provided by ocl-icd with implementation in NVIDIA driver instead.
2017-02-28 17:22:06 +03:00
Eelco Dolstra
c2d4b14637 cudatoolkit: Multiple output improvements
* Add a "lib" output containing (for the moment) only libOpenCL. This
  reduces the closure size of opensubdiv and blender by about 2 GiB.

* Add a "doc" output (about ~200 MiB).

* Remove the "sdk" output since it was worse than useless: all of the
  "sdk" output was also included in "out", so it actually increased
  disk space usage.

* Run patchelf on ELF binaries only.
2017-02-28 11:21:33 +01:00
Eelco Dolstra
b5c619cbfe cudatoolkit: 8.0.44 -> 8.0.61 2017-02-28 11:21:33 +01:00
Frederik Rietdijk
ccf4d5e3d5 cudatoolkit5: remove this ancient version 2017-02-13 14:42:24 +01:00
Eelco Dolstra
5ecb427368 cudatoolkit: Add 8.0.44 2016-11-01 22:52:26 +01:00
Eelco Dolstra
5ade8fff79 cudatoolkit: Fix building dependent packages
- Set a cmake flag to allow cmake to find CUDA automatically.

- Pass -D_FORCE_INLINES to work around

    /nix/store/8sl4jfs3nq0pkq4gg655s3axrxdx7z29-glibc-2.24-dev/include/string.h: In function 'void* __mempcpy_inline(void*, const void*, size_t)':
    /nix/store/8sl4jfs3nq0pkq4gg655s3axrxdx7z29-glibc-2.24-dev/include/string.h:650:42: error: 'memcpy' was not declared in this scope

  https://github.com/BVLC/caffe/issues/4046

This fixes OpenSubdiv and Blender.
2016-09-17 00:40:41 +02:00
Nikolay Amiantov
87ebab128a replace ${stdenv.cc.cc}/lib occurences 2016-05-01 00:13:23 +03:00
Eelco Dolstra
bd4720a7d6 cudatoolkit: Don't barf on GCC > 4.9
Blender appears to build/run fine with GCC 5.3.
2016-04-08 22:23:14 +02:00
Eelco Dolstra
6d97de951d cudatoolkit: Add version 7.5.18 2016-03-02 21:35:46 +01:00
Eelco Dolstra
6c1e3a82de cudatoolkit: Merge into one file and use callPackages 2016-03-02 21:35:46 +01:00
Vladimír Čunát
88c9f8b574 xlibs: replace occurrences by xorg
This seems to have been confusing people, using both xlibs and xorg, etc.
- Avoided renaming local (and different) xlibs binding in gcc*.
- Fixed cases where both xorg and xlibs were used.
Hopefully everything still works as before.
2015-09-15 12:54:34 +02:00
Bjørn Forsman
22321f2e58 cudatoolkit: don't move $out/include to $out/usr_include
This effectively reverts 86c283824f
("If cuda headers are presented to nix [...]") and all the following
workarounds that was added due to that commit.

As far as I can tell[1] this hack isn't needed anymore. And moving
includes to $out/usr_include causes pain for cudatoolkit users, so
better get rid of it.

In patches that did more than the $out/usr_include workaround, I only
changed the line back to $out/include instead of re-generating the
patches and fully removing the changed line.

[1]: I build tested blender and caffe, and temporarily added
recurseIntoAttrs to rPackages and haskellPackages so that nox-review
could get proper coverage. However, many of the packages do not build
even before this patch. I also built CUDA samples with cudatoolkit7
that ran fine.
2015-09-10 10:35:40 +02:00
Bjørn Forsman
836fa19651 cudatoolkit: fixup path to samples
This is needed for cuda 6.5 or else nsight will not find them. In cuda 7.0 the
samples are already in $out/samples. Older versions do not build due to broken
dependency (python-minimal).
2015-08-18 17:06:42 +02:00
William Casarin
d1590482cf cudatoolkit: generalize derivations, add cuda7
There is not much different between the cudatoolkit
expressions:

  pkgs/development/compilers/cudatoolkit/5.5.nix
  pkgs/development/compilers/cudatoolkit/6.0.nix
  pkgs/development/compilers/cudatoolkit/6.5.nix

This commit removes those and replaces them with

  pkgs/development/compilers/cudatoolkit/generic.nix

and adds cudatoolkit version 7
2015-07-04 17:05:50 -07:00
Aristid Breitkreuz
c6d17dfa24 fix up cudatoolkit 6.5 so that nvprof can run 2015-05-02 12:36:20 +02:00
Eelco Dolstra
6f33aa8465 orig-gcc -> orig-cc 2015-03-04 22:15:46 +01:00
Eelco Dolstra
97fcb33ac2 cudatoolkit: Fix gcc -> cc
Urgh, we shouldn't have renamed gcc to cc...
2015-03-04 22:15:46 +01:00
Eelco Dolstra
ea0d6a7fc0 Add CUDA toolkit 6.5 2015-03-02 00:24:00 +01:00
Eelco Dolstra
2ba9ae0129 Fix bad licenses on CUDA packages
They were marked as "nonfree" rather than "unfree", causing them to be
allowed with allowUnfree = false.
2015-02-15 22:29:47 +01:00
Eric Seidel
f3c6827373 rename all occurrences of stdenv.cc.gcc to stdenv.cc.cc 2015-01-14 20:27:55 -08:00
John Wiegley
28b6fb61e6 Change occurrences of gcc to the more general cc
This is done for the sake of Yosemite, which does not have gcc, and yet
this change is also compatible with Linux.
2014-12-26 11:06:21 -06:00
Daniel Zinn
86c283824f If cuda headers are presented to nix in $out/include they are added to future gcc calls via a -isystem flag. However, cuda does not allow kernel calls from template function if these are located in system-headers. We thus move headers from $out/include to $out/usr_include and add a custom hook to add these headers via -I. 2014-06-23 06:11:34 -07:00
Daniel Zinn
ca0de0f1f7 Added cuda6 compiler as package cudatoolkit6. 2014-06-19 04:24:21 -07:00
Vladimír Čunát
34091bf265 cudatoolkit: fix multiple outputs (close #2466) 2014-06-11 21:32:13 +02:00
David Guibert
42911b1903 cuda: install the SDK using multiple-outputs support 2014-01-29 15:48:55 +01:00
Bjørn Forsman
a74ab8c0a1 cudatoolkit: fix missing dependencies
Some of the java tools failed to run (notably nsight) because of missing
libraries. This fixes it.
2013-08-27 14:11:23 +02:00
Justin Bedo
6c2985e8d7 Update CUDA Toolkit to 5.5 2013-08-27 13:44:56 +02:00
Andres Löh
7aa85ac536 Adding NVIDIA CUDA toolkit and haskell-accelerate-cuda plus deps.
svn path=/nixpkgs/trunk/; revision=34186
2012-05-20 17:38:03 +00:00