Mentions légales du service

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

gered: add the possibility to define precision through environment variable

parent 945e4dec
Branches
Tags
1 merge request!474Mixed Precision / Fix small issues in the conversion kernels for a better propagation of the information in distributed
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* @version 1.3.0 * @version 1.3.0
* @author Mathieu Faverge * @author Mathieu Faverge
* @date 2023-07-06 * @date 2024-07-17
* @precisions normal z -> z d * @precisions normal z -> z d
* *
*/ */
...@@ -166,6 +166,15 @@ int CHAMELEON_zgered_Tile_Async( cham_uplo_t uplo, double precision, CHAM_desc_t ...@@ -166,6 +166,15 @@ int CHAMELEON_zgered_Tile_Async( cham_uplo_t uplo, double precision, CHAM_desc_t
return CHAMELEON_SUCCESS; return CHAMELEON_SUCCESS;
} }
if ( precision < 0. ) {
char *algostr = chameleon_getenv( "CHAMELEON_GERED_ACC" );
if ( algostr == NULL ) {
precision = 1e-12;
}
else {
precision = strtod( algostr, NULL );
}
}
chameleon_pzgered( uplo, precision, A, sequence, request ); chameleon_pzgered( uplo, precision, A, sequence, request );
return CHAMELEON_SUCCESS; return CHAMELEON_SUCCESS;
......
...@@ -167,6 +167,15 @@ int CHAMELEON_zhered_Tile_Async( cham_uplo_t uplo, double precision, CHAM_desc_t ...@@ -167,6 +167,15 @@ int CHAMELEON_zhered_Tile_Async( cham_uplo_t uplo, double precision, CHAM_desc_t
return CHAMELEON_SUCCESS; return CHAMELEON_SUCCESS;
} }
if ( precision < 0. ) {
char *algostr = chameleon_getenv( "CHAMELEON_GERED_ACC" );
if ( algostr == NULL ) {
precision = 1e-12;
}
else {
precision = strtod( algostr, NULL );
}
}
chameleon_pzhered( ChamConjTrans, uplo, precision, A, sequence, request ); chameleon_pzhered( ChamConjTrans, uplo, precision, A, sequence, request );
return CHAMELEON_SUCCESS; return CHAMELEON_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment