diff --git a/overlay.nix b/overlay.nix index 7ddd81ca..218a6c94 100644 --- a/overlay.nix +++ b/overlay.nix @@ -113,6 +113,8 @@ let clangNosvOmpv-ld = callPackage ./test/compilers/clang-openmp-ld.nix { stdenv = final.stdenvClangOmpss2NodesOmpv; }; + + pocl = callPackage ./test/compilers/pocl.nix { }; }; # For now, only build toplevel packages in CI/Hydra diff --git a/test/compilers/pocl.nix b/test/compilers/pocl.nix new file mode 100644 index 00000000..054949a6 --- /dev/null +++ b/test/compilers/pocl.nix @@ -0,0 +1,26 @@ +{ + runCommand, + pocl, + clinfo, + writableTmpDirAsHomeHook, +}: + +runCommand "clinfo-pocl" + { + nativeBuildInputs = [ + clinfo + writableTmpDirAsHomeHook + ]; + + requiredSystemFeatures = [ "sys-devices" ]; + + env = { + POCL_DEBUG = "error,warn"; + OCL_ICD_VENDORS = "${pocl}/etc/OpenCL/vendors"; + }; + } + '' + set -x + clinfo | tee $out + set +x + ''