Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
fe80ed24
Commit
fe80ed24
authored
Jan 31, 2018
by
Mathieu Faverge
Browse files
Add migration function
parent
941c433a
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/chameleon/chameleon_config.h.in
View file @
fe80ed24
...
...
@@ -36,6 +36,10 @@
/* Communication engine */
#cmakedefine CHAMELEON_USE_MPI
#cmakedefine CHAMELEON_USE_MIGRATE
#if !defined(CHAMELEON_USE_MPI) && defined(CHAMELEON_USE_MIGRATE)
#undef CHAMELEON_USE_MIGRATE
#endif
/* GPU Support */
#cmakedefine CHAMELEON_USE_CUDA
...
...
include/chameleon/morse_runtime.h
View file @
fe80ed24
...
...
@@ -444,6 +444,39 @@ void
RUNTIME_data_flush
(
const
MORSE_sequence_t
*
sequence
,
const
MORSE_desc_t
*
A
,
int
Am
,
int
An
);
/**
* @brief Migrate a single piece of data.
*
* This function migrate a piece of data from its original rank to the new_rank
* and changes its ownership.
*
* @param[in] sequence
* The sequence in which the data is used.
*
* @param[in] A
* The descriptor to which the piece of data belongs.
*
* @param[in] Am
* The row coordinate of the piece of data in the matrix
*
* @param[in] An
* The column coordinate of the piece of data in the matrix
*
* @param[in] new_rank
* The new_rank on which to migrate the data
*/
#if defined(CHAMELEON_USE_MIGRATE)
void
RUNTIME_data_migrate
(
const
MORSE_sequence_t
*
sequence
,
const
MORSE_desc_t
*
A
,
int
Am
,
int
An
,
int
new_rank
);
#else
static
inline
void
RUNTIME_data_migrate
(
const
MORSE_sequence_t
*
sequence
,
const
MORSE_desc_t
*
A
,
int
Am
,
int
An
,
int
new_rank
)
{
(
void
)
sequence
;
(
void
)
A
;
(
void
)
Am
;
(
void
)
An
;
(
void
)
new_rank
;
}
#endif
/**
* @brief Get the pointer to the data or the runtime handler associated to the
* piece of data (m, n) in desc.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment