Opened 7 months ago

Closed 5 months ago

#13465 closed Bugs (obsolete)

OpenCL compute library - OpenGL/OpenCL check for extension compared to wrong string

Reported by: Håkan Wiman <hw@…> Owned by:
Milestone: To Be Determined Component: None
Version: Boost 1.66.0 Severity: Problem
Keywords: compute opencl Cc:

Description

In compute/context.hpp the

const char *cl_gl_sharing_extension

is set correctly, but is never used. Instead comparison is made to "cl_gl_sharing_extension". The brackets should be removed (in three places). An attempt to diff (hope I got it right):

79c79 < if (!platform.supports_extension("cl_gl_sharing_extension")) ---

if (!platform.supports_extension(cl_gl_sharing_extension))

121c121 < if(!gpu.supports_extension("cl_gl_sharing_extension")){ ---

if(!gpu.supports_extension(cl_gl_sharing_extension)){

132c132 < unsupported_extension_error("cl_gl_sharing_extension") ---

unsupported_extension_error(cl_gl_sharing_extension)

Also: The compute component is not selectable in this bug report

Thanks, Håkan Wiman

Attachments (1)

diff.txt (444 bytes) - added by Håkan Wiman <hw@…> 7 months ago.
Diff with bug fix (I hope)

Download all attachments as: .zip

Change History (2)

Changed 7 months ago by Håkan Wiman <hw@…>

Attachment: diff.txt added

Diff with bug fix (I hope)

comment:1 Changed 5 months ago by John Maddock

Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.