Early return from a kernel before a barrier crashes the kernel compiler
Bug #940248 reported by
Pekka Jääskeläinen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pocl |
Fix Released
|
Critical
|
Pekka Jääskeläinen |
Bug Description
A kernel like this crashes the kernel compiler:
...
if (get_global_id(0) < 42) return;
...
barrier(...);
In reality this type of kernel is not legal by the strict definition of the OpenCL specs as the early exit causes some of the work items to not reach the barrier in case the if goes off for at least one WI. However, it should not crash in this case but give an error.
Related branches
Changed in pocl: | |
status: | New → Fix Released |
To post a comment you must log in.
Seems to crash even if the return condition is not WI ID dependent.