Khronos Public Bugzilla
Bug 593 - Wrong CL_EVENT_COMMAND_EXECUTION_STATUS param_trait definition
Summary: Wrong CL_EVENT_COMMAND_EXECUTION_STATUS param_trait definition
Status: RESOLVED FIXED
Alias: None
Product: OpenCL
Classification: Unclassified
Component: Header Files (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Aaftab Munshi
QA Contact: OpenCL Working Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-10 06:36 PST by Philipp Renoth
Modified: 2013-10-31 02:15 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Renoth 2012-02-10 06:36:34 PST
Refering: cl.hpp

Value type of param_trait<cl_event_info, CL_EVENT_COMMAND_EXECUTION_STATUS>::param_type is cl_uint. Since the value can by negative for errors, it should be signed as is written in the documentation.

Thus checking for errors is more complicated (e.g.):

cl_uint status = event.getInfo<CL_EVENT_COMMAND_EXECUTION_STATUS>();

if(status > 0x7FFFFFF)
{
	// error command execution
}


Thanks
Philipp
Comment 1 Bruce Merry 2013-10-31 02:15:37 PDT
Thanks for the report. I've fixed it in the internal version of cl.hpp, and it will appear whenever the next version is released.