37 lines
720 B
Nix
37 lines
720 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
ocl-icd,
|
|
opencl-clhpp,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "clpeak";
|
|
version = "1.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "krrishnarraj";
|
|
repo = "clpeak";
|
|
tag = finalAttrs.version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-q4L7qoxE0udR6I8gXsc19IAB+wH7YRjgbIGOsdUXzgs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
ocl-icd
|
|
opencl-clhpp
|
|
];
|
|
|
|
meta = {
|
|
description = "Tool which profiles OpenCL devices to find their peak capacities";
|
|
homepage = "https://github.com/krrishnarraj/clpeak/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.xokdvium ];
|
|
mainProgram = "clpeak";
|
|
};
|
|
})
|