b6c7f18711
COPRTHR is a very excellent little SDK implementing OpenCL and related tech for regular multicore processors, as well as things like my new Parallella (along with remote/networked OpenCL compute support). Signed-off-by: Austin Seipp <aseipp@pobox.com>
32 lines
958 B
Nix
32 lines
958 B
Nix
{ stdenv, fetchurl, libelf, libconfig, libevent, which, unzip, perl, python
|
|
, bison, flex }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "coprthr-${version}";
|
|
version = "1.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/browndeer/coprthr/archive/stable-${version}.zip";
|
|
sha256 = "042aykmcxhdpck0j6k5rcp6a0b5i377fv2nz96v1bpfhzxd1mjwg";
|
|
};
|
|
|
|
buildInputs =
|
|
[ libelf libconfig libevent which unzip perl python bison flex ];
|
|
|
|
configureFlags =
|
|
[ "--with-libelf=${libelf}"
|
|
"--with-libevent=${libevent}"
|
|
"--with-libconfig=${libconfig}"
|
|
"--with-opencl-icd-path=$out/etc/OpenCL/vendors"
|
|
"--enable-user-install"
|
|
];
|
|
|
|
meta = {
|
|
description = "The CO-PRocessing THReads SDK for OpenCL/STDCL";
|
|
homepage = "http://www.browndeertechnology.com/coprthr.htm";
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|