Commit 8a285002 authored by Mathieu Faverge's avatar Mathieu Faverge

Add schedopt parameter to RUNTIME_disable/enable

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