jungle/test/compilers/pocl.nix

27 lines
401 B
Nix

{
runCommand,
pocl,
clinfo,
writableTmpDirAsHomeHook,
}:
runCommand "clinfo-pocl"
{
nativeBuildInputs = [
clinfo
pocl
writableTmpDirAsHomeHook
];
requiredSystemFeatures = [ "sys-devices" ];
env.POCL_DEBUG = "error,warn";
}
''
echo $OCL_ICD_VENDORS
clinfo >$out
# check that we have PoCL:
grep "Portable Computing Language" $out
''