Khronos Public Bugzilla
Bug 497 - Minor typos in spec
Minor typos in spec
Status: NEW
Product: OpenCL
Classification: Unclassified
Component: Specification
1.1
All All
: P3 minor
: ---
Assigned To: Aaftab Munshi
OpenCL Working Group
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-21 16:56 PDT by David Garcia
Modified: 2011-07-21 21:48 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Garcia 2011-07-21 16:56:05 PDT
User uelkfr in the forums (http://www.khronos.org/message_boards/viewtopic.php?f=28&t=4188) has found a couple of apparent typos in the CL 1.1 spec:

<<
page 160
half a;
half a[100];
half *p;
a = *p; <- not allowed. must use vload_half function

Isn't it should be like this?
Code:
half a;
half b[100];
half *p = b;
a = *p; <- not allowed. must use vload_half function


Quote:
page 214
M_2_SQRTPI_F - Value of 2 / √π
M_SQRT2_F - Value of √2
M_SQRT1_2_F - Value of 1 / √2

I think this was made by some well-fed family man  Because it is unlogical and should be M_1_SQRT2_F in last one.
>>
Comment 1 Aaftab Munshi 2011-07-21 21:48:22 PDT
(In reply to comment #0)
> User uelkfr in the forums
> (http://www.khronos.org/message_boards/viewtopic.php?f=28&t=4188) has found a
> couple of apparent typos in the CL 1.1 spec:
> 
> <<
> page 160
> half a;
> half a[100];
> half *p;
> a = *p; <- not allowed. must use vload_half function
> 
> Isn't it should be like this?
> Code:
> half a;
> half b[100];
> half *p = b;
> a = *p; <- not allowed. must use vload_half function

I will fix this so this is clear.
> 
> 
> Quote:
> page 214
> M_2_SQRTPI_F - Value of 2 / √π
> M_SQRT2_F - Value of √2
> M_SQRT1_2_F - Value of 1 / √2
> 
> I think this was made by some well-fed family man  Because it is unlogical and
> should be M_1_SQRT2_F in last one.

M_SQRT_1_2_F and M_SQRT_1_2 are the right names.  Check out http://pubs.opengroup.org/onlinepubs/007908799/xsh/math.h.html.  

> >>