Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] how to add a component in the ompi?
From: hu yaohui (loki2441_at_[hidden])
Date: 2010-03-16 23:22:18

Hi Jeff & All
Yes,you are right,i was just a little dizzy then. i need to modify the send
function of component self in btl framework.
i just met a problem right now.
when i browse the function mca_btl_self_send(~/ompi/mca/btl/self/btl_self.c),i
think it use this to send the data
303 reg = mca_btl_base_active_message_trigger + tag;
304 reg->cbfunc( btl, tag, des, reg->cbdata );
i trace through the "mca_btl_base_active_message_trigger" to the function
where it get its value ,then i find function
like this:
728 mca_btl_base_active_message_trigger[tag].cbfunc = cbfunc;
729 mca_btl_base_active_message_trigger[tag].cbdata = data;
when i trace through mca_bml_r2_register ,in the same file,i get this
mca_bml_r2_module_t mca_bml_r2 = {
        mca_bml_r2_register, <------------------------------------

after this ,i find the place where mca_bml_r2 is initialized,but i cannt
find anything related to mca_bml_r2_register.i just want to know reg =
mca_btl_base_active_message_trigger + tag;
really is.and i want to modify the send function of self ,is this the right
way? or you can tell me the right way to modify the send function of self

Thanks & Regards
Yaohui Hu

On Wed, Mar 17, 2010 at 12:52 AM, Jeff Squyres <jsquyres_at_[hidden]> wrote:

> On Mar 16, 2010, at 9:45 AM, hu yaohui wrote:
> > it just said,i had a wrong command format,when i use mpirun --help,i
> really
> > didn't find the --mca parameter.why the tcp FAQ part list these command
> lines,
> > but it cann't execute successfully on my machine.Is there any another way
> to control the specific
> > btl components to be used?
> Make sure you're using the right mpirun -- you might have multiple
> installed on your machine.
> OMPI's "mpirun --help" definitely includes a description of the --mca
> parameter:
> -mca|--mca <arg0> <arg1>
> Pass context-specific MCA parameters; they are
> considered global if --gmca is not used and only
> one context is specified (arg0 is the parameter
> name; arg1 is the parameter value)
> --
> Jeff Squyres
> jsquyres_at_[hidden]
> For corporate legal information go to:
> _______________________________________________
> devel mailing list
> devel_at_[hidden]