Add tests for PoCL with and without using icd

This commit is contained in:
2025-12-05 12:02:33 +01:00
parent 663e905444
commit 3a23299835
6 changed files with 249 additions and 22 deletions

View File

@@ -9,18 +9,18 @@ runCommand "clinfo-pocl"
{
nativeBuildInputs = [
clinfo
pocl
writableTmpDirAsHomeHook
];
requiredSystemFeatures = [ "sys-devices" ];
env = {
POCL_DEBUG = "error,warn";
OCL_ICD_VENDORS = "${pocl}/etc/OpenCL/vendors";
};
env.POCL_DEBUG = "error,warn";
}
''
set -x
clinfo | tee $out
set +x
echo $OCL_ICD_VENDORS
clinfo >$out
# check that we have PoCL:
grep "Portable Computing Language" $out
''