Mentions légales du service

Skip to content
Snippets Groups Projects
Commit debfb49a authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Set gflops to -1 if computations failed as mentioned in !179

parent f2c3f027
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 20 deletions
......@@ -88,7 +88,7 @@ testing_zgeadd( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Check the solution */
if ( check ) {
......
......@@ -65,7 +65,7 @@ testing_zgelqf( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the factorisation and orthogonality */
if ( check ) {
......
......@@ -73,7 +73,7 @@ testing_zgelqf_hqr( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the factorisation and orthogonality */
if ( check ) {
......
......@@ -84,7 +84,7 @@ testing_zgels( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
if ( check ) {
CHAM_desc_t *descA0, *descB;
......
......@@ -90,7 +90,7 @@ testing_zgels_hqr( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
if ( check ) {
CHAM_desc_t *descA0, *descB;
......
......@@ -90,7 +90,7 @@ testing_zgemm( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Check the solution */
if ( check ) {
......
......@@ -65,7 +65,7 @@ testing_zgeqrf( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the factorisation and orthogonality */
if ( check ) {
......
......@@ -73,7 +73,7 @@ testing_zgeqrf_hqr( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the factorisation and orthogonality */
if ( check ) {
......
......@@ -81,7 +81,7 @@ testing_zgeqrs( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the factorisation, orthogonality and residue */
if ( check ) {
......
......@@ -65,7 +65,7 @@ testing_zgesv( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the factorisation and residue */
if ( check ) {
......
......@@ -53,7 +53,7 @@ testing_zgetrf( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
fprintf( stdout, "hres = %d\n", hres );
......
......@@ -62,7 +62,7 @@ testing_zgetrs( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the factorisation and residue */
if ( check ) {
......
......@@ -81,7 +81,7 @@ testing_zhemm( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the solution */
if ( check ) {
......
......@@ -83,7 +83,7 @@ testing_zher2k( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Check the solution */
if ( check ) {
......
......@@ -79,7 +79,7 @@ testing_zherk( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the solution */
if ( check ) {
......
......@@ -90,7 +90,7 @@ testing_zlacpy( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks their differences */
if ( check ) {
......
......@@ -82,7 +82,7 @@ testing_zlange( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the solution */
if ( check ) {
......
......@@ -83,7 +83,7 @@ testing_zlanhe( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the solution */
if ( check ) {
......
......@@ -83,7 +83,7 @@ testing_zlansy( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the solution */
if ( check ) {
......
......@@ -83,7 +83,7 @@ testing_zlantr( run_arg_list_t *args, int check )
STOP_TIMING( t );
gflops = flops * 1.e-9 / t;
run_arg_add_fixdbl( args, "time", t );
run_arg_add_fixdbl( args, "gflops", gflops );
run_arg_add_fixdbl( args, "gflops", ( hres == CHAMELEON_SUCCESS ) ? gflops : -1. );
/* Checks the solution */
if ( check ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment