Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
982c69c2
Commit
982c69c2
authored
Mar 04, 2019
by
Mathieu Faverge
Browse files
Add the same context options to all runtime systems
parent
4ea65e38
Changes
4
Hide whitespace changes
Inline
Side-by-side
runtime/openmp/control/runtime_context.c
View file @
982c69c2
...
@@ -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
;
}
}
runtime/parsec/control/runtime_context.c
View file @
982c69c2
...
@@ -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
;
...
...
runtime/quark/control/runtime_context.c
View file @
982c69c2
...
@@ -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
;
}
}
runtime/starpu/control/runtime_context.c
View file @
982c69c2
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
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