Add tests for PoCL with and without using icd

This commit is contained in:
2025-12-05 12:02:33 +01:00
parent aec4a158ed
commit c952e69f73
7 changed files with 280 additions and 22 deletions

View File

@@ -0,0 +1,31 @@
{
stdenv,
clang-ompss2,
nanos6,
}:
stdenv.mkDerivation {
version = "0.0.1";
name = "test-clang-ompss2";
src = ./.;
buildInputs = [
clang-ompss2
nanos6
];
env = {
# NIX_DEBUG = 1;
OCL_ICD_VENDORS = "";
};
buildPhase = ''
clang -fompss-2 hello.c -o hello
./hello
clang++ -fompss-2 hello.cc -o hello
./hello
'';
installPhase = ''
mkdir -p $out
'';
}