Skip to content

Commit 27b929e

Browse files
sergey-semenovvladimirlaz
authored andcommitted
[SYCL] Fix program_manager test
Fix the program_manager test by adding a dummy kernel. Without it the test fails on GPU when trying to build a program from "empty" (metadata only) spv file. Signed-off-by: Vladimir Lazarev <[email protected]> Signed-off-by: Sergey Semenov <[email protected]>
1 parent e91edb4 commit 27b929e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl/test/program_manager/program_manager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@ int main() {
4242
assert(ClProgramSecond == ClProgramSecondNew);
4343
}
4444

45+
queue q;
46+
q.submit([&](handler &cgh) { cgh.single_task<class foo>([]() {}); });
47+
4548
return 0;
4649
}

0 commit comments

Comments
 (0)