Commit 190689fd authored by Mathieu Faverge's avatar Mathieu Faverge

At the user levl, we wait for a sequence. We need to add a MORSE_Barrier...

At the user levl, we wait for a sequence. We need to add a MORSE_Barrier function that waits for all sequences currently running
parent 6e609fe4
......@@ -38,8 +38,8 @@ int main(int argc, char *argv[]) {
size_t i, j;
size_t N; // matrix order
size_t NB; // number of rows and columns in tiles
size_t NRHS; // number of RHS vectors
int NB; // number of rows and columns in tiles
int NRHS; // number of RHS vectors
int NCPU; // number of cores to use
int NGPU; // number of gpus (cuda devices) to use
int UPLO = MorseUpper; // where is stored L
......
......@@ -36,8 +36,8 @@ int main(int argc, char *argv[]) {
size_t i, j;
size_t N; // matrix order
size_t NB; // number of rows and columns in tiles
size_t NRHS; // number of RHS vectors
int NB; // number of rows and columns in tiles
int NRHS; // number of RHS vectors
int NCPU; // number of cores to use
int NGPU; // number of gpus (cuda devices) to use
int UPLO = MorseUpper; // where is stored L
......
......@@ -40,8 +40,8 @@ int main(int argc, char *argv[]) {
size_t i, j;
size_t N; // matrix order
size_t NB; // number of rows and columns in tiles
size_t NRHS; // number of RHS vectors
int NB; // number of rows and columns in tiles
int NRHS; // number of RHS vectors
int NCPU; // number of cores to use
int NGPU; // number of gpus (cuda devices) to use
int UPLO = MorseUpper; // where is stored L
......@@ -144,7 +144,8 @@ int main(int argc, char *argv[]) {
/* Synchronization barrier (the runtime ensures that all submitted tasks
* have been terminated */
RUNTIME_barrier(morse);
MORSE_Sequence_Wait(sequence);
/* Ensure that all data processed on the gpus we are depending on are back
* in main memory */
RUNTIME_desc_getoncpu(descA);
......
......@@ -40,8 +40,8 @@ int main(int argc, char *argv[]) {
size_t i, j;
size_t N; // matrix order
size_t NB; // number of rows and columns in tiles
size_t NRHS; // number of RHS vectors
int NB; // number of rows and columns in tiles
int NRHS; // number of RHS vectors
int NCPU; // number of cores to use
int NGPU; // number of gpus (cuda devices) to use
int UPLO = MorseUpper; // where is stored L
......@@ -148,7 +148,8 @@ int main(int argc, char *argv[]) {
/* Synchronization barrier (the runtime ensures that all submitted tasks
* have been terminated */
RUNTIME_barrier(morse);
MORSE_Sequence_Wait(sequence);
/* Ensure that all data processed on the gpus we are depending on are back
* in main memory */
RUNTIME_desc_getoncpu(descA);
......
......@@ -38,8 +38,8 @@ int main(int argc, char *argv[]) {
size_t i, j;
size_t N; // matrix order
size_t NB; // number of rows and columns in tiles
size_t NRHS; // number of RHS vectors
int NB; // number of rows and columns in tiles
int NRHS; // number of RHS vectors
int NCPU; // number of cores to use
int NGPU; // number of gpus (cuda devices) to use
int GRID_P; // parameter of the 2D block cyclic distribution
......@@ -170,7 +170,8 @@ int main(int argc, char *argv[]) {
/* Synchronization barrier (the runtime ensures that all submitted tasks
* have been terminated */
RUNTIME_barrier(morse);
MORSE_Sequence_Wait(sequence);
/* Ensure that all data processed on the gpus we are depending on are back
* in main memory */
RUNTIME_desc_getoncpu(descA);
......
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