]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blobdiff - blis/testsuite/src/test_setm.c
LINALG 1.2.0 iteration 1.
[dense-linear-algebra-libraries/linalg.git] / blis / testsuite / src / test_setm.c
index 316e8edadb91d502835400f09bd254cb5f108fb5..6a71f37b840efcd8495e045611be2ef474984e3c 100644 (file)
@@ -56,7 +56,7 @@ void libblis_test_setm_experiment( test_params_t* params,
                                    char*          pc_str,
                                    char*          sc_str,
                                    unsigned int   p_cur,
-                                   double*        perf,
+                                   perf_t*        perf,
                                    double*        resid );
 
 void libblis_test_setm_impl( iface_t   iface,
@@ -112,7 +112,7 @@ void libblis_test_setm_experiment( test_params_t* params,
                                    char*          pc_str,
                                    char*          sc_str,
                                    unsigned int   p_cur,
-                                   double*        perf,
+                                   perf_t*        perf,
                                    double*        resid )
 {
        unsigned int n_repeats = params->n_repeats;
@@ -158,8 +158,9 @@ void libblis_test_setm_experiment( test_params_t* params,
        }
 
        // Estimate the performance of the best experiment repeat.
-       *perf = ( 1.0 * m * n ) / time_min / FLOPS_PER_UNIT_PERF;
-       if ( bli_obj_is_complex( x ) ) *perf *= 2.0;
+       perf->gflops = ( 1.0 * m * n ) / time_min / FLOPS_PER_UNIT_PERF;
+       if ( bli_obj_is_complex( x ) ) perf->gflops *= 2.0;
+       perf->time = time_min;
 
        // Perform checks.
        libblis_test_setm_check( &beta, &x, resid );