__kernel void %PREFIXdot_kernel( __global %TYPE *_X, __global %TYPE *_Y, __global %TYPE *scratchBuff, uint N, uint offx, int incx, uint offy, int incy, int doConj ) */
| 262 | uint N, uint offx, int incx, uint offy, int incy, int doConj ) |
| 263 | */ |
| 264 | static void |
| 265 | assignKargs(KernelArg *args, const void *params, const void* ) |
| 266 | { |
| 267 | CLBlasKargs *blasArgs = (CLBlasKargs*)params; |
| 268 | cl_int incx, incy, doConj; |
| 269 | |
| 270 | INIT_KARG(&args[0], blasArgs->B); |
| 271 | INIT_KARG(&args[1], blasArgs->C); |
| 272 | INIT_KARG(&args[2], blasArgs->D); |
| 273 | initSizeKarg(&args[3], blasArgs->N); |
| 274 | initSizeKarg(&args[4], blasArgs->offBX); |
| 275 | incx = blasArgs->ldb.Vector; |
| 276 | INIT_KARG(&args[5], incx); |
| 277 | initSizeKarg(&args[6], blasArgs->offCY); |
| 278 | incy = blasArgs->ldc.Vector; |
| 279 | INIT_KARG(&args[7], incy); |
| 280 | doConj = blasArgs->K; |
| 281 | INIT_KARG(&args[8], doConj); |
| 282 | |
| 283 | return; |
| 284 | } |
| 285 | |
| 286 | /** The purpose of this function is to add an work-group size indicator in |
| 287 | kernelKey, so that a different kernel is generated when work-group size is changed. |
nothing calls this directly
no test coverage detected