-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add deprecated synonyms to removed params #703
Draft
abouteiller
wants to merge
1
commit into
ICLDisco:master
Choose a base branch
from
abouteiller:doc/warn-old-params
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -378,7 +378,7 @@ static void parsec_vp_init( parsec_vp_t *vp, | |
|
||
parsec_context_t* parsec_init( int nb_cores, int* pargc, char** pargv[] ) | ||
{ | ||
int ret, nb_vp, p, t, nb_total_comp_threads, display_vpmap = 0; | ||
int ret, idx, nb_vp, p, t, nb_total_comp_threads, display_vpmap = 0; | ||
int comm_binding_parameter = -1; | ||
char *binding_parameter = NULL; | ||
__parsec_temporary_thread_initialization_t *startup; | ||
|
@@ -521,14 +521,17 @@ parsec_context_t* parsec_init( int nb_cores, int* pargc, char** pargv[] ) | |
false, false, vpmap_parameter, &vpmap_parameter); | ||
|
||
/* thread binding */ | ||
parsec_mca_param_reg_int_name("bind", "main_thread", "Force the binding of the thread calling parsec_init", | ||
idx = parsec_mca_param_reg_int_name("bind", "main_thread", "Force the binding of the thread calling parsec_init", | ||
false, false, parsec_runtime_bind_main_thread, &parsec_runtime_bind_main_thread); | ||
parsec_mca_param_reg_int_name("bind", "threads", "Bind main and worker threads", false, false, | ||
parsec_mca_param_reg_syn_name(idx, "runtime", "bind_main_thread", true); | ||
idx = parsec_mca_param_reg_int_name("bind", "threads", "Bind main and worker threads", false, false, | ||
parsec_runtime_bind_threads, &parsec_runtime_bind_threads); | ||
parsec_mca_param_reg_int_name("bind", "comm", "Bind the communication thread to physical core <int>." | ||
parsec_mca_param_reg_syn_name(idx, "parsec", "bind", true); | ||
idx = parsec_mca_param_reg_int_name("bind", "comm", "Bind the communication thread to physical core <int>." | ||
"-1: do not bind." | ||
"Warning: binding relies on HWLOC, be careful when using with cgroups", | ||
false, false, comm_binding_parameter, &comm_binding_parameter); | ||
parsec_mca_param_reg_syn_name(idx, "parsec", "bind_comm", true); | ||
parsec_mca_param_reg_string_name("bind", "map", "Provide a map description of the binding.", | ||
false, false, binding_parameter, &binding_parameter); | ||
|
||
|
@@ -587,8 +590,9 @@ parsec_context_t* parsec_init( int nb_cores, int* pargc, char** pargv[] ) | |
|
||
#if defined(PARSEC_PROF_GRAPHER) | ||
char *dot_param = NULL; | ||
parsec_mca_param_reg_string_name("profile", "dot", "Prefix for the DOT file name containing the DAGs executed by parsec (one file per rank)", | ||
idx = parsec_mca_param_reg_string_name("profile", "dot", "Prefix for the DOT file name containing the DAGs executed by parsec (one file per rank)", | ||
false, false, dot_param, &dot_param); | ||
parsec_mca_param_reg_syn_name(idx, "parsec", "dot", true); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
if( NULL != dot_param ) { | ||
asprintf(&parsec_dot_file, "%s-%d.dot", dot_param, parsec_debug_rank); | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have
parsec_bin_main_thread
andparsec_bin_comm
? Make itparsec_bind_comm_thread
to be similar.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the description to explain: the synonyms are reintroduced for the only purpose of complaining if they are used, and they are expected to be inconsistent (reason they got removed in the first place)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I get you, the synonym registration with
deprecated=true
does not cause a warning to be issued when the mca is used, but only when calling mca_show_params does a warning get issued. Am I using this wrong?