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 { };
|
||||
|
||||
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 =
|
||||
[ ]
|
||||
++ lib.optionals enableCuda [
|
||||
cudaPackages.cudart
|
||||
cudaPackages.cuda_cudart
|
||||
cudaPackages.cudatoolkit
|
||||
cudaPackages.cuda-samples
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
nativeBuildInputs =
|
||||
[
|
||||
cmake
|
||||
]
|
||||
++ lib.optionals enableCuda [
|
||||
cudaPackages.cuda_nvcc
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Achieve peak performance on x86 CPUs and NVIDIA GPUs";
|
||||
|
|
Loading…
Reference in a new issue