__kernel void %PREFIXrotm_kernel( __global %TYPE *_X, __global %TYPE *_Y, uint N, uint offx, int incx, uint offy, int incy #ifndef DO_ROT , __global %TYPE *_param, uint offParam // Rotm parameters #else , %PTYPE C, %PTYPE S // Rot parameters #endif */
| 259 | #endif |
| 260 | */ |
| 261 | static void |
| 262 | assignKargs(KernelArg *args, const void *params, const void* ) |
| 263 | { |
| 264 | CLBlasKargs *blasArgs = (CLBlasKargs*)params; |
| 265 | cl_int incx, incy; |
| 266 | |
| 267 | INIT_KARG(&args[0], blasArgs->A); |
| 268 | INIT_KARG(&args[1], blasArgs->B); |
| 269 | initSizeKarg(&args[2], blasArgs->N); |
| 270 | initSizeKarg(&args[3], blasArgs->offBX); |
| 271 | incx = blasArgs->ldb.Vector; |
| 272 | INIT_KARG(&args[4], incx); |
| 273 | initSizeKarg(&args[5], blasArgs->offCY); |
| 274 | incy = blasArgs->ldc.Vector; |
| 275 | INIT_KARG(&args[6], incy); |
| 276 | |
| 277 | if(blasArgs->pigFuncID == CLBLAS_ROT) |
| 278 | { |
| 279 | DataType alphaBetaType = (blasArgs->dtype == TYPE_COMPLEX_FLOAT)? TYPE_FLOAT: |
| 280 | ((blasArgs->dtype == TYPE_COMPLEX_DOUBLE)? TYPE_DOUBLE: blasArgs->dtype); |
| 281 | assignScalarKarg(&args[7], &(blasArgs->alpha), alphaBetaType); |
| 282 | assignScalarKarg(&args[8], &(blasArgs->beta), alphaBetaType); |
| 283 | } |
| 284 | else if(blasArgs->pigFuncID == CLBLAS_ROTM) |
| 285 | { |
| 286 | INIT_KARG(&args[7], blasArgs->D); |
| 287 | initSizeKarg(&args[8], blasArgs->offd); |
| 288 | } |
| 289 | |
| 290 | return; |
| 291 | } |
nothing calls this directly
no test coverage detected