[Mesa-dev] [Bug 86326] clEnqueueNDRangeKernel global_work_offset ignored

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 15 16:22:46 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=86326

            Bug ID: 86326
           Summary: clEnqueueNDRangeKernel global_work_offset ignored
           Product: Mesa
           Version: 10.3
          Hardware: x86 (IA32)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: luke-jr+freedesktopbugs at utopios.org

"global_work_offset can be used to specify an array of work_dim unsigned values
that describe the offset used to calculate the global ID of a work-item. If
global_work_offset is NULL, the global IDs start at offset (0, 0, ... 0)."
From:
https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clEnqueueNDRangeKernel.html

However, Mesa passes this into clover/core/kernel.cpp kernel::launch, which
then simply ignores it entirely.

Note that OpenCL 1.0 required global_work_offset to be NULL, but Mesa claims
OpenCL 1.1, and if it was only OpenCL 1.0 it would still need to fail if
global_work_offset was non-NULL.

As a result of this bug, software tries to use global_work_offset and ends up
with kernels executing with the wrong values for get_global_id(0)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141116/55350b05/attachment.html>


More information about the mesa-dev mailing list