Files
2025-10-23 16:47:29 -07:00

39 lines
700 B
Nix

{
buildRedist,
cudaOlder,
lib,
numactl,
rdma-core,
}:
buildRedist {
redistName = "cuda";
pname = "libcufile";
outputs = [
"out"
"dev"
"include"
"lib"
"static"
];
allowFHSReferences = true;
# TODO(@connorbaker): At some point before 12.6, libcufile depends on libcublas.
buildInputs = [
numactl
rdma-core
];
# Before 11.7 libcufile depends on itself for some reason.
autoPatchelfIgnoreMissingDeps = [
"libcuda.so.1"
]
++ lib.optionals (cudaOlder "11.7") [ "libcufile.so.0" ];
meta = {
description = "Library to leverage GDS technology";
homepage = "https://docs.nvidia.com/gpudirect-storage/api-reference-guide";
};
}