Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 07d767f2 authored by THIBAULT Samuel's avatar THIBAULT Samuel
Browse files

Add iteration numbers for traces

parent 665853f4
No related branches found
No related tags found
1 merge request!22Add iteration numbers for traces
......@@ -105,6 +105,8 @@ void morse_pzunmqr(MORSE_enum side, MORSE_enum trans,
* MorseLeft / MorseConjTrans
*/
for (k = 0; k < minMT; k++) {
RUNTIME_set_iteration(k);
tempkm = k == B->mt-1 ? B->m-k*B->mb : B->mb;
tempkmin = k == minMT-1 ? minM-k*A->nb : A->nb;
ldak = BLKLDD(A, k);
......@@ -156,6 +158,8 @@ void morse_pzunmqr(MORSE_enum side, MORSE_enum trans,
*/
else {
for (k = minMT-1; k >= 0; k--) {
RUNTIME_set_iteration(k);
tempkm = k == B->mt-1 ? B->m-k*B->mb : B->mb;
tempkmin = k == minMT-1 ? minM-k*A->nb : A->nb;
ldak = BLKLDD(A, k);
......@@ -209,6 +213,8 @@ void morse_pzunmqr(MORSE_enum side, MORSE_enum trans,
else {
if (trans == MorseConjTrans) {
for (k = minMT-1; k >= 0; k--) {
RUNTIME_set_iteration(k);
tempkn = k == B->nt-1 ? B->n-k*B->nb : B->nb;
tempkmin = k == minMT-1 ? minM-k*A->nb : A->nb;
ldak = BLKLDD(A, k);
......@@ -261,6 +267,8 @@ void morse_pzunmqr(MORSE_enum side, MORSE_enum trans,
*/
else {
for (k = 0; k < minMT; k++) {
RUNTIME_set_iteration(k);
tempkn = k == B->nt-1 ? B->n-k*B->nb : B->nb;
tempkmin = k == minMT-1 ? minM-k*A->nb : A->nb;
ldak = BLKLDD(A, k);
......
......@@ -107,6 +107,8 @@ void morse_pzunmqrrh(MORSE_enum side, MORSE_enum trans,
* MorseLeft / MorseConjTrans
*/
for (k = 0; k < K; k++) {
RUNTIME_set_iteration(k);
tempkn = k == A->nt-1 ? A->n-k*A->nb : A->nb;
for (M = k; M < A->mt; M += BS) {
tempMm = M == A->mt-1 ? A->m-M*A->mb : A->mb;
......@@ -182,6 +184,8 @@ void morse_pzunmqrrh(MORSE_enum side, MORSE_enum trans,
* MorseLeft / MorseNoTrans
*/
for (k = K-1; k >= 0; k--) {
RUNTIME_set_iteration(k);
tempkn = k == A->nt-1 ? A->n-k*A->nb : A->nb;
lastRD = 0;
for (RD = BS; RD < A->mt-k; RD *= 2)
......@@ -262,6 +266,8 @@ void morse_pzunmqrrh(MORSE_enum side, MORSE_enum trans,
* MorseRight / MorseConjTrans
*/
for (k = K-1; k >= 0; k--) {
RUNTIME_set_iteration(k);
tempkn = k == A->nt-1 ? A->n-k*A->nb : A->nb;
lastRD = 0;
for (RD = BS; RD < A->mt-k; RD *= 2)
......@@ -340,6 +346,8 @@ void morse_pzunmqrrh(MORSE_enum side, MORSE_enum trans,
* MorseRight / MorseNoTrans
*/
for (k = 0; k < K; k++) {
RUNTIME_set_iteration(k);
tempkn = k == A->nt-1 ? A->n-k*A->nb : A->nb;
for (M = k; M < A->mt; M += BS) {
tempMm = M == A->mt-1 ? A->m-M*A->mb : A->mb;
......
......@@ -34,6 +34,7 @@
/* StarPU functions */
#cmakedefine HAVE_STARPU_FXT_PROFILING
#cmakedefine HAVE_STARPU_IDLE_PREFETCH
#cmakedefine HAVE_STARPU_SET_ITERATION
#cmakedefine HAVE_STARPU_DATA_WONT_USE
#cmakedefine HAVE_STARPU_MALLOC_ON_NODE_SET_DEFAULT_FLAGS
#cmakedefine HAVE_STARPU_MPI_DATA_REGISTER
......
......@@ -52,6 +52,8 @@ int RUNTIME_rank (MORSE_context_t*);
int RUNTIME_init_scheduler (MORSE_context_t*, int, int, int);
void RUNTIME_finalize_scheduler (MORSE_context_t*);
void RUNTIME_barrier (MORSE_context_t*);
void RUNTIME_set_iteration (MORSE_context_t*, unsigned long iteration);
void RUNTIME_set_subiteration (MORSE_context_t*, unsigned long subiteration);
void RUNTIME_pause (MORSE_context_t*);
void RUNTIME_resume (MORSE_context_t*);
void RUNTIME_comm_rank (int*);
......
......@@ -67,6 +67,20 @@ void RUNTIME_barrier(MORSE_context_t *morse)
return;
}
/*******************************************************************************
* Set iteration numbers for traces
**/
void RUNTIME_set_iteration( MORSE_context_t *morse, unsigned long iteration )
{
(void)morse;
return;
}
void RUNTIME_set_subiteration( MORSE_context_t *morse, unsigned long subiteration )
{
(void)morse;
return;
}
/*******************************************************************************
* To suspend the processing of new tasks by workers
**/
......
......@@ -68,6 +68,20 @@ void RUNTIME_finalize_scheduler(MORSE_context_t *morse)
return;
}
/*******************************************************************************
* Set iteration numbers for traces
**/
void RUNTIME_set_iteration( MORSE_context_t *morse, unsigned long iteration )
{
(void)morse;
return;
}
void RUNTIME_set_subiteration( MORSE_context_t *morse, unsigned long subiteration )
{
(void)morse;
return;
}
/*******************************************************************************
* To suspend the processing of new tasks by workers
**/
......
......@@ -175,6 +175,24 @@ void RUNTIME_barrier( MORSE_context_t *morse )
#endif
}
/*******************************************************************************
* Set iteration numbers for traces
**/
void RUNTIME_set_iteration( MORSE_context_t *morse, unsigned long iteration )
{
(void)morse;
#if defined(HAVE_STARPU_SET_ITERATION)
starpu_set_iteration(iteration);
#endif
}
void RUNTIME_set_subiteration( MORSE_context_t *morse, unsigned long subiteration )
{
(void)morse;
#if defined(HAVE_STARPU_SET_ITERATION)
starpu_set_subiteration(subiteration);
#endif
}
/*******************************************************************************
* To suspend the processing of new tasks by workers
**/
......
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