Commit 982c69c2 authored by Mathieu Faverge's avatar Mathieu Faverge

Add the same context options to all runtime systems

parent 4ea65e38
......@@ -42,18 +42,21 @@ void RUNTIME_context_destroy( CHAM_context_t *chamctxt )
/**
*
*/
void RUNTIME_enable( int lever )
void RUNTIME_enable( void *runtime_ctxt, int lever )
{
switch (lever)
{
case CHAMELEON_PROFILING_MODE:
fprintf(stderr, "Profiling is not available with OpenMP\n");
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with OpenMP\n");
break;
default:
return;
case CHAMELEON_DAG:
fprintf(stderr, "DAG is not available with OpenMP\n");
break;
case CHAMELEON_PROFILING_MODE:
fprintf(stderr, "Profiling is not available with OpenMP\n");
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with OpenMP\n");
break;
default:
return;
}
return;
}
......@@ -61,18 +64,21 @@ void RUNTIME_enable( int lever )
/**
*
*/
void RUNTIME_disable( int lever )
void RUNTIME_disable( void *runtime_ctxt, int lever )
{
switch (lever)
{
case CHAMELEON_PROFILING_MODE:
fprintf(stderr, "Profiling is not available with OpenMP\n");
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with OpenMP\n");
break;
default:
return;
case CHAMELEON_DAG:
fprintf(stderr, "DAG is not available with OpenMP\n");
break;
case CHAMELEON_PROFILING_MODE:
fprintf(stderr, "Profiling is not available with OpenMP\n");
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with OpenMP\n");
break;
default:
return;
}
return;
}
......@@ -42,11 +42,18 @@ void RUNTIME_context_destroy( CHAM_context_t *chamctxt )
/**
*
*/
void RUNTIME_enable(int lever)
void RUNTIME_enable( void *runtime_ctxt, int lever )
{
switch (lever)
{
case CHAMELEON_DAG:
fprintf(stderr, "DAG is not available with PaRSEC\n");
break;
case CHAMELEON_PROFILING_MODE:
parsec_profiling_start();
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with Quark\n");
break;
default:
return;
......@@ -57,11 +64,18 @@ void RUNTIME_enable(int lever)
/**
*
*/
void RUNTIME_disable(int lever)
void RUNTIME_disable( void *runtime_ctxt, int lever )
{
switch (lever)
{
case CHAMELEON_DAG:
fprintf(stderr, "DAG is not available with PaRSEC\n");
break;
case CHAMELEON_PROFILING_MODE:
parsec_profiling_stop();
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with PaRSEC\n");
break;
default:
return;
......
......@@ -42,18 +42,22 @@ void RUNTIME_context_destroy( CHAM_context_t *chamctxt )
/**
*
*/
void RUNTIME_enable( int lever )
void RUNTIME_enable( void *runtime_ctxt, int lever )
{
switch (lever)
{
case CHAMELEON_PROFILING_MODE:
fprintf(stderr, "Profiling is not available with Quark\n");
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with Quark\n");
break;
default:
return;
case CHAMELEON_DAG:
QUARK_Barrier( runtime_ctxt );
QUARK_DOT_DAG_Enable( runtime_ctxt, 1 );
break;
case CHAMELEON_PROFILING_MODE:
fprintf(stderr, "Profiling is not available with Quark\n");
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with Quark\n");
break;
default:
return;
}
return;
}
......@@ -61,18 +65,22 @@ void RUNTIME_enable( int lever )
/**
*
*/
void RUNTIME_disable( int lever )
void RUNTIME_disable( void *runtime_ctxt, int lever )
{
switch (lever)
{
case CHAMELEON_PROFILING_MODE:
fprintf(stderr, "Profiling is not available with Quark\n");
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with Quark\n");
break;
default:
return;
case CHAMELEON_DAG:
QUARK_Barrier( runtime_ctxt );
QUARK_DOT_DAG_Enable( runtime_ctxt, 0 );
break;
case CHAMELEON_PROFILING_MODE:
fprintf(stderr, "Profiling is not available with Quark\n");
break;
case CHAMELEON_BOUND:
fprintf(stderr, "Bound computation is not available with Quark\n");
break;
default:
return;
}
return;
}
......@@ -69,18 +69,21 @@ void RUNTIME_context_destroy( CHAM_context_t *chamctxt )
/**
*
*/
void RUNTIME_enable( int lever )
void RUNTIME_enable( void *runtime_ctxt, int lever )
{
switch (lever)
{
case CHAMELEON_PROFILING_MODE:
starpu_profiling_status_set(STARPU_PROFILING_ENABLE);
break;
case CHAMELEON_BOUND:
starpu_bound_start(0, 0);
break;
default:
return;
case CHAMELEON_DAG:
fprintf(stderr, "StarPU is providing DAG generation through tracing support (CHAMELEON_PROFILING_MODE)\n");
break;
case CHAMELEON_PROFILING_MODE:
starpu_profiling_status_set(STARPU_PROFILING_ENABLE);
break;
case CHAMELEON_BOUND:
starpu_bound_start(0, 0);
break;
default:
return;
}
return;
}
......@@ -88,18 +91,21 @@ void RUNTIME_enable( int lever )
/**
*
*/
void RUNTIME_disable( int lever )
void RUNTIME_disable( void *runtime_ctxt, int lever )
{
switch (lever)
{
case CHAMELEON_PROFILING_MODE:
starpu_profiling_status_set(STARPU_PROFILING_DISABLE);
break;
case CHAMELEON_BOUND:
starpu_bound_stop();
break;
default:
return;
case CHAMELEON_DAG:
fprintf(stderr, "StarPU is providing DAG generation through tracing support (CHAMELEON_PROFILING_MODE)\n");
break;
case CHAMELEON_PROFILING_MODE:
starpu_profiling_status_set(STARPU_PROFILING_DISABLE);
break;
case CHAMELEON_BOUND:
starpu_bound_stop();
break;
default:
return;
}
return;
}
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