index a2e4bfc5f01769f4c3e368272daaba751cb9beba..56517fd76ccd9f8233a3d9963ef4c834c38022d9 100644 (file)
char* pc_str,
char* sc_str,
unsigned int p_cur,
- double* perf,
+ perf_t* perf,
double* resid );
void libblis_test_herk_impl( iface_t iface,
char* pc_str,
char* sc_str,
unsigned int p_cur,
- double* perf,
+ perf_t* perf,
double* resid )
{
unsigned int n_repeats = params->n_repeats;
// Estimate the performance of the best experiment repeat.
#ifdef BLIS_ENABLE_MULTITHREAD_TEST
- *perf = ( 1.0 * m * m * k ) * test_way/ time_min / FLOPS_PER_UNIT_PERF;
- if ( bli_obj_is_complex( c[0] ) ) *perf *= 4.0;
+ perf->gflops = ( 1.0 * m * m * k ) * test_way/ time_min / FLOPS_PER_UNIT_PERF;
+ if ( bli_obj_is_complex( c[0] ) ) perf->gflops *= 4.0;
#else
- *perf = ( 1.0 * m * m * k ) / time_min / FLOPS_PER_UNIT_PERF;
- if ( bli_obj_is_complex( c ) ) *perf *= 4.0;
+ perf->gflops = ( 1.0 * m * m * k ) / time_min / FLOPS_PER_UNIT_PERF;
+ if ( bli_obj_is_complex( c ) ) perf->gflops *= 4.0;
#endif
+ perf->time = time_min;
+
// Perform checks.
#ifdef BLIS_ENABLE_MULTITHREAD_TEST
// Check output of each thread, and send max residue to main