peakperf: Initial CUDA support
This commit is contained in:
parent
cc8183cdf0
commit
871bef56c4
1 changed files with 13 additions and 2 deletions
|
@ -1,11 +1,16 @@
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
cmake,
|
cmake,
|
||||||
|
enableCuda ? config.cudaSupport,
|
||||||
|
cudaPackages ? { },
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
effectiveStdenv = if enableCuda then cudaPackages.backendStdenv else stdenv;
|
||||||
|
in
|
||||||
|
effectiveStdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "peakperf";
|
pname = "peakperf";
|
||||||
version = "1.17";
|
version = "1.17";
|
||||||
|
|
||||||
|
@ -16,6 +21,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
hash = "sha256-bP38oo0tHDvzbWHiNwbkQoM7ZQ4nwTimVYfbPh0FUd4=";
|
hash = "sha256-bP38oo0tHDvzbWHiNwbkQoM7ZQ4nwTimVYfbPh0FUd4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs =
|
||||||
|
[ ]
|
||||||
|
++ lib.optionals enableCuda [
|
||||||
|
cudaPackages.cudart
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue