diff --git a/testing/parameters.c b/testing/parameters.c index 5beb021c61b6abdc0d020e53f9dd408efa938cce..9607d83e901a779375cd70703ec49dec7fc96f10 100644 --- a/testing/parameters.c +++ b/testing/parameters.c @@ -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 );