]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blobdiff - blis/testsuite/src/test_dotv.c
LINALG 1.2.0 iteration 1.
[dense-linear-algebra-libraries/linalg.git] / blis / testsuite / src / test_dotv.c
index 0fac9b9f7812cd6b94c1dcf8ada464e13e4d85d3..f6b7ea9b2c29233e940f48a50ee85fa6f4d6c283 100644 (file)
@@ -56,7 +56,7 @@ void libblis_test_dotv_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_dotv_impl( iface_t   iface,
@@ -116,7 +116,7 @@ void libblis_test_dotv_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;
@@ -210,13 +210,14 @@ void libblis_test_dotv_experiment( test_params_t* params,
        }
 #ifdef BLIS_ENABLE_MULTITHREAD_TEST
        // Estimate the performance of the best experiment repeat.
-       *perf = ( 2.0 * m ) *test_way / time_min / FLOPS_PER_UNIT_PERF;
-       if ( bli_obj_is_complex( y ) ) *perf *= 4.0;
+       perf->gflops = ( 2.0 * m ) *test_way / time_min / FLOPS_PER_UNIT_PERF;
+       if ( bli_obj_is_complex( y ) ) perf->gflops *= 4.0;
 #else
        // Estimate the performance of the best experiment repeat.
-       *perf = ( 2.0 * m ) / time_min / FLOPS_PER_UNIT_PERF;
-       if ( bli_obj_is_complex( y ) ) *perf *= 4.0;
+       perf->gflops = ( 2.0 * m ) / time_min / FLOPS_PER_UNIT_PERF;
+       if ( bli_obj_is_complex( y ) ) perf->gflops *= 4.0;
 #endif
+       perf->time = time_min;
 
 #ifdef BLIS_ENABLE_MULTITHREAD_TEST
        // Check output of each thread, and send max residue to main