| 2467 | } |
| 2468 | |
| 2469 | void |
| 2470 | parseArg(int argc, char* argv[]) |
| 2471 | { |
| 2472 | |
| 2473 | static char* help= "clblasTune - automatically tune the clblas " |
| 2474 | "library for specific hardware.\n" |
| 2475 | "\n" |
| 2476 | "clblas function related parameters:\n" |
| 2477 | " --gemm\n" |
| 2478 | " Tune kernels for the GEMM function family.\n" |
| 2479 | " --trmm\n" |
| 2480 | " Tune kernels for the TRMM function family.\n" |
| 2481 | " --trsm\n" |
| 2482 | " Tune kernels for the TRSM function family.\n" |
| 2483 | " --gemv\n" |
| 2484 | " Tune kernels for the GEMV function family.\n" |
| 2485 | " --symv\n" |
| 2486 | " Tune kernels for the SYMV function family.\n" |
| 2487 | " --syrk\n" |
| 2488 | " Tune kernels for the SYRK function family.\n" |
| 2489 | " --syr2k\n" |
| 2490 | " Tune kernels for the SYR2K function family.\n" |
| 2491 | "\n" |
| 2492 | " You can specify the parameters of " |
| 2493 | "several alternatives simultaneously.\n" |
| 2494 | "\n" |
| 2495 | " If any of these parameters is not specified the " |
| 2496 | "tool tries kernels for all the functions.\n" |
| 2497 | "\n" |
| 2498 | " Used data types:\n" |
| 2499 | " --float\n" |
| 2500 | " Single precision version of functions.\n" |
| 2501 | " --double\n" |
| 2502 | " Double precision version of functions.\n" |
| 2503 | " --complex\n" |
| 2504 | " Single complex precision version of functions.\n" |
| 2505 | " --double-complex\n" |
| 2506 | " Double complex precision version of functions.\n" |
| 2507 | "\n" |
| 2508 | " You can specify the parameters of " |
| 2509 | "several alternatives simultaneously.\n" |
| 2510 | "\n" |
| 2511 | " If any of these parameters is not specified the " |
| 2512 | "tool tries kernels for all the data types.\n" |
| 2513 | "\n" |
| 2514 | "Management:\n" |
| 2515 | " --fast\n" |
| 2516 | " Using this option allows you to accelerate " |
| 2517 | "tuning in up to 2-3 times. Achieving an optimal result " |
| 2518 | "is not guaranteed.\n" |
| 2519 | " --rebuild\n" |
| 2520 | " Re-tuning the fastest OpenCL kernels. Can be " |
| 2521 | "used after the driver update.\n" |
| 2522 | " --store-kernels\n" |
| 2523 | " Store found best kernels into a database file\n" |
| 2524 | " WARNING! The file can be very large.\n" |
| 2525 | "\n" |
| 2526 | |