Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] mca_base_component_var_register() MCA_BASE_VAR_TYPE_STRING
From: Jeff Squyres (jsquyres) (jsquyres_at_[hidden])
Date: 2014-02-14 11:34:56

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 <adrian_at_[hidden]> 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
> devel_at_[hidden]

Jeff Squyres
For corporate legal information go to: