get_global_id() and get_global_size() don't for for dimindx>0

Bug #900584 reported by Erik Schnetter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pocl
Fix Released
Critical
Carlos Sánchez de La Lama

Bug Description

I'm running a 3D kernel, and access get_global_id() and friends inside the kernel. I notice that get_global_id(d) always returns 0 for d>0, while get_global_size(d) returns different values for different kernel invocations.

Does pocl support multi-dimensional kernels? I looked at the pthread device (which I'm using), and this seems to be the case.

To reproduce this, change the "#if 0" to "#if 1" in examples/scalarwave/scalarwave.cl, and run the code. Each kernel invocation will output the values of all get_*() functions. The example uses a 3x3x3 grid, i.e. get_global_size should always return 3.

Related branches

Changed in pocl:
importance: Undecided → Critical
Changed in pocl:
assignee: nobody → Carlos Sánchez de La Lama (csanchezdll)
status: New → Fix Committed
Revision history for this message
Carlos Sánchez de La Lama (csanchezdll) wrote :

Ok, I guess this is working now. Closing the bug.

Changed in pocl:
status: Fix Committed → 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.