nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildRedist,
3 cudaOlder,
4 lib,
5 numactl,
6 rdma-core,
7}:
8buildRedist {
9 redistName = "cuda";
10 pname = "libcufile";
11
12 outputs = [
13 "out"
14 "dev"
15 "include"
16 "lib"
17 "static"
18 ];
19
20 allowFHSReferences = true;
21
22 # TODO(@connorbaker): At some point before 12.6, libcufile depends on libcublas.
23 buildInputs = [
24 numactl
25 rdma-core
26 ];
27
28 # Before 11.7 libcufile depends on itself for some reason.
29 autoPatchelfIgnoreMissingDeps = [
30 "libcuda.so.1"
31 ]
32 ++ lib.optionals (cudaOlder "11.7") [ "libcufile.so.0" ];
33
34 meta = {
35 description = "Library to leverage GDS technology";
36 homepage = "https://docs.nvidia.com/gpudirect-storage/api-reference-guide";
37 };
38}