Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 92be39f6 authored by LISITO Alycia's avatar LISITO Alycia Committed by Mathieu Faverge
Browse files

testing: add check for the std api in the norm testing

parent 8916d5db
No related branches found
No related tags found
1 merge request!278Add standard api check for the norm
...@@ -123,6 +123,7 @@ testing_zlange_std( run_arg_list_t *args, int check ) ...@@ -123,6 +123,7 @@ testing_zlange_std( run_arg_list_t *args, int check )
int seedA = run_arg_get_int( args, "seedA", random() ); int seedA = run_arg_get_int( args, "seedA", random() );
/* Descriptors */ /* Descriptors */
double norm;
CHAMELEON_Complex64_t *A; CHAMELEON_Complex64_t *A;
CHAMELEON_Set( CHAMELEON_TILE_SIZE, nb ); CHAMELEON_Set( CHAMELEON_TILE_SIZE, nb );
...@@ -135,14 +136,13 @@ testing_zlange_std( run_arg_list_t *args, int check ) ...@@ -135,14 +136,13 @@ testing_zlange_std( run_arg_list_t *args, int check )
/* Calculates the norm */ /* Calculates the norm */
testing_start( &test_data ); testing_start( &test_data );
CHAMELEON_zlange( norm_type, M, N, A, LDA ); norm = CHAMELEON_zlange( norm_type, M, N, A, LDA );
test_data.hres = hres; test_data.hres = hres;
testing_stop( &test_data, flops_zlange( norm_type, M, N ) ); testing_stop( &test_data, flops_zlange( norm_type, M, N ) );
/* Checks the solution */ /* Checks the solution */
if ( check ) { if ( check ) {
// hres = check_znorm( args, ChamGeneral, norm_type, ChamUpperLower, hres = check_znorm_std( ChamGeneral, norm_type, ChamUpperLower, ChamNonUnit, norm, M, N, A, LDA );
// ChamNonUnit, norm, descA );
} }
free( A ); free( A );
......
...@@ -123,6 +123,7 @@ testing_zlanhe_std( run_arg_list_t *args, int check ) ...@@ -123,6 +123,7 @@ testing_zlanhe_std( run_arg_list_t *args, int check )
double bump = testing_dalea(); double bump = testing_dalea();
/* Descriptors */ /* Descriptors */
double norm;
CHAMELEON_Complex64_t *A; CHAMELEON_Complex64_t *A;
bump = run_arg_get_complex64( args, "bump", bump ); bump = run_arg_get_complex64( args, "bump", bump );
...@@ -137,13 +138,13 @@ testing_zlanhe_std( run_arg_list_t *args, int check ) ...@@ -137,13 +138,13 @@ testing_zlanhe_std( run_arg_list_t *args, int check )
/* Calculates the norm */ /* Calculates the norm */
testing_start( &test_data ); testing_start( &test_data );
CHAMELEON_zlanhe( norm_type, uplo, N, A, LDA ); norm = CHAMELEON_zlanhe( norm_type, uplo, N, A, LDA );
test_data.hres = hres; test_data.hres = hres;
testing_stop( &test_data, flops_zlanhe( norm_type, N ) ); testing_stop( &test_data, flops_zlanhe( norm_type, N ) );
/* Checks the solution */ /* Checks the solution */
if ( check ) { if ( check ) {
// hres = check_znorm( args, ChamHermitian, norm_type, uplo, ChamNonUnit, norm, descA ); hres = check_znorm_std( ChamHermitian, norm_type, uplo, ChamNonUnit, norm, N, N, A, LDA );
} }
free( A ); free( A );
......
...@@ -123,6 +123,7 @@ testing_zlansy_std( run_arg_list_t *args, int check ) ...@@ -123,6 +123,7 @@ testing_zlansy_std( run_arg_list_t *args, int check )
CHAMELEON_Complex64_t bump = testing_zalea(); CHAMELEON_Complex64_t bump = testing_zalea();
/* Descriptors */ /* Descriptors */
double norm;
CHAMELEON_Complex64_t *A; CHAMELEON_Complex64_t *A;
bump = run_arg_get_complex64( args, "bump", bump ); bump = run_arg_get_complex64( args, "bump", bump );
...@@ -137,13 +138,13 @@ testing_zlansy_std( run_arg_list_t *args, int check ) ...@@ -137,13 +138,13 @@ testing_zlansy_std( run_arg_list_t *args, int check )
/* Calculates the norm */ /* Calculates the norm */
testing_start( &test_data ); testing_start( &test_data );
CHAMELEON_zlansy( norm_type, uplo, N, A, LDA ); norm = CHAMELEON_zlansy( norm_type, uplo, N, A, LDA );
test_data.hres = hres; test_data.hres = hres;
testing_stop( &test_data, flops_zlansy( norm_type, N ) ); testing_stop( &test_data, flops_zlansy( norm_type, N ) );
/* Checks the solution */ /* Checks the solution */
if ( check ) { if ( check ) {
// hres = check_znorm( args, ChamSymmetric, norm_type, uplo, ChamNonUnit, norm, descA ); hres = check_znorm_std( ChamSymmetric, norm_type, uplo, ChamNonUnit, norm, N, N, A, LDA );
} }
free( A ); free( A );
......
...@@ -146,6 +146,7 @@ testing_zlantr_std( run_arg_list_t *args, int check ) ...@@ -146,6 +146,7 @@ testing_zlantr_std( run_arg_list_t *args, int check )
int seedA = run_arg_get_int( args, "seedA", random() ); int seedA = run_arg_get_int( args, "seedA", random() );
/* Descriptors */ /* Descriptors */
double norm;
CHAMELEON_Complex64_t *A; CHAMELEON_Complex64_t *A;
CHAMELEON_Set( CHAMELEON_TILE_SIZE, nb ); CHAMELEON_Set( CHAMELEON_TILE_SIZE, nb );
...@@ -158,13 +159,13 @@ testing_zlantr_std( run_arg_list_t *args, int check ) ...@@ -158,13 +159,13 @@ testing_zlantr_std( run_arg_list_t *args, int check )
/* Calculates the norm */ /* Calculates the norm */
testing_start( &test_data ); testing_start( &test_data );
CHAMELEON_zlantr( norm_type, uplo, diag, M, N, A, LDA ); norm = CHAMELEON_zlantr( norm_type, uplo, diag, M, N, A, LDA );
test_data.hres = hres; test_data.hres = hres;
testing_stop( &test_data, flops_zlantr( norm_type, uplo, M, N ) ); testing_stop( &test_data, flops_zlantr( norm_type, uplo, M, N ) );
/* Checks the solution */ /* Checks the solution */
if ( check ) { if ( check ) {
// hres = check_znorm( args, ChamTriangular, norm_type, uplo, diag, norm, descA ); hres = check_znorm_std( ChamTriangular, norm_type, uplo, diag, norm, M, N, A, LDA );
} }
free( A ); free( A );
......
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