| 176 | } |
| 177 | |
| 178 | static void helper_after_test( |
| 179 | enum ggml_opt_optimizer_type optim, |
| 180 | const char * func, const bool high_level, const std::string options, |
| 181 | const std::string subtest, const bool subtest_ok, int & ntest, int & npass) { |
| 182 | printf(" %s(high_level=%s%s, subtest=%s, optimizer=%s): ", |
| 183 | func, high_level ? "yes" : "no", options.c_str(), subtest.c_str(), ggml_opt_optimizer_name(optim)); |
| 184 | print_ok(subtest_ok); |
| 185 | if (subtest_ok) |
| 186 | npass++; |
| 187 | ntest++; |
| 188 | } |
| 189 | |
| 190 | static void print_ok(const char * func, bool subtest_ok, int & npass, int & ntest, const char * args = "") { |
| 191 | printf(" %s(%s): ", func, args); |
no test coverage detected