Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 117.11 KB | None | 0 0
  1. stefan@MacBook-Pro ~ $ /Applications/Firefox.app/Contents/MacOS/firefox-bin
  2. 1436207573957 addons.manager ERROR Exception calling provider GMPProvider.startup: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStringBundle.GetStringFromName]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/addons/GMPProvider.jsm :: GMPProvider.buildPluginList :: line 623" data: no] Stack trace: GMPProvider.buildPluginList()@resource://gre/modules/addons/GMPProvider.jsm:623 < GMPProvider.startup()@resource://gre/modules/addons/GMPProvider.jsm:493 < callProvider()@resource://gre/modules/AddonManager.jsm:208 < _startProvider()@resource://gre/modules/AddonManager.jsm:670 < AMI_startup()@resource://gre/modules/AddonManager.jsm:841 < AMP_startup()@resource://gre/modules/AddonManager.jsm:2499 < AMC_observe()@resource://gre/components/addonManager.js:55 < <file:unknown>
  3. ** OpenCL Error Notification: [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: build program driver returned (-2) **
  4. ** OpenCL Error Notification: OpenCL Warning : clBuildProgram failed: could not build program for 0xffffffff (Intel(R) Core(TM) i7-2675QM CPU @ 2.20GHz) (err:-2) **
  5. ** OpenCL Error Notification: [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:
  6. <program source>:23:33: error: too many elements in vector initialization (expected 3 elements, have 4)
  7. float3 pp = mat_vec3_multiply((float3)(destCoord(_dc), 1,000000e+00f), m);
  8. ^
  9. <program source>:28:63: error: too many elements in vector initialization (expected 3 elements, have 4)
  10. return read_imagef(image, sampler_image, (mat_vec3_multiply((float3)(c, 1,000000e+00f), m)).xy);
  11. ^
  12. <program source>:36:10: error: no matching function for call to 'clamp'
  13. return clamp(s, 0,000000e+00f, s.w);
  14. ^~~~~
  15. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4963:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  16. double16 __OVERLOAD__ clamp(double16 x, double minval, double maxval);
  17. ^
  18. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4962:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  19. double8 __OVERLOAD__ clamp(double8 x, double minval, double maxval);
  20. ^
  21. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4961:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  22. double4 __OVERLOAD__ clamp(double4 x, double minval, double maxval);
  23. ^
  24. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4960:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  25. double3 __OVERLOAD__ clamp(double3 x, double minval, double maxval);
  26. ^
  27. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4959:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  28. double2 __OVERLOAD__ clamp(double2 x, double minval, double maxval);
  29. ^
  30. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4957:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  31. float16 __OVERLOAD__ clamp(float16 x, float minval, float maxval);
  32. ^
  33. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4956:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  34. float8 __OVERLOAD__ clamp(float8 x, float minval, float maxval);
  35. ^
  36. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4955:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  37. float4 __OVERLOAD__ clamp(float4 x, float minval, float maxval);
  38. ^
  39. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4954:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  40. float3 __OVERLOAD__ clamp(float3 x, float minval, float maxval);
  41. ^
  42. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4953:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  43. float2 __OVERLOAD__ clamp(float2 x, float minval, float maxval);
  44. ^
  45. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4952:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  46. ulong16 __OVERLOAD__ clamp( ulong16 x, ulong y, ulong z );
  47. ^
  48. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4951:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  49. ulong8 __OVERLOAD__ clamp( ulong8 x, ulong y, ulong z );
  50. ^
  51. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4950:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  52. ulong4 __OVERLOAD__ clamp( ulong4 x, ulong y, ulong z );
  53. ^
  54. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4949:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  55. ulong3 __OVERLOAD__ clamp( ulong3 x, ulong y, ulong z );
  56. ^
  57. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4948:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  58. ulong2 __OVERLOAD__ clamp( ulong2 x, ulong y, ulong z );
  59. ^
  60. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4947:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  61. long16 __OVERLOAD__ clamp( long16 x, long y, long z );
  62. ^
  63. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4946:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  64. long8 __OVERLOAD__ clamp( long8 x, long y, long z );
  65. ^
  66. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4945:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  67. long4 __OVERLOAD__ clamp( long4 x, long y, long z );
  68. ^
  69. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4944:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  70. long3 __OVERLOAD__ clamp( long3 x, long y, long z );
  71. ^
  72. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4943:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  73. long2 __OVERLOAD__ clamp( long2 x, long y, long z );
  74. ^
  75. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4942:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  76. uint16 __OVERLOAD__ clamp( uint16 x, uint y, uint z );
  77. ^
  78. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4941:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  79. uint8 __OVERLOAD__ clamp( uint8 x, uint y, uint z );
  80. ^
  81. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4940:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  82. uint4 __OVERLOAD__ clamp( uint4 x, uint y, uint z );
  83. ^
  84. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4939:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  85. uint3 __OVERLOAD__ clamp( uint3 x, uint y, uint z );
  86. ^
  87. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4938:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  88. uint2 __OVERLOAD__ clamp( uint2 x, uint y, uint z );
  89. ^
  90. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4937:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  91. int16 __OVERLOAD__ clamp( int16 x, int y, int z );
  92. ^
  93. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4936:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  94. int8 __OVERLOAD__ clamp( int8 x, int y, int z );
  95. ^
  96. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4935:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  97. int4 __OVERLOAD__ clamp( int4 x, int y, int z );
  98. ^
  99. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4934:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  100. int3 __OVERLOAD__ clamp( int3 x, int y, int z );
  101. ^
  102. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4933:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  103. int2 __OVERLOAD__ clamp( int2 x, int y, int z );
  104. ^
  105. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4932:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  106. ushort16 __OVERLOAD__ clamp( ushort16 x, ushort y, ushort z );
  107. ^
  108. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4931:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  109. ushort8 __OVERLOAD__ clamp( ushort8 x, ushort y, ushort z );
  110. ^
  111. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4930:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  112. ushort4 __OVERLOAD__ clamp( ushort4 x, ushort y, ushort z );
  113. ^
  114. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4929:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  115. ushort3 __OVERLOAD__ clamp( ushort3 x, ushort y, ushort z );
  116. ^
  117. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4928:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  118. ushort2 __OVERLOAD__ clamp( ushort2 x, ushort y, ushort z );
  119. ^
  120. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4927:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  121. short16 __OVERLOAD__ clamp( short16 x, short y, short z );
  122. ^
  123. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4926:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  124. short8 __OVERLOAD__ clamp( short8 x, short y, short z );
  125. ^
  126. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4925:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  127. short4 __OVERLOAD__ clamp( short4 x, short y, short z );
  128. ^
  129. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4924:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  130. short3 __OVERLOAD__ clamp( short3 x, short y, short z );
  131. ^
  132. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4923:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  133. short2 __OVERLOAD__ clamp( short2 x, short y, short z );
  134. ^
  135. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4922:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  136. uchar16 __OVERLOAD__ clamp( uchar16 x, uchar y, uchar z );
  137. ^
  138. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4921:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  139. uchar8 __OVERLOAD__ clamp( uchar8 x, uchar y, uchar z );
  140. ^
  141. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4920:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  142. uchar4 __OVERLOAD__ clamp( uchar4 x, uchar y, uchar z );
  143. ^
  144. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4919:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  145. uchar3 __OVERLOAD__ clamp( uchar3 x, uchar y, uchar z );
  146. ^
  147. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4918:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  148. uchar2 __OVERLOAD__ clamp( uchar2 x, uchar y, uchar z );
  149. ^
  150. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4917:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  151. char16 __OVERLOAD__ clamp( char16 x, char y, char z );
  152. ^
  153. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4916:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  154. char8 __OVERLOAD__ clamp( char8 x, char y, char z );
  155. ^
  156. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4915:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  157. char4 __OVERLOAD__ clamp( char4 x, char y, char z );
  158. ^
  159. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4914:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  160. char3 __OVERLOAD__ clamp( char3 x, char y, char z );
  161. ^
  162. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4913:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  163. char2 __OVERLOAD__ clamp( char2 x, char y, char z );
  164. ^
  165. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4912:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  166. ulong16 __OVERLOAD__ clamp( ulong16 x, ulong16 min, ulong16 max );
  167. ^
  168. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4911:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  169. uint16 __OVERLOAD__ clamp( uint16 x, uint16 min, uint16 max );
  170. ^
  171. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4910:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  172. uchar16 __OVERLOAD__ clamp( uchar16 x, uchar16 min, uchar16 max );
  173. ^
  174. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4909:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  175. ushort16 __OVERLOAD__ clamp( ushort16 x, ushort16 min, ushort16 max );
  176. ^
  177. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4908:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  178. long16 __OVERLOAD__ clamp( long16 x, long16 min, long16 max );
  179. ^
  180. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4907:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  181. int16 __OVERLOAD__ clamp( int16 x, int16 min, int16 max );
  182. ^
  183. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4906:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  184. short16 __OVERLOAD__ clamp( short16 x, short16 min, short16 max );
  185. ^
  186. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4905:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  187. char16 __OVERLOAD__ clamp( char16 x, char16 min, char16 max );
  188. ^
  189. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4904:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  190. ulong8 __OVERLOAD__ clamp( ulong8 x, ulong8 min, ulong8 max );
  191. ^
  192. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4903:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  193. uint8 __OVERLOAD__ clamp( uint8 x, uint8 min, uint8 max );
  194. ^
  195. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4902:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  196. ushort8 __OVERLOAD__ clamp( ushort8 x, ushort8 min, ushort8 max );
  197. ^
  198. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4901:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  199. uchar8 __OVERLOAD__ clamp( uchar8 x, uchar8 min, uchar8 max );
  200. ^
  201. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4900:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  202. long8 __OVERLOAD__ clamp( long8 x, long8 min, long8 max );
  203. ^
  204. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4899:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  205. int8 __OVERLOAD__ clamp( int8 x, int8 min, int8 max );
  206. ^
  207. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4898:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  208. short8 __OVERLOAD__ clamp( short8 x, short8 min, short8 max );
  209. ^
  210. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4897:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  211. char8 __OVERLOAD__ clamp( char8 x, char8 min, char8 max );
  212. ^
  213. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4896:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  214. ulong4 __OVERLOAD__ clamp( ulong4 x, ulong4 min, ulong4 max );
  215. ^
  216. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4895:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  217. uint4 __OVERLOAD__ clamp( uint4 x, uint4 min, uint4 max );
  218. ^
  219. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4894:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  220. ushort4 __OVERLOAD__ clamp( ushort4 x, ushort4 min, ushort4 max );
  221. ^
  222. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4893:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  223. uchar4 __OVERLOAD__ clamp( uchar4 x, uchar4 min, uchar4 max );
  224. ^
  225. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4892:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  226. long4 __OVERLOAD__ clamp( long4 x, long4 min, long4 max );
  227. ^
  228. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4891:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  229. int4 __OVERLOAD__ clamp( int4 x, int4 min, int4 max );
  230. ^
  231. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4890:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  232. short4 __OVERLOAD__ clamp( short4 x, short4 min, short4 max );
  233. ^
  234. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4889:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  235. char4 __OVERLOAD__ clamp( char4 x, char4 min, char4 max );
  236. ^
  237. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4888:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  238. ulong3 __OVERLOAD__ clamp( ulong3 x3, ulong3 min3, ulong3 max3 );
  239. ^
  240. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4887:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  241. uint3 __OVERLOAD__ clamp( uint3 x3, uint3 min3, uint3 max3 );
  242. ^
  243. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4886:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  244. ushort3 __OVERLOAD__ clamp( ushort3 x, ushort3 min, ushort3 max );
  245. ^
  246. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4885:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  247. uchar3 __OVERLOAD__ clamp( uchar3 x, uchar3 min, uchar3 max );
  248. ^
  249. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4884:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  250. long3 __OVERLOAD__ clamp( long3 x3, long3 min3, long3 max3 );
  251. ^
  252. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4883:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  253. int3 __OVERLOAD__ clamp( int3 x3, int3 min3, int3 max3 );
  254. ^
  255. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4882:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  256. short3 __OVERLOAD__ clamp( short3 x, short3 min, short3 max );
  257. ^
  258. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4881:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  259. char3 __OVERLOAD__ clamp( char3 x, char3 min, char3 max );
  260. ^
  261. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4880:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  262. ulong2 __OVERLOAD__ clamp( ulong2 x, ulong2 min, ulong2 max );
  263. ^
  264. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4879:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  265. uint2 __OVERLOAD__ clamp( uint2 x, uint2 min, uint2 max );
  266. ^
  267. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4878:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  268. ushort2 __OVERLOAD__ clamp( ushort2 x, ushort2 min, ushort2 max );
  269. ^
  270. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4877:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  271. uchar2 __OVERLOAD__ clamp( uchar2 x, uchar2 min, uchar2 max );
  272. ^
  273. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4876:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  274. long2 __OVERLOAD__ clamp( long2 x, long2 min, long2 max );
  275. ^
  276. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4875:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  277. int2 __OVERLOAD__ clamp( int2 x, int2 min, int2 max );
  278. ^
  279. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4874:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  280. short2 __OVERLOAD__ clamp( short2 x, short2 min, short2 max );
  281. ^
  282. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4873:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  283. char2 __OVERLOAD__ clamp( char2 x, char2 min, char2 max );
  284. ^
  285. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4872:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  286. ulong __OVERLOAD__ clamp( ulong x, ulong min, ulong max );
  287. ^
  288. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4871:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  289. uint __OVERLOAD__ clamp( uint x, uint min, uint max );
  290. ^
  291. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4870:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  292. ushort __OVERLOAD__ clamp( ushort x, ushort min, ushort max );
  293. ^
  294. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4869:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  295. uchar __OVERLOAD__ clamp( uchar x, uchar min, uchar max );
  296. ^
  297. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4868:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  298. long __OVERLOAD__ clamp( long x, long min, long max );
  299. ^
  300. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4867:18: note: candidate function not viable: requires 3 arguments, but 4 were provided
  301. int __OVERLOAD__ clamp( int x, int min, int max );
  302. ^
  303. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4866:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  304. short __OVERLOAD__ clamp( short x, short min, short max );
  305. ^
  306. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4865:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  307. char __OVERLOAD__ clamp( char x, char min, char max );
  308. ^
  309. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4864:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  310. double16 __OVERLOAD__ clamp( double16 x, double16 minval, double16 maxval );
  311. ^
  312. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4863:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  313. double8 __OVERLOAD__ clamp( double8 x, double8 minval, double8 maxval );
  314. ^
  315. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4862:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  316. double4 __OVERLOAD__ clamp(double4 x, double4 minval, double4 maxval);
  317. ^
  318. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4861:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  319. double3 __OVERLOAD__ clamp(double3 x, double3 minval, double3 maxval);
  320. ^
  321. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4860:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  322. double2 __OVERLOAD__ clamp(double2 x, double2 minval, double2 maxval);
  323. ^
  324. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4858:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  325. double __OVERLOAD__ clamp(double x, double minval, double maxval);
  326. ^
  327. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4844:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  328. float16 __OVERLOAD__ clamp( float16 x, float16 minval, float16 maxval );
  329. ^
  330. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4843:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  331. float8 __OVERLOAD__ clamp( float8 x, float8 minval, float8 maxval );
  332. ^
  333. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4842:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  334. float4 __OVERLOAD__ clamp(float4 x, float4 minval, float4 maxval);
  335. ^
  336. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4841:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  337. float3 __OVERLOAD__ clamp(float3 x, float3 minval, float3 maxval);
  338. ^
  339. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4840:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  340. float2 __OVERLOAD__ clamp(float2 x, float2 minval, float2 maxval);
  341. ^
  342. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4839:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  343. float __OVERLOAD__ clamp(float x, float minval, float maxval);
  344. ^
  345.  
  346. **
  347. Native OpenCL program build failed:
  348. <program source>:23:33: error: too many elements in vector initialization (expected 3 elements, have 4)
  349. float3 pp = mat_vec3_multiply((float3)(destCoord(_dc), 1,000000e+00f), m);
  350. ^
  351. <program source>:28:63: error: too many elements in vector initialization (expected 3 elements, have 4)
  352. return read_imagef(image, sampler_image, (mat_vec3_multiply((float3)(c, 1,000000e+00f), m)).xy);
  353. ^
  354. <program source>:36:10: error: no matching function for call to 'clamp'
  355. return clamp(s, 0,000000e+00f, s.w);
  356. ^~~~~
  357. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4963:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  358. double16 __OVERLOAD__ clamp(double16 x, double minval, double maxval);
  359. ^
  360. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4962:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  361. double8 __OVERLOAD__ clamp(double8 x, double minval, double maxval);
  362. ^
  363. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4961:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  364. double4 __OVERLOAD__ clamp(double4 x, double minval, double maxval);
  365. ^
  366. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4960:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  367. double3 __OVERLOAD__ clamp(double3 x, double minval, double maxval);
  368. ^
  369. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4959:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  370. double2 __OVERLOAD__ clamp(double2 x, double minval, double maxval);
  371. ^
  372. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4957:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  373. float16 __OVERLOAD__ clamp(float16 x, float minval, float maxval);
  374. ^
  375. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4956:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  376. float8 __OVERLOAD__ clamp(float8 x, float minval, float maxval);
  377. ^
  378. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4955:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  379. float4 __OVERLOAD__ clamp(float4 x, float minval, float maxval);
  380. ^
  381. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4954:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  382. float3 __OVERLOAD__ clamp(float3 x, float minval, float maxval);
  383. ^
  384. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4953:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  385. float2 __OVERLOAD__ clamp(float2 x, float minval, float maxval);
  386. ^
  387. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4952:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  388. ulong16 __OVERLOAD__ clamp( ulong16 x, ulong y, ulong z );
  389. ^
  390. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4951:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  391. ulong8 __OVERLOAD__ clamp( ulong8 x, ulong y, ulong z );
  392. ^
  393. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4950:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  394. ulong4 __OVERLOAD__ clamp( ulong4 x, ulong y, ulong z );
  395. ^
  396. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4949:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  397. ulong3 __OVERLOAD__ clamp( ulong3 x, ulong y, ulong z );
  398. ^
  399. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4948:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  400. ulong2 __OVERLOAD__ clamp( ulong2 x, ulong y, ulong z );
  401. ^
  402. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4947:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  403. long16 __OVERLOAD__ clamp( long16 x, long y, long z );
  404. ^
  405. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4946:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  406. long8 __OVERLOAD__ clamp( long8 x, long y, long z );
  407. ^
  408. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4945:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  409. long4 __OVERLOAD__ clamp( long4 x, long y, long z );
  410. ^
  411. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4944:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  412. long3 __OVERLOAD__ clamp( long3 x, long y, long z );
  413. ^
  414. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4943:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  415. long2 __OVERLOAD__ clamp( long2 x, long y, long z );
  416. ^
  417. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4942:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  418. uint16 __OVERLOAD__ clamp( uint16 x, uint y, uint z );
  419. ^
  420. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4941:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  421. uint8 __OVERLOAD__ clamp( uint8 x, uint y, uint z );
  422. ^
  423. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4940:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  424. uint4 __OVERLOAD__ clamp( uint4 x, uint y, uint z );
  425. ^
  426. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4939:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  427. uint3 __OVERLOAD__ clamp( uint3 x, uint y, uint z );
  428. ^
  429. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4938:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  430. uint2 __OVERLOAD__ clamp( uint2 x, uint y, uint z );
  431. ^
  432. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4937:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  433. int16 __OVERLOAD__ clamp( int16 x, int y, int z );
  434. ^
  435. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4936:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  436. int8 __OVERLOAD__ clamp( int8 x, int y, int z );
  437. ^
  438. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4935:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  439. int4 __OVERLOAD__ clamp( int4 x, int y, int z );
  440. ^
  441. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4934:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  442. int3 __OVERLOAD__ clamp( int3 x, int y, int z );
  443. ^
  444. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4933:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  445. int2 __OVERLOAD__ clamp( int2 x, int y, int z );
  446. ^
  447. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4932:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  448. ushort16 __OVERLOAD__ clamp( ushort16 x, ushort y, ushort z );
  449. ^
  450. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4931:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  451. ushort8 __OVERLOAD__ clamp( ushort8 x, ushort y, ushort z );
  452. ^
  453. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4930:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  454. ushort4 __OVERLOAD__ clamp( ushort4 x, ushort y, ushort z );
  455. ^
  456. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4929:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  457. ushort3 __OVERLOAD__ clamp( ushort3 x, ushort y, ushort z );
  458. ^
  459. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4928:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  460. ushort2 __OVERLOAD__ clamp( ushort2 x, ushort y, ushort z );
  461. ^
  462. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4927:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  463. short16 __OVERLOAD__ clamp( short16 x, short y, short z );
  464. ^
  465. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4926:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  466. short8 __OVERLOAD__ clamp( short8 x, short y, short z );
  467. ^
  468. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4925:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  469. short4 __OVERLOAD__ clamp( short4 x, short y, short z );
  470. ^
  471. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4924:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  472. short3 __OVERLOAD__ clamp( short3 x, short y, short z );
  473. ^
  474. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4923:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  475. short2 __OVERLOAD__ clamp( short2 x, short y, short z );
  476. ^
  477. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4922:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  478. uchar16 __OVERLOAD__ clamp( uchar16 x, uchar y, uchar z );
  479. ^
  480. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4921:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  481. uchar8 __OVERLOAD__ clamp( uchar8 x, uchar y, uchar z );
  482. ^
  483. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4920:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  484. uchar4 __OVERLOAD__ clamp( uchar4 x, uchar y, uchar z );
  485. ^
  486. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4919:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  487. uchar3 __OVERLOAD__ clamp( uchar3 x, uchar y, uchar z );
  488. ^
  489. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4918:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  490. uchar2 __OVERLOAD__ clamp( uchar2 x, uchar y, uchar z );
  491. ^
  492. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4917:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  493. char16 __OVERLOAD__ clamp( char16 x, char y, char z );
  494. ^
  495. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4916:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  496. char8 __OVERLOAD__ clamp( char8 x, char y, char z );
  497. ^
  498. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4915:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  499. char4 __OVERLOAD__ clamp( char4 x, char y, char z );
  500. ^
  501. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4914:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  502. char3 __OVERLOAD__ clamp( char3 x, char y, char z );
  503. ^
  504. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4913:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  505. char2 __OVERLOAD__ clamp( char2 x, char y, char z );
  506. ^
  507. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4912:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  508. ulong16 __OVERLOAD__ clamp( ulong16 x, ulong16 min, ulong16 max );
  509. ^
  510. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4911:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  511. uint16 __OVERLOAD__ clamp( uint16 x, uint16 min, uint16 max );
  512. ^
  513. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4910:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  514. uchar16 __OVERLOAD__ clamp( uchar16 x, uchar16 min, uchar16 max );
  515. ^
  516. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4909:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  517. ushort16 __OVERLOAD__ clamp( ushort16 x, ushort16 min, ushort16 max );
  518. ^
  519. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4908:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  520. long16 __OVERLOAD__ clamp( long16 x, long16 min, long16 max );
  521. ^
  522. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4907:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  523. int16 __OVERLOAD__ clamp( int16 x, int16 min, int16 max );
  524. ^
  525. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4906:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  526. short16 __OVERLOAD__ clamp( short16 x, short16 min, short16 max );
  527. ^
  528. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4905:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  529. char16 __OVERLOAD__ clamp( char16 x, char16 min, char16 max );
  530. ^
  531. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4904:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  532. ulong8 __OVERLOAD__ clamp( ulong8 x, ulong8 min, ulong8 max );
  533. ^
  534. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4903:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  535. uint8 __OVERLOAD__ clamp( uint8 x, uint8 min, uint8 max );
  536. ^
  537. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4902:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  538. ushort8 __OVERLOAD__ clamp( ushort8 x, ushort8 min, ushort8 max );
  539. ^
  540. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4901:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  541. uchar8 __OVERLOAD__ clamp( uchar8 x, uchar8 min, uchar8 max );
  542. ^
  543. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4900:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  544. long8 __OVERLOAD__ clamp( long8 x, long8 min, long8 max );
  545. ^
  546. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4899:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  547. int8 __OVERLOAD__ clamp( int8 x, int8 min, int8 max );
  548. ^
  549. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4898:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  550. short8 __OVERLOAD__ clamp( short8 x, short8 min, short8 max );
  551. ^
  552. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4897:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  553. char8 __OVERLOAD__ clamp( char8 x, char8 min, char8 max );
  554. ^
  555. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4896:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  556. ulong4 __OVERLOAD__ clamp( ulong4 x, ulong4 min, ulong4 max );
  557. ^
  558. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4895:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  559. uint4 __OVERLOAD__ clamp( uint4 x, uint4 min, uint4 max );
  560. ^
  561. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4894:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  562. ushort4 __OVERLOAD__ clamp( ushort4 x, ushort4 min, ushort4 max );
  563. ^
  564. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4893:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  565. uchar4 __OVERLOAD__ clamp( uchar4 x, uchar4 min, uchar4 max );
  566. ^
  567. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4892:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  568. long4 __OVERLOAD__ clamp( long4 x, long4 min, long4 max );
  569. ^
  570. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4891:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  571. int4 __OVERLOAD__ clamp( int4 x, int4 min, int4 max );
  572. ^
  573. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4890:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  574. short4 __OVERLOAD__ clamp( short4 x, short4 min, short4 max );
  575. ^
  576. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4889:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  577. char4 __OVERLOAD__ clamp( char4 x, char4 min, char4 max );
  578. ^
  579. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4888:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  580. ulong3 __OVERLOAD__ clamp( ulong3 x3, ulong3 min3, ulong3 max3 );
  581. ^
  582. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4887:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  583. uint3 __OVERLOAD__ clamp( uint3 x3, uint3 min3, uint3 max3 );
  584. ^
  585. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4886:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  586. ushort3 __OVERLOAD__ clamp( ushort3 x, ushort3 min, ushort3 max );
  587. ^
  588. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4885:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  589. uchar3 __OVERLOAD__ clamp( uchar3 x, uchar3 min, uchar3 max );
  590. ^
  591. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4884:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  592. long3 __OVERLOAD__ clamp( long3 x3, long3 min3, long3 max3 );
  593. ^
  594. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4883:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  595. int3 __OVERLOAD__ clamp( int3 x3, int3 min3, int3 max3 );
  596. ^
  597. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4882:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  598. short3 __OVERLOAD__ clamp( short3 x, short3 min, short3 max );
  599. ^
  600. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4881:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  601. char3 __OVERLOAD__ clamp( char3 x, char3 min, char3 max );
  602. ^
  603. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4880:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  604. ulong2 __OVERLOAD__ clamp( ulong2 x, ulong2 min, ulong2 max );
  605. ^
  606. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4879:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  607. uint2 __OVERLOAD__ clamp( uint2 x, uint2 min, uint2 max );
  608. ^
  609. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4878:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  610. ushort2 __OVERLOAD__ clamp( ushort2 x, ushort2 min, ushort2 max );
  611. ^
  612. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4877:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  613. uchar2 __OVERLOAD__ clamp( uchar2 x, uchar2 min, uchar2 max );
  614. ^
  615. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4876:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  616. long2 __OVERLOAD__ clamp( long2 x, long2 min, long2 max );
  617. ^
  618. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4875:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  619. int2 __OVERLOAD__ clamp( int2 x, int2 min, int2 max );
  620. ^
  621. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4874:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  622. short2 __OVERLOAD__ clamp( short2 x, short2 min, short2 max );
  623. ^
  624. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4873:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  625. char2 __OVERLOAD__ clamp( char2 x, char2 min, char2 max );
  626. ^
  627. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4872:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  628. ulong __OVERLOAD__ clamp( ulong x, ulong min, ulong max );
  629. ^
  630. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4871:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  631. uint __OVERLOAD__ clamp( uint x, uint min, uint max );
  632. ^
  633. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4870:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  634. ushort __OVERLOAD__ clamp( ushort x, ushort min, ushort max );
  635. ^
  636. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4869:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  637. uchar __OVERLOAD__ clamp( uchar x, uchar min, uchar max );
  638. ^
  639. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4868:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  640. long __OVERLOAD__ clamp( long x, long min, long max );
  641. ^
  642. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4867:18: note: candidate function not viable: requires 3 arguments, but 4 were provided
  643. int __OVERLOAD__ clamp( int x, int min, int max );
  644. ^
  645. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4866:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  646. short __OVERLOAD__ clamp( short x, short min, short max );
  647. ^
  648. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4865:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  649. char __OVERLOAD__ clamp( char x, char min, char max );
  650. ^
  651. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4864:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  652. double16 __OVERLOAD__ clamp( double16 x, double16 minval, double16 maxval );
  653. ^
  654. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4863:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  655. double8 __OVERLOAD__ clamp( double8 x, double8 minval, double8 maxval );
  656. ^
  657. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4862:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  658. double4 __OVERLOAD__ clamp(double4 x, double4 minval, double4 maxval);
  659. ^
  660. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4861:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  661. double3 __OVERLOAD__ clamp(double3 x, double3 minval, double3 maxval);
  662. ^
  663. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4860:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  664. double2 __OVERLOAD__ clamp(double2 x, double2 minval, double2 maxval);
  665. ^
  666. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4858:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  667. double __OVERLOAD__ clamp(double x, double minval, double maxval);
  668. ^
  669. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4844:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  670. float16 __OVERLOAD__ clamp( float16 x, float16 minval, float16 maxval );
  671. ^
  672. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4843:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  673. float8 __OVERLOAD__ clamp( float8 x, float8 minval, float8 maxval );
  674. ^
  675. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4842:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  676. float4 __OVERLOAD__ clamp(float4 x, float4 minval, float4 maxval);
  677. ^
  678. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4841:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  679. float3 __OVERLOAD__ clamp(float3 x, float3 minval, float3 maxval);
  680. ^
  681. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4840:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  682. float2 __OVERLOAD__ clamp(float2 x, float2 minval, float2 maxval);
  683. ^
  684. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4839:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  685. float __OVERLOAD__ clamp(float x, float minval, float maxval);
  686. ^
  687. Unable to compile kernel. We should debug this.
  688. ** OpenCL Error Notification: [CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: build program driver returned (-2) **
  689. ** OpenCL Error Notification: OpenCL Warning : clBuildProgram failed: could not build program for 0xffffffff (Intel(R) Core(TM) i7-2675QM CPU @ 2.20GHz) (err:-2) **
  690. ** OpenCL Error Notification: [CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:
  691. <program source>:23:33: error: too many elements in vector initialization (expected 3 elements, have 4)
  692. float3 pp = mat_vec3_multiply((float3)(destCoord(_dc), 1,000000e+00f), m);
  693. ^
  694. <program source>:28:63: error: too many elements in vector initialization (expected 3 elements, have 4)
  695. return read_imagef(image, sampler_image, (mat_vec3_multiply((float3)(c, 1,000000e+00f), m)).xy);
  696. ^
  697. <program source>:36:10: error: no matching function for call to 'clamp'
  698. return clamp(s, 0,000000e+00f, s.w);
  699. ^~~~~
  700. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4963:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  701. double16 __OVERLOAD__ clamp(double16 x, double minval, double maxval);
  702. ^
  703. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4962:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  704. double8 __OVERLOAD__ clamp(double8 x, double minval, double maxval);
  705. ^
  706. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4961:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  707. double4 __OVERLOAD__ clamp(double4 x, double minval, double maxval);
  708. ^
  709. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4960:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  710. double3 __OVERLOAD__ clamp(double3 x, double minval, double maxval);
  711. ^
  712. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4959:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  713. double2 __OVERLOAD__ clamp(double2 x, double minval, double maxval);
  714. ^
  715. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4957:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  716. float16 __OVERLOAD__ clamp(float16 x, float minval, float maxval);
  717. ^
  718. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4956:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  719. float8 __OVERLOAD__ clamp(float8 x, float minval, float maxval);
  720. ^
  721. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4955:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  722. float4 __OVERLOAD__ clamp(float4 x, float minval, float maxval);
  723. ^
  724. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4954:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  725. float3 __OVERLOAD__ clamp(float3 x, float minval, float maxval);
  726. ^
  727. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4953:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  728. float2 __OVERLOAD__ clamp(float2 x, float minval, float maxval);
  729. ^
  730. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4952:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  731. ulong16 __OVERLOAD__ clamp( ulong16 x, ulong y, ulong z );
  732. ^
  733. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4951:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  734. ulong8 __OVERLOAD__ clamp( ulong8 x, ulong y, ulong z );
  735. ^
  736. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4950:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  737. ulong4 __OVERLOAD__ clamp( ulong4 x, ulong y, ulong z );
  738. ^
  739. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4949:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  740. ulong3 __OVERLOAD__ clamp( ulong3 x, ulong y, ulong z );
  741. ^
  742. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4948:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  743. ulong2 __OVERLOAD__ clamp( ulong2 x, ulong y, ulong z );
  744. ^
  745. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4947:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  746. long16 __OVERLOAD__ clamp( long16 x, long y, long z );
  747. ^
  748. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4946:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  749. long8 __OVERLOAD__ clamp( long8 x, long y, long z );
  750. ^
  751. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4945:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  752. long4 __OVERLOAD__ clamp( long4 x, long y, long z );
  753. ^
  754. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4944:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  755. long3 __OVERLOAD__ clamp( long3 x, long y, long z );
  756. ^
  757. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4943:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  758. long2 __OVERLOAD__ clamp( long2 x, long y, long z );
  759. ^
  760. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4942:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  761. uint16 __OVERLOAD__ clamp( uint16 x, uint y, uint z );
  762. ^
  763. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4941:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  764. uint8 __OVERLOAD__ clamp( uint8 x, uint y, uint z );
  765. ^
  766. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4940:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  767. uint4 __OVERLOAD__ clamp( uint4 x, uint y, uint z );
  768. ^
  769. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4939:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  770. uint3 __OVERLOAD__ clamp( uint3 x, uint y, uint z );
  771. ^
  772. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4938:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  773. uint2 __OVERLOAD__ clamp( uint2 x, uint y, uint z );
  774. ^
  775. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4937:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  776. int16 __OVERLOAD__ clamp( int16 x, int y, int z );
  777. ^
  778. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4936:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  779. int8 __OVERLOAD__ clamp( int8 x, int y, int z );
  780. ^
  781. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4935:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  782. int4 __OVERLOAD__ clamp( int4 x, int y, int z );
  783. ^
  784. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4934:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  785. int3 __OVERLOAD__ clamp( int3 x, int y, int z );
  786. ^
  787. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4933:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  788. int2 __OVERLOAD__ clamp( int2 x, int y, int z );
  789. ^
  790. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4932:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  791. ushort16 __OVERLOAD__ clamp( ushort16 x, ushort y, ushort z );
  792. ^
  793. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4931:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  794. ushort8 __OVERLOAD__ clamp( ushort8 x, ushort y, ushort z );
  795. ^
  796. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4930:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  797. ushort4 __OVERLOAD__ clamp( ushort4 x, ushort y, ushort z );
  798. ^
  799. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4929:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  800. ushort3 __OVERLOAD__ clamp( ushort3 x, ushort y, ushort z );
  801. ^
  802. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4928:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  803. ushort2 __OVERLOAD__ clamp( ushort2 x, ushort y, ushort z );
  804. ^
  805. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4927:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  806. short16 __OVERLOAD__ clamp( short16 x, short y, short z );
  807. ^
  808. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4926:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  809. short8 __OVERLOAD__ clamp( short8 x, short y, short z );
  810. ^
  811. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4925:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  812. short4 __OVERLOAD__ clamp( short4 x, short y, short z );
  813. ^
  814. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4924:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  815. short3 __OVERLOAD__ clamp( short3 x, short y, short z );
  816. ^
  817. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4923:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  818. short2 __OVERLOAD__ clamp( short2 x, short y, short z );
  819. ^
  820. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4922:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  821. uchar16 __OVERLOAD__ clamp( uchar16 x, uchar y, uchar z );
  822. ^
  823. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4921:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  824. uchar8 __OVERLOAD__ clamp( uchar8 x, uchar y, uchar z );
  825. ^
  826. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4920:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  827. uchar4 __OVERLOAD__ clamp( uchar4 x, uchar y, uchar z );
  828. ^
  829. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4919:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  830. uchar3 __OVERLOAD__ clamp( uchar3 x, uchar y, uchar z );
  831. ^
  832. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4918:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  833. uchar2 __OVERLOAD__ clamp( uchar2 x, uchar y, uchar z );
  834. ^
  835. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4917:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  836. char16 __OVERLOAD__ clamp( char16 x, char y, char z );
  837. ^
  838. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4916:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  839. char8 __OVERLOAD__ clamp( char8 x, char y, char z );
  840. ^
  841. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4915:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  842. char4 __OVERLOAD__ clamp( char4 x, char y, char z );
  843. ^
  844. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4914:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  845. char3 __OVERLOAD__ clamp( char3 x, char y, char z );
  846. ^
  847. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4913:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  848. char2 __OVERLOAD__ clamp( char2 x, char y, char z );
  849. ^
  850. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4912:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  851. ulong16 __OVERLOAD__ clamp( ulong16 x, ulong16 min, ulong16 max );
  852. ^
  853. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4911:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  854. uint16 __OVERLOAD__ clamp( uint16 x, uint16 min, uint16 max );
  855. ^
  856. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4910:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  857. uchar16 __OVERLOAD__ clamp( uchar16 x, uchar16 min, uchar16 max );
  858. ^
  859. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4909:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  860. ushort16 __OVERLOAD__ clamp( ushort16 x, ushort16 min, ushort16 max );
  861. ^
  862. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4908:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  863. long16 __OVERLOAD__ clamp( long16 x, long16 min, long16 max );
  864. ^
  865. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4907:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  866. int16 __OVERLOAD__ clamp( int16 x, int16 min, int16 max );
  867. ^
  868. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4906:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  869. short16 __OVERLOAD__ clamp( short16 x, short16 min, short16 max );
  870. ^
  871. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4905:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  872. char16 __OVERLOAD__ clamp( char16 x, char16 min, char16 max );
  873. ^
  874. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4904:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  875. ulong8 __OVERLOAD__ clamp( ulong8 x, ulong8 min, ulong8 max );
  876. ^
  877. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4903:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  878. uint8 __OVERLOAD__ clamp( uint8 x, uint8 min, uint8 max );
  879. ^
  880. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4902:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  881. ushort8 __OVERLOAD__ clamp( ushort8 x, ushort8 min, ushort8 max );
  882. ^
  883. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4901:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  884. uchar8 __OVERLOAD__ clamp( uchar8 x, uchar8 min, uchar8 max );
  885. ^
  886. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4900:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  887. long8 __OVERLOAD__ clamp( long8 x, long8 min, long8 max );
  888. ^
  889. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4899:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  890. int8 __OVERLOAD__ clamp( int8 x, int8 min, int8 max );
  891. ^
  892. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4898:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  893. short8 __OVERLOAD__ clamp( short8 x, short8 min, short8 max );
  894. ^
  895. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4897:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  896. char8 __OVERLOAD__ clamp( char8 x, char8 min, char8 max );
  897. ^
  898. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4896:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  899. ulong4 __OVERLOAD__ clamp( ulong4 x, ulong4 min, ulong4 max );
  900. ^
  901. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4895:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  902. uint4 __OVERLOAD__ clamp( uint4 x, uint4 min, uint4 max );
  903. ^
  904. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4894:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  905. ushort4 __OVERLOAD__ clamp( ushort4 x, ushort4 min, ushort4 max );
  906. ^
  907. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4893:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  908. uchar4 __OVERLOAD__ clamp( uchar4 x, uchar4 min, uchar4 max );
  909. ^
  910. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4892:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  911. long4 __OVERLOAD__ clamp( long4 x, long4 min, long4 max );
  912. ^
  913. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4891:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  914. int4 __OVERLOAD__ clamp( int4 x, int4 min, int4 max );
  915. ^
  916. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4890:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  917. short4 __OVERLOAD__ clamp( short4 x, short4 min, short4 max );
  918. ^
  919. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4889:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  920. char4 __OVERLOAD__ clamp( char4 x, char4 min, char4 max );
  921. ^
  922. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4888:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  923. ulong3 __OVERLOAD__ clamp( ulong3 x3, ulong3 min3, ulong3 max3 );
  924. ^
  925. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4887:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  926. uint3 __OVERLOAD__ clamp( uint3 x3, uint3 min3, uint3 max3 );
  927. ^
  928. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4886:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  929. ushort3 __OVERLOAD__ clamp( ushort3 x, ushort3 min, ushort3 max );
  930. ^
  931. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4885:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  932. uchar3 __OVERLOAD__ clamp( uchar3 x, uchar3 min, uchar3 max );
  933. ^
  934. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4884:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  935. long3 __OVERLOAD__ clamp( long3 x3, long3 min3, long3 max3 );
  936. ^
  937. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4883:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  938. int3 __OVERLOAD__ clamp( int3 x3, int3 min3, int3 max3 );
  939. ^
  940. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4882:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  941. short3 __OVERLOAD__ clamp( short3 x, short3 min, short3 max );
  942. ^
  943. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4881:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  944. char3 __OVERLOAD__ clamp( char3 x, char3 min, char3 max );
  945. ^
  946. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4880:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  947. ulong2 __OVERLOAD__ clamp( ulong2 x, ulong2 min, ulong2 max );
  948. ^
  949. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4879:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  950. uint2 __OVERLOAD__ clamp( uint2 x, uint2 min, uint2 max );
  951. ^
  952. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4878:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  953. ushort2 __OVERLOAD__ clamp( ushort2 x, ushort2 min, ushort2 max );
  954. ^
  955. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4877:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  956. uchar2 __OVERLOAD__ clamp( uchar2 x, uchar2 min, uchar2 max );
  957. ^
  958. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4876:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  959. long2 __OVERLOAD__ clamp( long2 x, long2 min, long2 max );
  960. ^
  961. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4875:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  962. int2 __OVERLOAD__ clamp( int2 x, int2 min, int2 max );
  963. ^
  964. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4874:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  965. short2 __OVERLOAD__ clamp( short2 x, short2 min, short2 max );
  966. ^
  967. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4873:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  968. char2 __OVERLOAD__ clamp( char2 x, char2 min, char2 max );
  969. ^
  970. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4872:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  971. ulong __OVERLOAD__ clamp( ulong x, ulong min, ulong max );
  972. ^
  973. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4871:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  974. uint __OVERLOAD__ clamp( uint x, uint min, uint max );
  975. ^
  976. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4870:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  977. ushort __OVERLOAD__ clamp( ushort x, ushort min, ushort max );
  978. ^
  979. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4869:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  980. uchar __OVERLOAD__ clamp( uchar x, uchar min, uchar max );
  981. ^
  982. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4868:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  983. long __OVERLOAD__ clamp( long x, long min, long max );
  984. ^
  985. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4867:18: note: candidate function not viable: requires 3 arguments, but 4 were provided
  986. int __OVERLOAD__ clamp( int x, int min, int max );
  987. ^
  988. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4866:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  989. short __OVERLOAD__ clamp( short x, short min, short max );
  990. ^
  991. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4865:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  992. char __OVERLOAD__ clamp( char x, char min, char max );
  993. ^
  994. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4864:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  995. double16 __OVERLOAD__ clamp( double16 x, double16 minval, double16 maxval );
  996. ^
  997. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4863:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  998. double8 __OVERLOAD__ clamp( double8 x, double8 minval, double8 maxval );
  999. ^
  1000. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4862:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1001. double4 __OVERLOAD__ clamp(double4 x, double4 minval, double4 maxval);
  1002. ^
  1003. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4861:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1004. double3 __OVERLOAD__ clamp(double3 x, double3 minval, double3 maxval);
  1005. ^
  1006. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4860:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1007. double2 __OVERLOAD__ clamp(double2 x, double2 minval, double2 maxval);
  1008. ^
  1009. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4858:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1010. double __OVERLOAD__ clamp(double x, double minval, double maxval);
  1011. ^
  1012. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4844:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1013. float16 __OVERLOAD__ clamp( float16 x, float16 minval, float16 maxval );
  1014. ^
  1015. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4843:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1016. float8 __OVERLOAD__ clamp( float8 x, float8 minval, float8 maxval );
  1017. ^
  1018. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4842:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1019. float4 __OVERLOAD__ clamp(float4 x, float4 minval, float4 maxval);
  1020. ^
  1021. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4841:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1022. float3 __OVERLOAD__ clamp(float3 x, float3 minval, float3 maxval);
  1023. ^
  1024. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4840:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1025. float2 __OVERLOAD__ clamp(float2 x, float2 minval, float2 maxval);
  1026. ^
  1027. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4839:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1028. float __OVERLOAD__ clamp(float x, float minval, float maxval);
  1029. ^
  1030.  
  1031. **
  1032. Native OpenCL program build failed:
  1033. <program source>:23:33: error: too many elements in vector initialization (expected 3 elements, have 4)
  1034. float3 pp = mat_vec3_multiply((float3)(destCoord(_dc), 1,000000e+00f), m);
  1035. ^
  1036. <program source>:28:63: error: too many elements in vector initialization (expected 3 elements, have 4)
  1037. return read_imagef(image, sampler_image, (mat_vec3_multiply((float3)(c, 1,000000e+00f), m)).xy);
  1038. ^
  1039. <program source>:36:10: error: no matching function for call to 'clamp'
  1040. return clamp(s, 0,000000e+00f, s.w);
  1041. ^~~~~
  1042. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4963:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1043. double16 __OVERLOAD__ clamp(double16 x, double minval, double maxval);
  1044. ^
  1045. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4962:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1046. double8 __OVERLOAD__ clamp(double8 x, double minval, double maxval);
  1047. ^
  1048. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4961:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1049. double4 __OVERLOAD__ clamp(double4 x, double minval, double maxval);
  1050. ^
  1051. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4960:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1052. double3 __OVERLOAD__ clamp(double3 x, double minval, double maxval);
  1053. ^
  1054. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4959:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1055. double2 __OVERLOAD__ clamp(double2 x, double minval, double maxval);
  1056. ^
  1057. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4957:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1058. float16 __OVERLOAD__ clamp(float16 x, float minval, float maxval);
  1059. ^
  1060. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4956:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1061. float8 __OVERLOAD__ clamp(float8 x, float minval, float maxval);
  1062. ^
  1063. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4955:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1064. float4 __OVERLOAD__ clamp(float4 x, float minval, float maxval);
  1065. ^
  1066. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4954:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1067. float3 __OVERLOAD__ clamp(float3 x, float minval, float maxval);
  1068. ^
  1069. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4953:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1070. float2 __OVERLOAD__ clamp(float2 x, float minval, float maxval);
  1071. ^
  1072. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4952:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1073. ulong16 __OVERLOAD__ clamp( ulong16 x, ulong y, ulong z );
  1074. ^
  1075. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4951:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1076. ulong8 __OVERLOAD__ clamp( ulong8 x, ulong y, ulong z );
  1077. ^
  1078. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4950:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1079. ulong4 __OVERLOAD__ clamp( ulong4 x, ulong y, ulong z );
  1080. ^
  1081. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4949:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1082. ulong3 __OVERLOAD__ clamp( ulong3 x, ulong y, ulong z );
  1083. ^
  1084. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4948:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1085. ulong2 __OVERLOAD__ clamp( ulong2 x, ulong y, ulong z );
  1086. ^
  1087. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4947:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1088. long16 __OVERLOAD__ clamp( long16 x, long y, long z );
  1089. ^
  1090. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4946:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1091. long8 __OVERLOAD__ clamp( long8 x, long y, long z );
  1092. ^
  1093. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4945:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1094. long4 __OVERLOAD__ clamp( long4 x, long y, long z );
  1095. ^
  1096. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4944:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1097. long3 __OVERLOAD__ clamp( long3 x, long y, long z );
  1098. ^
  1099. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4943:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1100. long2 __OVERLOAD__ clamp( long2 x, long y, long z );
  1101. ^
  1102. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4942:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1103. uint16 __OVERLOAD__ clamp( uint16 x, uint y, uint z );
  1104. ^
  1105. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4941:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1106. uint8 __OVERLOAD__ clamp( uint8 x, uint y, uint z );
  1107. ^
  1108. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4940:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1109. uint4 __OVERLOAD__ clamp( uint4 x, uint y, uint z );
  1110. ^
  1111. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4939:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1112. uint3 __OVERLOAD__ clamp( uint3 x, uint y, uint z );
  1113. ^
  1114. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4938:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1115. uint2 __OVERLOAD__ clamp( uint2 x, uint y, uint z );
  1116. ^
  1117. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4937:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1118. int16 __OVERLOAD__ clamp( int16 x, int y, int z );
  1119. ^
  1120. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4936:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1121. int8 __OVERLOAD__ clamp( int8 x, int y, int z );
  1122. ^
  1123. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4935:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1124. int4 __OVERLOAD__ clamp( int4 x, int y, int z );
  1125. ^
  1126. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4934:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1127. int3 __OVERLOAD__ clamp( int3 x, int y, int z );
  1128. ^
  1129. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4933:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1130. int2 __OVERLOAD__ clamp( int2 x, int y, int z );
  1131. ^
  1132. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4932:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1133. ushort16 __OVERLOAD__ clamp( ushort16 x, ushort y, ushort z );
  1134. ^
  1135. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4931:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1136. ushort8 __OVERLOAD__ clamp( ushort8 x, ushort y, ushort z );
  1137. ^
  1138. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4930:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1139. ushort4 __OVERLOAD__ clamp( ushort4 x, ushort y, ushort z );
  1140. ^
  1141. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4929:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1142. ushort3 __OVERLOAD__ clamp( ushort3 x, ushort y, ushort z );
  1143. ^
  1144. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4928:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1145. ushort2 __OVERLOAD__ clamp( ushort2 x, ushort y, ushort z );
  1146. ^
  1147. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4927:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1148. short16 __OVERLOAD__ clamp( short16 x, short y, short z );
  1149. ^
  1150. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4926:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1151. short8 __OVERLOAD__ clamp( short8 x, short y, short z );
  1152. ^
  1153. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4925:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1154. short4 __OVERLOAD__ clamp( short4 x, short y, short z );
  1155. ^
  1156. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4924:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1157. short3 __OVERLOAD__ clamp( short3 x, short y, short z );
  1158. ^
  1159. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4923:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1160. short2 __OVERLOAD__ clamp( short2 x, short y, short z );
  1161. ^
  1162. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4922:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1163. uchar16 __OVERLOAD__ clamp( uchar16 x, uchar y, uchar z );
  1164. ^
  1165. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4921:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1166. uchar8 __OVERLOAD__ clamp( uchar8 x, uchar y, uchar z );
  1167. ^
  1168. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4920:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1169. uchar4 __OVERLOAD__ clamp( uchar4 x, uchar y, uchar z );
  1170. ^
  1171. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4919:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1172. uchar3 __OVERLOAD__ clamp( uchar3 x, uchar y, uchar z );
  1173. ^
  1174. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4918:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1175. uchar2 __OVERLOAD__ clamp( uchar2 x, uchar y, uchar z );
  1176. ^
  1177. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4917:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1178. char16 __OVERLOAD__ clamp( char16 x, char y, char z );
  1179. ^
  1180. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4916:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1181. char8 __OVERLOAD__ clamp( char8 x, char y, char z );
  1182. ^
  1183. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4915:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1184. char4 __OVERLOAD__ clamp( char4 x, char y, char z );
  1185. ^
  1186. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4914:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1187. char3 __OVERLOAD__ clamp( char3 x, char y, char z );
  1188. ^
  1189. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4913:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1190. char2 __OVERLOAD__ clamp( char2 x, char y, char z );
  1191. ^
  1192. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4912:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1193. ulong16 __OVERLOAD__ clamp( ulong16 x, ulong16 min, ulong16 max );
  1194. ^
  1195. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4911:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1196. uint16 __OVERLOAD__ clamp( uint16 x, uint16 min, uint16 max );
  1197. ^
  1198. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4910:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1199. uchar16 __OVERLOAD__ clamp( uchar16 x, uchar16 min, uchar16 max );
  1200. ^
  1201. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4909:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1202. ushort16 __OVERLOAD__ clamp( ushort16 x, ushort16 min, ushort16 max );
  1203. ^
  1204. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4908:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1205. long16 __OVERLOAD__ clamp( long16 x, long16 min, long16 max );
  1206. ^
  1207. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4907:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1208. int16 __OVERLOAD__ clamp( int16 x, int16 min, int16 max );
  1209. ^
  1210. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4906:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1211. short16 __OVERLOAD__ clamp( short16 x, short16 min, short16 max );
  1212. ^
  1213. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4905:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1214. char16 __OVERLOAD__ clamp( char16 x, char16 min, char16 max );
  1215. ^
  1216. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4904:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1217. ulong8 __OVERLOAD__ clamp( ulong8 x, ulong8 min, ulong8 max );
  1218. ^
  1219. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4903:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1220. uint8 __OVERLOAD__ clamp( uint8 x, uint8 min, uint8 max );
  1221. ^
  1222. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4902:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1223. ushort8 __OVERLOAD__ clamp( ushort8 x, ushort8 min, ushort8 max );
  1224. ^
  1225. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4901:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1226. uchar8 __OVERLOAD__ clamp( uchar8 x, uchar8 min, uchar8 max );
  1227. ^
  1228. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4900:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1229. long8 __OVERLOAD__ clamp( long8 x, long8 min, long8 max );
  1230. ^
  1231. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4899:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1232. int8 __OVERLOAD__ clamp( int8 x, int8 min, int8 max );
  1233. ^
  1234. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4898:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1235. short8 __OVERLOAD__ clamp( short8 x, short8 min, short8 max );
  1236. ^
  1237. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4897:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1238. char8 __OVERLOAD__ clamp( char8 x, char8 min, char8 max );
  1239. ^
  1240. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4896:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1241. ulong4 __OVERLOAD__ clamp( ulong4 x, ulong4 min, ulong4 max );
  1242. ^
  1243. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4895:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1244. uint4 __OVERLOAD__ clamp( uint4 x, uint4 min, uint4 max );
  1245. ^
  1246. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4894:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1247. ushort4 __OVERLOAD__ clamp( ushort4 x, ushort4 min, ushort4 max );
  1248. ^
  1249. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4893:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1250. uchar4 __OVERLOAD__ clamp( uchar4 x, uchar4 min, uchar4 max );
  1251. ^
  1252. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4892:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1253. long4 __OVERLOAD__ clamp( long4 x, long4 min, long4 max );
  1254. ^
  1255. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4891:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1256. int4 __OVERLOAD__ clamp( int4 x, int4 min, int4 max );
  1257. ^
  1258. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4890:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1259. short4 __OVERLOAD__ clamp( short4 x, short4 min, short4 max );
  1260. ^
  1261. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4889:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1262. char4 __OVERLOAD__ clamp( char4 x, char4 min, char4 max );
  1263. ^
  1264. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4888:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1265. ulong3 __OVERLOAD__ clamp( ulong3 x3, ulong3 min3, ulong3 max3 );
  1266. ^
  1267. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4887:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1268. uint3 __OVERLOAD__ clamp( uint3 x3, uint3 min3, uint3 max3 );
  1269. ^
  1270. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4886:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1271. ushort3 __OVERLOAD__ clamp( ushort3 x, ushort3 min, ushort3 max );
  1272. ^
  1273. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4885:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1274. uchar3 __OVERLOAD__ clamp( uchar3 x, uchar3 min, uchar3 max );
  1275. ^
  1276. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4884:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1277. long3 __OVERLOAD__ clamp( long3 x3, long3 min3, long3 max3 );
  1278. ^
  1279. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4883:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1280. int3 __OVERLOAD__ clamp( int3 x3, int3 min3, int3 max3 );
  1281. ^
  1282. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4882:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1283. short3 __OVERLOAD__ clamp( short3 x, short3 min, short3 max );
  1284. ^
  1285. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4881:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1286. char3 __OVERLOAD__ clamp( char3 x, char3 min, char3 max );
  1287. ^
  1288. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4880:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1289. ulong2 __OVERLOAD__ clamp( ulong2 x, ulong2 min, ulong2 max );
  1290. ^
  1291. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4879:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1292. uint2 __OVERLOAD__ clamp( uint2 x, uint2 min, uint2 max );
  1293. ^
  1294. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4878:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1295. ushort2 __OVERLOAD__ clamp( ushort2 x, ushort2 min, ushort2 max );
  1296. ^
  1297. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4877:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1298. uchar2 __OVERLOAD__ clamp( uchar2 x, uchar2 min, uchar2 max );
  1299. ^
  1300. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4876:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1301. long2 __OVERLOAD__ clamp( long2 x, long2 min, long2 max );
  1302. ^
  1303. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4875:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1304. int2 __OVERLOAD__ clamp( int2 x, int2 min, int2 max );
  1305. ^
  1306. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4874:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1307. short2 __OVERLOAD__ clamp( short2 x, short2 min, short2 max );
  1308. ^
  1309. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4873:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1310. char2 __OVERLOAD__ clamp( char2 x, char2 min, char2 max );
  1311. ^
  1312. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4872:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1313. ulong __OVERLOAD__ clamp( ulong x, ulong min, ulong max );
  1314. ^
  1315. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4871:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1316. uint __OVERLOAD__ clamp( uint x, uint min, uint max );
  1317. ^
  1318. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4870:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1319. ushort __OVERLOAD__ clamp( ushort x, ushort min, ushort max );
  1320. ^
  1321. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4869:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1322. uchar __OVERLOAD__ clamp( uchar x, uchar min, uchar max );
  1323. ^
  1324. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4868:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1325. long __OVERLOAD__ clamp( long x, long min, long max );
  1326. ^
  1327. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4867:18: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1328. int __OVERLOAD__ clamp( int x, int min, int max );
  1329. ^
  1330. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4866:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1331. short __OVERLOAD__ clamp( short x, short min, short max );
  1332. ^
  1333. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4865:19: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1334. char __OVERLOAD__ clamp( char x, char min, char max );
  1335. ^
  1336. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4864:23: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1337. double16 __OVERLOAD__ clamp( double16 x, double16 minval, double16 maxval );
  1338. ^
  1339. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4863:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1340. double8 __OVERLOAD__ clamp( double8 x, double8 minval, double8 maxval );
  1341. ^
  1342. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4862:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1343. double4 __OVERLOAD__ clamp(double4 x, double4 minval, double4 maxval);
  1344. ^
  1345. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4861:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1346. double3 __OVERLOAD__ clamp(double3 x, double3 minval, double3 maxval);
  1347. ^
  1348. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4860:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1349. double2 __OVERLOAD__ clamp(double2 x, double2 minval, double2 maxval);
  1350. ^
  1351. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4858:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1352. double __OVERLOAD__ clamp(double x, double minval, double maxval);
  1353. ^
  1354. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4844:22: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1355. float16 __OVERLOAD__ clamp( float16 x, float16 minval, float16 maxval );
  1356. ^
  1357. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4843:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1358. float8 __OVERLOAD__ clamp( float8 x, float8 minval, float8 maxval );
  1359. ^
  1360. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4842:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1361. float4 __OVERLOAD__ clamp(float4 x, float4 minval, float4 maxval);
  1362. ^
  1363. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4841:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1364. float3 __OVERLOAD__ clamp(float3 x, float3 minval, float3 maxval);
  1365. ^
  1366. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4840:21: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1367. float2 __OVERLOAD__ clamp(float2 x, float2 minval, float2 maxval);
  1368. ^
  1369. /System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang/3.2/include/cl_kernel.h:4839:20: note: candidate function not viable: requires 3 arguments, but 4 were provided
  1370. float __OVERLOAD__ clamp(float x, float minval, float maxval);
  1371. ^
  1372. Unable to compile kernel. We should debug this.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement