forked from rarias/jungle
pocl: add simple clinfo test
This commit is contained in:
parent
880e8a80b4
commit
485db313ea
@ -95,6 +95,8 @@ let
|
|||||||
clangNosvOmpv-ld = callPackage ./test/compilers/clang-openmp-ld.nix {
|
clangNosvOmpv-ld = callPackage ./test/compilers/clang-openmp-ld.nix {
|
||||||
stdenv = final.stdenvClangOmpss2NodesOmpv;
|
stdenv = final.stdenvClangOmpss2NodesOmpv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pocl = callPackage ./test/compilers/pocl.nix { };
|
||||||
};
|
};
|
||||||
|
|
||||||
# For now, only build toplevel packages in CI/Hydra
|
# For now, only build toplevel packages in CI/Hydra
|
||||||
|
|||||||
26
test/compilers/pocl.nix
Normal file
26
test/compilers/pocl.nix
Normal file
@ -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
|
||||||
|
''
|
||||||
Loading…
x
Reference in New Issue
Block a user