Commit 3ffac158 authored by Mathieu Faverge's avatar Mathieu Faverge

Silent some warning with parsec control directory

parent adcc4cc3
......@@ -22,7 +22,7 @@
int RUNTIME_sequence_create( MORSE_context_t *morse,
MORSE_sequence_t *sequence )
{
parsec_context_t *parsec = (parsec_context_t *)morse->schedopt;
parsec_context_t *parsec = (parsec_context_t *)(morse->schedopt);
parsec_taskpool_t *parsec_dtd_tp = parsec_dtd_taskpool_new();
parsec_enqueue( parsec, (parsec_taskpool_t *)parsec_dtd_tp );
......@@ -39,9 +39,8 @@ int RUNTIME_sequence_create( MORSE_context_t *morse,
int RUNTIME_sequence_destroy( MORSE_context_t *morse,
MORSE_sequence_t *sequence )
{
parsec_context_t *parsec = (parsec_context_t *)morse->schedopt;
parsec_taskpool_t *parsec_dtd_tp = (parsec_taskpool_t *) sequence->schedopt;
(void)morse;
parsec_context_t *parsec = (parsec_context_t *)(morse->schedopt);
parsec_taskpool_t *parsec_dtd_tp = (parsec_taskpool_t *)(sequence->schedopt);
assert( parsec_dtd_tp );
......@@ -80,5 +79,6 @@ void RUNTIME_sequence_flush( MORSE_context_t *morse,
sequence->request = request;
sequence->status = status;
request->status = status;
(void)morse;
return;
}
......@@ -47,6 +47,8 @@ int RUNTIME_init( MORSE_context_t *morse,
}
free(argc);
(void)ncudas;
return hres;
}
......@@ -84,7 +86,7 @@ void RUNTIME_resume( MORSE_context_t *morse )
**/
void RUNTIME_barrier( MORSE_context_t *morse )
{
parsec_context_t *parsec = (parsec_context_t*)morse->schedopt;
parsec_context_t *parsec = (parsec_context_t*)(morse->schedopt);
// This will be a problem with the fake tasks inserted to detect end of DTD algorithms
parsec_context_wait( parsec );
return;
......@@ -104,6 +106,7 @@ void RUNTIME_progress( MORSE_context_t *morse )
**/
int RUNTIME_thread_rank( MORSE_context_t *morse )
{
(void)morse;
return 0;
}
......@@ -114,6 +117,7 @@ int RUNTIME_thread_size( MORSE_context_t *morse )
{
// TODO: fixme
//return vpmap_get_nb_total_threads();
(void)morse;
return 1;
}
......
......@@ -118,8 +118,9 @@ morse_parsec_rank_of_key(parsec_data_collection_t *data_collection, parsec_data_
}
static inline int32_t
morse_parsec_vpid_of(parsec_data_collection_t *data_collection, ...)
morse_parsec_vpid_of(parsec_data_collection_t *data_collection, ... )
{
(void)data_collection;
return 0;
}
......@@ -268,6 +269,9 @@ void RUNTIME_desc_create( MORSE_desc_t *mdesc )
void RUNTIME_desc_destroy( MORSE_desc_t *mdesc )
{
morse_parsec_desc_t *pdesc = (morse_parsec_desc_t*)(mdesc->schedopt);
if ( pdesc == NULL ) {
return;
}
if ( pdesc->data_map != NULL ) {
parsec_data_t **data = pdesc->data_map;
......@@ -286,6 +290,7 @@ void RUNTIME_desc_destroy( MORSE_desc_t *mdesc )
parsec_dtd_data_collection_fini( (parsec_data_collection_t *)pdesc );
free(pdesc);
mdesc->schedopt = NULL;
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