| 5530 | } |
| 5531 | |
| 5532 | static bool clbench_mode(command_line_params& opts) |
| 5533 | { |
| 5534 | BASISU_NOTE_UNUSED(opts); |
| 5535 | |
| 5536 | bool opencl_failed = false; |
| 5537 | bool use_cl = basis_benchmark_etc1s_opencl(&opencl_failed); |
| 5538 | if (use_cl) |
| 5539 | printf("OpenCL ETC1S encoding is faster on this machine\n"); |
| 5540 | else |
| 5541 | { |
| 5542 | if (opencl_failed) |
| 5543 | printf("OpenCL failed!\n"); |
| 5544 | printf("CPU ETC1S encoding is faster on this machine\n"); |
| 5545 | } |
| 5546 | |
| 5547 | return true; |
| 5548 | } |
| 5549 | |
| 5550 | #ifdef FORCE_SAN_FAILURE |
| 5551 | static void force_san_failure() |
no test coverage detected