Mentions légales du service

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

testing/parameter: Make sure we don't use mixed precision with global and...

testing/parameter: Make sure we don't use mixed precision with global and out-of-core matrices allocations
parent d161566c
No related branches found
No related tags found
1 merge request!488Mixed precision
......@@ -13,6 +13,7 @@
* @author Mathieu Faverge
* @author Alycia Lisito
* @author Lionel Eyraud-Dubois
* @author Lucas Barros De Assis
* @date 2023-07-05
*
*/
......@@ -489,6 +490,12 @@ parameters_desc_create( const char *id, CHAM_desc_t **descptr, cham_flttype_t dt
mtxfmt = -mtxfmt; /* Inverse sign to get the defined values */
if ( cham_is_mixed( dtyp ) && ( (void*)mtxfmt != CHAMELEON_MAT_ALLOC_TILE ) )
{
fprintf( stderr, "parameters_desc_create: Mixed precision descriptors can only be used with tiled allocation. Please enforce '--mtxfmt=1' \n" );
return CHAMELEON_ERR_ILLEGAL_VALUE;
}
if ( !custom ) {
int P = parameters_getvalue_int( "P" );
int Q = parameters_compute_q( P );
......
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