Samuel Ainsworth
cd07e0258c
Merge pull request #223664 from SomeoneSerge/cuda-libstdcpp
...
cudaPackages: use the same libstdc++ as the rest of nixpkgs
2023-04-07 11:46:55 -04:00
Someone Serge
3af299f014
cudaPackages.cudatoolkit: hotfix the libstdc++ mismatch caused by cudatoolkit-vendored copy of the library
2023-04-07 00:28:02 +03:00
Someone Serge
bd62420fd3
cudaPackages: use same libstdc++ as the rest of nixpkgs
2023-04-07 00:28:02 +03:00
Someone Serge
b100b0a1cc
cudaPackages_11_8: un-break after migrating to autoPatchelfHook
2023-04-06 22:30:11 +03:00
Someone Serge
221fe82378
cudaPackages_12.cudatoolkit: fix after migrating to autoPatchelfHook
2023-04-06 22:30:10 +03:00
Someone Serge
868c289955
cudaPackages.cudatoolkit: move pre-cuda11 deps up, to reorder chronologically
2023-04-06 22:30:10 +03:00
Someone Serge
15848ffa42
cudaPackages.cudatoolkit: rm preFixup rpath code
...
...the same logic is handled by autoPatchelf
2023-04-02 01:09:34 +03:00
Someone Serge
6dc90880de
cudaPackages.cudatoolkit: use autoPatchelf
...
...to ensure correctness (in the sense that all DT_NEEDED libraries are
verified to be discoverable through the runpaths)
2023-04-02 01:08:41 +03:00
Connor Baker
bdfb61e117
cudaPackages: use -Xfatbin=-compress-all; prune default cudaCapabilities
2023-03-10 23:10:57 -05:00
Someone Serge
ac64f07f9c
cudaPackages.cudaFlags: drop unused capabilitiesAndForward
2023-03-04 03:14:37 +02:00
Someone Serge
0c25f5aa7f
cudaPackages.cudatoolkit: remove unused gcc argument
2023-03-04 03:14:37 +02:00
Someone Serge
8bf5f5ac89
magma: use CMAKE_CUDA_ARCHITECTURES directly
2023-03-04 01:04:25 +02:00
Someone
c376c54f70
cudaPackages.cudatoolkit: refactor inheriting passthru.cc
...
Co-authored-by: Connor Baker <ConnorBaker01@Gmail.com>
2023-03-04 01:04:25 +02:00
Someone Serge
17248123b6
cudaPackages_12: use gcc12
2023-03-04 01:04:25 +02:00
Someone Serge
5f4bdbe6c3
python3Packages.tensorflow: fix `GLIBCXX_3.4.30' not found
...
Make tensorflow (and a bunch of ther things) use CUDA-compatible
toolchain. Introduces cudaPackages.backendStdenv
2023-03-04 01:03:51 +02: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
Someone Serge
cf7fb1d08f
python3Packages.tensorflow: add cudaCapabilities argument
...
Rearrange tensorflow to allow overriding cudaCapabilities.
This is needed when debugging the tensorflow derivation
2023-03-04 00:59:21 +02:00
Someone Serge
94bbbb0471
cudaPackages: point nvcc at a compatible -ccbin
...
This is a hot-fix to un-break cuda-enabled packages (like tensorflow,
jaxlib, faiss, opencv, ...) after the gcc11->gcc12 bump. We should
probably build the whole downstream packages with a compatible stdenv
(such as gcc11Stdenv for cudaPackages_11), but just pointing nvcc at the
right compiler seems to do the trick
We already used this hack for non-redist cudatoolkit. Now we use it more
consistently.
This commit also re-links cuda packages against libstdc++ from the same
"compatible" gcc, rather than the current stdenv. We didn't test if this
is necessary -> need to revise in further PRs.
NOTE: long-term we should make it possible to override -ccbin and use
e.g. clang
2023-03-04 00:59:20 +02:00
Connor Baker
dddc103fdb
cudaFlags: rewrite to capture all architechtures and fix #215436
2023-02-23 16:34:12 -05:00
Samuel Ainsworth
dc3ac9dc42
Merge pull request #217322 from ConnorBaker/cudatoolkit-prune-broken-symlinks
...
cudatoolkit: prune broken symlinks in `postFixup`
2023-02-22 22:42:42 -05:00
Connor Baker
c181273423
cudaPackages_12: 12.0.0 -> 12.0.1
2023-02-22 13:19:49 -05:00
Connor Baker
476de5c070
cudatoolkit: prune broken symlinks in postFixup
...
As cudatoolkit is currently written, 11.8 introduces a broken symlink in `include` (also named `include`) and in `lib` (named `lib64`).
This trips up some consumers, like `tensorflow-gpu`.
2023-02-21 20:39:00 -05:00
Samuel Ainsworth
035e7d3d75
cudaPackages_12: init at 12.0.0
2023-01-11 00:36:36 +00:00
Samuel Ainsworth
9756d10158
cudaPackages.cudatoolkit: python27 -> python3
...
python27 was recently marked as insecure, breaking cudaPackages.cudatoolkit. This commit has been successfully tested against the earliest supported, 10.0, and the latest supported, 11.8, with the assumption that intermediate versions ought to work as well.
2023-01-08 03:47:26 +00: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
Someone Serge
27f703b1f8
cudaPackages_11_8: fix missing manifest
...
...fixes missing attributes, like cudaPackages_11_8.libcublas
2022-11-09 21:56:00 +02:00
David Guibert
3eae0cc072
cudatookit: 11.8 + redistrib manifest
2022-10-14 12:10:21 +02:00
David Guibert
a0e9973e64
cudatoolkit: use if instead of versionOlder+versionAtLeast
2022-10-05 08:06:39 +02:00
David Guibert
df956cf4c1
Revert "Revert "cudatoolkit_11_7: init at 11.7.0""
...
This reverts commit 90c505790c
.
2022-10-04 08:26:28 +02:00
Someone Serge
92c049659a
cudaPackages_11_6: better message on why gcc10
2022-04-21 01:25:33 +03:00
Someone Serge
e8f3e829a7
cudaPackages: 11_5 -> 11_6, recover from gcc10->gcc11
...
11_5 is not compatible with glibc2.4 which became the default after
gcc10->gcc11 bump
11_6 has a fix for glibc2.4 support
cudaPackages attribute now points at cudaPackages_11_6
2022-04-20 22:48:50 +03:00
Samuel Ainsworth
1344d5fe60
cudaPackages_11_{4,5,6}.cudatoolkit: gcc10 -> gcc11
2022-04-19 05:34:38 +00: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
386fb0c3cf
cudatoolkit: 11.6 -> 11.5
2022-04-06 01:11:46 +03:00
Someone Serge
7e780e7312
cudatoolkit_11: 11.4 -> 11.6
2022-04-06 00:44:37 +03:00
Someone Serge
e5e38773a5
cudatoolkit: 10.2 -> 11.4
...
also downgrade cudatoolkit_11: 11.5 -> 11.4
2022-04-06 00:44:35 +03:00
Samuel Ainsworth
e1b9a52536
cudatoolkit: add note about alias upgrades
2022-04-01 01:59:02 +00:00
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