Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5ba6000e authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

prevent from using magma if in simu mode

parent f1aeead1
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @copyright (c) 2009-2014 The University of Tennessee and The University * @copyright (c) 2009-2014 The University of Tennessee and The University
* of Tennessee Research Foundation. * of Tennessee Research Foundation.
* All rights reserved. * 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. * @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
* *
**/ **/
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
* @author Mathieu Faverge * @author Mathieu Faverge
* @author Emmanuel Agullo * @author Emmanuel Agullo
* @author Cedric Castagnede * @author Cedric Castagnede
* @author Florent Pruvost
* @date 2010-11-15 * @date 2010-11-15
* @precisions normal z -> s d c * @precisions normal z -> s d c
* *
...@@ -56,7 +57,9 @@ void morse_pzpotrf(MORSE_enum uplo, MORSE_desc_t *A, ...@@ -56,7 +57,9 @@ void morse_pzpotrf(MORSE_enum uplo, MORSE_desc_t *A,
#ifdef CHAMELEON_USE_MAGMA #ifdef CHAMELEON_USE_MAGMA
if (0) /* Disable the workspace as long as it is is not used*/ 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); int nb = magma_get_zpotrf_nb(A->nb);
#endif
ws_host = sizeof(MORSE_Complex64_t)*nb*nb; ws_host = sizeof(MORSE_Complex64_t)*nb*nb;
} }
#endif #endif
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @copyright (c) 2009-2014 The University of Tennessee and The University * @copyright (c) 2009-2014 The University of Tennessee and The University
* of Tennessee Research Foundation. * of Tennessee Research Foundation.
* All rights reserved. * 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. * @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 ...@@ -59,7 +59,9 @@ void morse_pzpotrimm(MORSE_enum uplo, MORSE_desc_t *A, MORSE_desc_t *B, MORSE_de
#ifdef CHAMELEON_USE_MAGMA #ifdef CHAMELEON_USE_MAGMA
{ {
#if !defined(CHAMELEON_SIMULATION)
int nb = magma_get_zpotrf_nb(A->nb); int nb = magma_get_zpotrf_nb(A->nb);
#endif
RUNTIME_options_ws_alloc( &options, nb*nb, 0 ); RUNTIME_options_ws_alloc( &options, nb*nb, 0 );
} }
#endif #endif
......
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