{
fprintf(fp,
"result\t"
- "cycles\t"
+ "cycles_per_channel\t"
"type\t"
"sep_func\t"
"sep_src_factor\t"
{
fprintf(fp, "%s\t", success ? "pass" : "fail");
- fprintf(fp, "%.1f\t", cycles + 0.5);
+ fprintf(fp, "%.1f\t", cycles / type.length);
fprintf(fp, "%s%u%sx%u\t",
type.floating ? "f" : (type.fixed ? "h" : (type.sign ? "s" : "u")),
{
fprintf(fp,
"result\t"
- "cycles\t"
- "type\t"
+ "cycles_per_channel\t"
"src_type\t"
"dst_type\n");
{
fprintf(fp, "%s\t", success ? "pass" : "fail");
- fprintf(fp, "%.1f\t", cycles + 0.5);
+ fprintf(fp, "%.1f\t", cycles / MAX2(src_type.length, dst_type.length));
dump_type(fp, src_type);
fprintf(fp, "\t");
dump_type(fp, dst_type);
- fprintf(fp, "\t");
+ fprintf(fp, "\n");
fflush(fp);
}
/* We must not loose or gain channels. Only precision */
assert(src_type.length * num_srcs == dst_type.length * num_dsts);
-
module = LLVMModuleCreateWithName("test");
func = add_conv_test(module, src_type, num_srcs, dst_type, num_dsts);