Re: [OMPI devel] how to add a component in the ompi?

2010-03-16 Thread hu yaohui
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 303reg = mca_

Re: [OMPI devel] Signals

2010-03-16 Thread Leonardo Fialho
Well, thank you anyway :) On Mar 17, 2010, at 1:54 AM, Ralph Castain wrote: > Yeah, that probably won't work. The current code isn't intended to cross jobs > like that - I'm sure nobody ever tested it for that idea, and I'm pretty sure > it won't support it. > > I don't currently know any way

Re: [OMPI devel] Signals

2010-03-16 Thread Ralph Castain
Yeah, that probably won't work. The current code isn't intended to cross jobs like that - I'm sure nobody ever tested it for that idea, and I'm pretty sure it won't support it. I don't currently know any way to do what you are trying to do. We could extend the signal code to handle it, I would

Re: [OMPI devel] Signals

2010-03-16 Thread Leonardo Fialho
Yes... but something wrong is going on... maybe the problem is that the jobid is different than the process' jobid, I don't know. I'm trying to send a signal to other process running under a another job. The other process jump into an accept_connect to the MPI comm. So i did a code like this (I

Re: [OMPI devel] Signals

2010-03-16 Thread Ralph Castain
Sure! So long as you add the include, you are okay as the ORTE layer is "below" the OMPI one. On Mar 16, 2010, at 6:29 PM, Leonardo Fialho wrote: > Thanks Ralph, the last question... it orte_plm.signal_job exposed/available > to be called by a PML component? Yes, I have the orte/mca/plm/plm.h i

Re: [OMPI devel] Signals

2010-03-16 Thread Leonardo Fialho
Thanks Ralph, the last question... it orte_plm.signal_job exposed/available to be called by a PML component? Yes, I have the orte/mca/plm/plm.h include line. Leonardo On Mar 16, 2010, at 11:59 PM, Ralph Castain wrote: > It's just the orte_process_name_t jobid field. So if you have an > orte_pr

Re: [OMPI devel] Signals

2010-03-16 Thread Ralph Castain
It's just the orte_process_name_t jobid field. So if you have an orte_process_name_t *pname, then it would just be orte_plm.signal_job(pname->jobid, sig) On Mar 16, 2010, at 3:23 PM, Leonardo Fialho wrote: > Hum and to signal a job probably the function is > orte_plm.signal_job(jobid, sig

Re: [OMPI devel] Signals

2010-03-16 Thread Leonardo Fialho
Hum and to signal a job probably the function is orte_plm.signal_job(jobid, signal); right? Now my dummy question is how to obtain the jobid part from an orte_proc_name_t variable? Is there any magical function in the names_fns.h? Thanks, Leonardo On Mar 16, 2010, at 10:12 PM, Ralph Castai

Re: [OMPI devel] Signals

2010-03-16 Thread Ralph Castain
Afraid not - you can signal a job, but not a specific process. We used to have such an API, but nobody ever used it. Easy to restore if someone has a need. On Mar 16, 2010, at 2:45 PM, Leonardo Fialho wrote: > Hi, > > Is there any function in Open MPI's frameworks to send a signal to other ORTE

[OMPI devel] Signals

2010-03-16 Thread Leonardo Fialho
Hi, Is there any function in Open MPI's frameworks to send a signal to other ORTE proc? For example, the ORTE process [[1234,1],1] want to send a signal to process [[1234,1,4] locate in other node. I'm looking for this kind of functions but I just found functions to send signal to all procs i

Re: [OMPI devel] how to add a component in the ompi?

2010-03-16 Thread Jeff Squyres
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

Re: [OMPI devel] how to add a component in the ompi?

2010-03-16 Thread hu yaohui
Hi Jeff & All i add a new component into the openmpi,after configure ;make ;make install. all sounds good.but when i run the following commands accroding the TCP FAQ,i met a problem # This says to exclude the TCP BTL component # (implicitly including all others) shell$ mpirun *--mca btl ^tcp* ...

Re: [OMPI devel] how to add a component in the ompi?

2010-03-16 Thread hu yaohui
Thanks a lot ,it's ok now! On Mon, Mar 15, 2010 at 11:41 PM, Jeff Squyres wrote: > On Mar 15, 2010, at 8:18 AM, hu yaohui wrote: > > > i did what you told me before to add a new component,now i could see my > added component through ./configure --help.but when i run make ,i met some > problems