Commit 5ba6000e authored by PRUVOST Florent's avatar PRUVOST Florent

prevent from using magma if in simu mode

parent f1aeead1
......@@ -3,7 +3,7 @@
* @copyright (c) 2009-2014 The University of Tennessee and The University
* of Tennessee Research Foundation.
* All rights reserved.
* @copyright (c) 2012-2014 Inria. All rights reserved.
* @copyright (c) 2012-2016 Inria. All rights reserved.
* @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
*
**/
......@@ -24,6 +24,7 @@
* @author Mathieu Faverge
* @author Emmanuel Agullo
* @author Cedric Castagnede
* @author Florent Pruvost
* @date 2010-11-15
* @precisions normal z -> s d c
*
......@@ -56,7 +57,9 @@ void morse_pzpotrf(MORSE_enum uplo, MORSE_desc_t *A,
#ifdef CHAMELEON_USE_MAGMA
if (0) /* Disable the workspace as long as it is is not used*/
{
#if !defined(CHAMELEON_SIMULATION)
int nb = magma_get_zpotrf_nb(A->nb);
#endif
ws_host = sizeof(MORSE_Complex64_t)*nb*nb;
}
#endif
......
......@@ -3,7 +3,7 @@
* @copyright (c) 2009-2014 The University of Tennessee and The University
* of Tennessee Research Foundation.
* All rights reserved.
* @copyright (c) 2012-2014 Inria. All rights reserved.
* @copyright (c) 2012-2016 Inria. All rights reserved.
* @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
*
**/
......@@ -59,7 +59,9 @@ void morse_pzpotrimm(MORSE_enum uplo, MORSE_desc_t *A, MORSE_desc_t *B, MORSE_de
#ifdef CHAMELEON_USE_MAGMA
{
#if !defined(CHAMELEON_SIMULATION)
int nb = magma_get_zpotrf_nb(A->nb);
#endif
RUNTIME_options_ws_alloc( &options, nb*nb, 0 );
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment