Mentions légales du service

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

control: Add a protection on the value of ib

parent 19c83ef3
No related branches found
No related tags found
1 merge request!405GETRF: Add a blocked version of the LU partial pivoting algorithm
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* @brief Chameleon context management routines * @brief Chameleon context management routines
* *
* @version 1.2.0 * @version 1.3.0
* @author Jakub Kurzak * @author Jakub Kurzak
* @author Mathieu Faverge * @author Mathieu Faverge
* @author Cedric Castagnede * @author Cedric Castagnede
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* @author Matthieu Kuhn * @author Matthieu Kuhn
* @author Loris Lucido * @author Loris Lucido
* @author Terry Cojean * @author Terry Cojean
* @date 2022-02-22 * @date 2023-09-11
* *
*** ***
* *
...@@ -379,6 +379,8 @@ int CHAMELEON_Set( int param, int value ) ...@@ -379,6 +379,8 @@ int CHAMELEON_Set( int param, int value )
/* return CHAMELEON_ERR_ILLEGAL_VALUE; */ /* return CHAMELEON_ERR_ILLEGAL_VALUE; */
/* } */ /* } */
chamctxt->ib = value; chamctxt->ib = value;
/* Limit ib to nb */
chamctxt->ib = chameleon_min( chamctxt->nb, chamctxt->ib );
if ( chamctxt->autotuning_enabled ) { if ( chamctxt->autotuning_enabled ) {
chamctxt->autotuning_enabled = CHAMELEON_FALSE; chamctxt->autotuning_enabled = CHAMELEON_FALSE;
......
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