Believe it or not, this is actually one of the areas of the OMPI code base that 
is fairly well documented (gasp!).  :-)

Check out opal/mca/base/mca_var.h for MCA vars (i.e., MPI_T control variables), 
and mca_pvar.h for MPI_T performance variables.



On Feb 14, 2014, at 11:31 AM, Adrian Reber <adr...@lisas.de> wrote:

> I am trying to find out how to deal with string variables. Do I have to
> allocate the memory before calling mca_base_component_var_register() or
> not? It seems it does a strdup() meaning it has to be free()'d while
> closing the component. Looking at other occurrences of string variables
> I see different usages. Sometimes it set to NULL sometimes not. Before
> following a wrong example maybe someone can tell me what the correct
> usage is.
> 
>               Adrian
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/devel


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/

Reply via email to