Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 982c69c2 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Add the same context options to all runtime systems

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