MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / clbench_mode

Function clbench_mode

basisu_tool.cpp:5532–5548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5530}
5531
5532static 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
5551static void force_san_failure()

Callers 1

main_internalFunction · 0.85

Calls 1

Tested by

no test coverage detected