peakperf: Add to overlay, add CUDA deps
This commit is contained in:
parent
871bef56c4
commit
e0fd68a386
2 changed files with 13 additions and 4 deletions
|
@ -20,4 +20,7 @@ _final: prev: {
|
||||||
|
|
||||||
git-repo-go = prev.pkgs.callPackage ../pkgs/git-repo-go { };
|
git-repo-go = prev.pkgs.callPackage ../pkgs/git-repo-go { };
|
||||||
|
|
||||||
|
peakperf = prev.pkgs.callPackage ../pkgs/peakperf {
|
||||||
|
enableCuda = false; # peakperf needs cuda-samples, which is not available in current CUDA. CUDA 11 is broken due to CVEs in freeimage
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,12 +24,18 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ ]
|
[ ]
|
||||||
++ lib.optionals enableCuda [
|
++ lib.optionals enableCuda [
|
||||||
cudaPackages.cudart
|
cudaPackages.cuda_cudart
|
||||||
|
cudaPackages.cudatoolkit
|
||||||
|
cudaPackages.cuda-samples
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs =
|
||||||
cmake
|
[
|
||||||
];
|
cmake
|
||||||
|
]
|
||||||
|
++ lib.optionals enableCuda [
|
||||||
|
cudaPackages.cuda_nvcc
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Achieve peak performance on x86 CPUs and NVIDIA GPUs";
|
description = "Achieve peak performance on x86 CPUs and NVIDIA GPUs";
|
||||||
|
|
Loading…
Reference in a new issue