nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildRedist,
3 cudaAtLeast,
4 lib,
5 libnvjitlink,
6}:
7buildRedist {
8 redistName = "cuda";
9 pname = "libcusparse";
10
11 outputs = [
12 "out"
13 "dev"
14 "include"
15 "lib"
16 "static"
17 "stubs"
18 ];
19
20 buildInputs =
21 # Dependency from 12.0 and on
22 lib.optionals (cudaAtLeast "12.0") [ libnvjitlink ];
23
24 meta = {
25 description = "GPU-accelerated basic linear algebra subroutines for sparse matrix computations for unstructured sparsity";
26 longDescription = ''
27 The cuSPARSE APIs provides GPU-accelerated basic linear algebra subroutines for sparse matrix computations for
28 unstructured sparsity.
29 '';
30 homepage = "https://developer.nvidia.com/cusparse";
31 changelog = "https://docs.nvidia.com/cuda/cusparse";
32 };
33}