peakperf: Add to overlay, add CUDA deps

This commit is contained in:
Erwin Boskma 2024-10-02 09:15:49 +02:00
parent 871bef56c4
commit e0fd68a386
Signed by: erwin
SSH key fingerprint: SHA256:OCinH/khuGY1LA9RG8YLM8GNH6C1DDXBdy3SNE+I5Hw
2 changed files with 13 additions and 4 deletions

View file

@ -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
};
}

View file

@ -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";