Early return from a kernel before a barrier crashes the kernel compiler

Bug #940248 reported by Pekka Jääskeläinen
6
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

Revision history for this message
Pekka Jääskeläinen (pekka-jaaskelainen) wrote :

Seems to crash even if the return condition is not WI ID dependent.

summary: - Early return from the kernel that is guarded with the kernel id crashes
- the kernel compiler
+ Early return from a kernel before a barrier crashes the kernel compiler
Changed in pocl:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.