[Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 22 12:16:15 UTC 2017


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

--- Comment #2 from Jan Vesely <jan.vesely at rutgers.edu> ---
Can you try initializing the num_gpu, num_cpu, num_accel variables?
clGetDeviceIDs returns CL_DEVICE_NOT_FOUND error if there are no devices
matching the requested type. This does not set num_devices output parameter to
0.

Unless the variables are initialized to 0, the loop on line 135 accesses devids
array out of bounds.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20171222/c808ab20/attachment.html>


More information about the dri-devel mailing list