8af89d0875
Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
39 lines
700 B
Nix
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";
|
|
};
|
|
}
|