Add the proper valgrind params
This commit was SVN r12092.
Этот коммит содержится в:
родитель
c75cfd3efc
Коммит
e5877cc459
@ -110,6 +110,7 @@ int orte_pls_rsh_component_open(void)
|
|||||||
{
|
{
|
||||||
int tmp;
|
int tmp;
|
||||||
char *ctmp;
|
char *ctmp;
|
||||||
|
char *valgrind = "valgrind --verbose --log-file=debug.out --num-callers=100 --tool=memcheck --trace-children=no --leak-check=full --show-reachable=yes";
|
||||||
mca_base_component_t *c = &mca_pls_rsh_component.super.pls_version;
|
mca_base_component_t *c = &mca_pls_rsh_component.super.pls_version;
|
||||||
|
|
||||||
/* initialize globals */
|
/* initialize globals */
|
||||||
@ -158,7 +159,7 @@ int orte_pls_rsh_component_open(void)
|
|||||||
"Whether or not to launch the orteds under valgrind (Linux *only*)",
|
"Whether or not to launch the orteds under valgrind (Linux *only*)",
|
||||||
false, false, (int)false, &tmp);
|
false, false, (int)false, &tmp);
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
asprintf(&ctmp, "valgrind %s", mca_pls_rsh_component.orted);
|
asprintf(&ctmp, "%s %s", valgrind, mca_pls_rsh_component.orted);
|
||||||
free(mca_pls_rsh_component.orted);
|
free(mca_pls_rsh_component.orted);
|
||||||
mca_pls_rsh_component.orted = ctmp;
|
mca_pls_rsh_component.orted = ctmp;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user