Files
jungle/test/compilers/pocl.nix
2026-03-23 16:19:18 +01:00

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
''