Mentions légales du service

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

really define RUNTIME_data_migrate only if we can use starpu_mpi_data_migrate

parent 33aa963f
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* @copyright 2009-2014 The University of Tennessee and The University of * @copyright 2009-2014 The University of Tennessee and The University of
* Tennessee Research Foundation. All rights reserved. * Tennessee Research Foundation. All rights reserved.
* @copyright 2012-2017 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, * @copyright 2012-2018 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
* Univ. Bordeaux. All rights reserved. * Univ. Bordeaux. All rights reserved.
* *
*** ***
...@@ -418,6 +418,7 @@ void RUNTIME_data_flush( const MORSE_sequence_t *sequence, ...@@ -418,6 +418,7 @@ void RUNTIME_data_flush( const MORSE_sequence_t *sequence,
void RUNTIME_data_migrate( const MORSE_sequence_t *sequence, void RUNTIME_data_migrate( const MORSE_sequence_t *sequence,
const MORSE_desc_t *A, int Am, int An, int new_rank ) const MORSE_desc_t *A, int Am, int An, int new_rank )
{ {
#if defined(HAVE_STARPU_MPI_DATA_MIGRATE)
starpu_data_handle_t *handle = (starpu_data_handle_t*)(A->schedopt); starpu_data_handle_t *handle = (starpu_data_handle_t*)(A->schedopt);
starpu_data_handle_t lhandle; starpu_data_handle_t lhandle;
handle += ((int64_t)(A->lmt) * (int64_t)An + (int64_t)Am); handle += ((int64_t)(A->lmt) * (int64_t)An + (int64_t)Am);
...@@ -431,6 +432,9 @@ void RUNTIME_data_migrate( const MORSE_sequence_t *sequence, ...@@ -431,6 +432,9 @@ void RUNTIME_data_migrate( const MORSE_sequence_t *sequence,
starpu_mpi_data_migrate( MPI_COMM_WORLD, lhandle, new_rank ); starpu_mpi_data_migrate( MPI_COMM_WORLD, lhandle, new_rank );
(void)sequence; (void)sequence;
#else
(void)sequence; (void)A; (void)Am; (void)An; (void)new_rank;
#endif
} }
#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