2017-01-20 03:32:25 +03:00
|
|
|
{ stdenv, fetchFromGitHub, opencl-clhpp, ocl-icd }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "opencl-info-2014-02-21";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marchv";
|
|
|
|
repo = "opencl-info";
|
|
|
|
rev = "3e53d001a98978feb865650cf0e93b045400c0d7";
|
|
|
|
sha256 = "114lxgnjg40ivjjszkv4n3f3yq2lbrvywryvbazf20kqmdz7315l";
|
|
|
|
};
|
|
|
|
|
2020-09-15 20:16:19 +03:00
|
|
|
patches = [
|
|
|
|
# The cl.hpp header was removed from opencl-clhpp. This patch
|
|
|
|
# updates opencl-info to use the new cp2.hpp header.
|
|
|
|
#
|
|
|
|
# Submitted upstream: https://github.com/marchv/opencl-info/pull/2
|
|
|
|
./opencl-info-clhpp2.diff
|
|
|
|
];
|
|
|
|
|
2017-01-20 03:32:25 +03:00
|
|
|
buildInputs = [ opencl-clhpp ocl-icd ];
|
|
|
|
|
2019-10-30 04:29:30 +03:00
|
|
|
NIX_LDFLAGS = "-lOpenCL";
|
2017-01-20 03:32:25 +03:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 opencl-info $out/bin/opencl-info
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool to dump OpenCL platform/device information";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/marchv/opencl-info";
|
2017-01-20 03:32:25 +03:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|