59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
ocl-icd,
|
|
opencl-headers,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "rodinia-opencl";
|
|
version = "3.1";
|
|
src = fetchurl {
|
|
url = "http://www.cs.virginia.edu/~skadron/lava/Rodinia/Packages/rodinia_3.1.tar.bz2";
|
|
hash = "sha256-+uusfBHtj4/Pa/LX6FwwhvwtEfciBNbfwo3FsujyrP0=";
|
|
};
|
|
|
|
patches = [
|
|
./rodinia-fixes.patch
|
|
./rodinia-rm.patch
|
|
];
|
|
buildInputs = [
|
|
opencl-headers
|
|
ocl-icd
|
|
];
|
|
buildFlags = [
|
|
"OPENCL"
|
|
"--always-make"
|
|
];
|
|
|
|
preBuild = ''
|
|
mkdir -p bin/linux/{cuda,omp,opencl}
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share
|
|
cp -r bin data opencl $out
|
|
cp LICENSE README $out/share
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://rodinia.cs.virginia.edu/";
|
|
description = "Test Suite of Compute-Intensive Applications with Accelerators";
|
|
maintainers = with lib.maintainers.bsc; [ abonerib ];
|
|
platforms = lib.platforms.linux;
|
|
license = {
|
|
deprecated = false;
|
|
free = false;
|
|
fullName = "Rodinia License";
|
|
redistributable = true;
|
|
shortName = "rodinia";
|
|
url = "https://www.cs.virginia.edu/~skadron/lava/rodinia/license.htm";
|
|
};
|
|
};
|
|
}
|