Mentions légales du service

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

Add schedopt parameter to RUNTIME_disable/enable

parent 982c69c2
No related branches found
No related tags found
1 merge request!146Issue49 - Restore DAG support for Quark
......@@ -51,10 +51,12 @@ void chameleon_warning(const char *func_name, const char *msg_text)
CHAM_context_t *chamctxt;
chamctxt = chameleon_context_self();
if (chamctxt == NULL)
if (chamctxt == NULL) {
chameleon_fatal_error("chameleon_warning", "CHAMELEON not initialized");
if (chamctxt->warnings_enabled)
}
if (chamctxt->warnings_enabled) {
fprintf(stderr, "CHAMELEON WARNING: %s(): %s\n", func_name, msg_text);
}
}
/**
......
......@@ -168,7 +168,7 @@ int CHAMELEON_Enable(int option)
}
/* Enable at the lower level if required */
RUNTIME_enable( option );
RUNTIME_enable( chamctxt->schedopt, option );
return CHAMELEON_SUCCESS;
}
......@@ -231,7 +231,7 @@ int CHAMELEON_Disable(int option)
}
/* Disable at the lower level if required */
RUNTIME_disable( option );
RUNTIME_disable( chamctxt->schedopt, option );
return CHAMELEON_SUCCESS;
}
......
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