[OMPI devel] Migrate OpenMPI to the VxWorks

2010-03-17 Thread 张晶
Hello all, In order to add some real-time feature to the OpenMPI for some research ,I need a OpenMPI version running on VxWorks. But after going through the Open-MPI website ,I can’t found any indication that it supports VxWorks . Follow the thread posted by Ralph Castain , http://www.open-mp

Re: [OMPI devel] Signals

2010-03-17 Thread Ralph Castain
Very good - that is pretty much all that the signal_job API does. On Mar 17, 2010, at 4:11 PM, Leonardo Fialho wrote: > Anyway, to signal another job I have sent a RML message with the > ORTE_DAEMON_SIGNAL_LOCAL_PROCS command to the proc's HNP. > > Leonardo > > On Mar 17, 2010, at 9:59 PM, Ral

Re: [OMPI devel] Signals

2010-03-17 Thread Leonardo Fialho
Anyway, to signal another job I have sent a RML message with the ORTE_DAEMON_SIGNAL_LOCAL_PROCS command to the proc's HNP. Leonardo On Mar 17, 2010, at 9:59 PM, Ralph Castain wrote: > Sorry, I was out snowshoeing today - and about 3 miles out, I suddenly > realized the problem :-/ > > Terry i

Re: [OMPI devel] Signals

2010-03-17 Thread Ralph Castain
Sorry, I was out snowshoeing today - and about 3 miles out, I suddenly realized the problem :-/ Terry is correct - we don't initialize the plm framework in application processes. However, there is a default proxy module for that framework so that applications can call comm_spawn. Unfortunately,

[OMPI devel] Problem with MPI_Type_indexed and hole (defined with MPI_Type_create_resized )

2010-03-17 Thread Pascal Deveze
Hi all, I use a very simple datatype defined as follow: lng[0]= 1; dsp[0]= 1; err=MPI_Type_indexed(1, lng, dsp, MPI_CHAR, &offtype); err=MPI_Type_create_resized(offtype, 0, 2, &filetype); MPI_Type_commit(&filetype); This datatype consists of a hole (of length 1 char) followed by

Re: [OMPI devel] Signals

2010-03-17 Thread Leonardo Fialho
Yes, I know the difference :) I'm trying to call orte_plm.signal_job from a PML component. I think PLM stays resident after launching but it doesn't only for mpirun and orted, you're right. On Mar 17, 2010, at 3:15 PM, Terry Dontje wrote: > On 03/17/2010 10:10 AM, Leonardo Fialho wrote: >> >>

Re: [OMPI devel] Signals

2010-03-17 Thread Terry Dontje
On 03/17/2010 10:10 AM, Leonardo Fialho wrote: Wow... orte_plm.signal_job points to zero. Is it correct from the PML point of view? It might be because plm's are really only used at launch time not in MPI processes. Note plm != pml. --td Leonardo On Mar 17, 2010, at 2:52 PM, Leonardo Fialh

Re: [OMPI devel] Signals

2010-03-17 Thread Leonardo Fialho
Wow... orte_plm.signal_job points to zero. Is it correct from the PML point of view? Leonardo On Mar 17, 2010, at 2:52 PM, Leonardo Fialho wrote: > To clarify a little bit more: I'm calling orte_plm.signal_job from a PML > component, I know that ORTE is bellow OMPI, but I think that this funct

Re: [OMPI devel] Signals

2010-03-17 Thread Terry Dontje
Can you print out what orte_plm.signal_job value is? I bet it is pointing to address 0. So the question is orte_plm actually initialized in an MPI process? My guess would be no but I am sure Ralph will be able to answer more definitively. --td On 03/17/2010 09:52 AM, Leonardo Fialho wrote:

Re: [OMPI devel] Signals

2010-03-17 Thread Leonardo Fialho
To clarify a little bit more: I'm calling orte_plm.signal_job from a PML component, I know that ORTE is bellow OMPI, but I think that this function could not be available, or something like this. I can't figure out where is this snprintf too, in my code there is only opal_output(0, "receive

Re: [OMPI devel] Signals

2010-03-17 Thread Ralph Castain
Thanks for clarifying - guess I won't chew just yet. :-) I still don't see in your trace where it is failing in signal_job. I didn't see the message indicating it was sending the signal cmd out in your prior debug output, and there isn't a printf in that code loop other than the debug output. C

Re: [OMPI devel] Signals

2010-03-17 Thread Leonardo Fialho
Ralph don't swallow your message yet... Both jobs are not running over the same mpirun. There are two instances of mpirun in which one runs with "-report-uri ../contact.txt" and the other receives its contact info using "-ompi-server file:../contact.txt". And yes, both processes are running with

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

2010-03-17 Thread hu yaohui
ok, got it ! On Wed, Mar 17, 2010 at 1:31 PM, George Bosilca wrote: > For the sake of completeness, and for the enlightenment of all interested > developers, I would prefer if we keep the discussion going on this mailing > list (so we will have a searchable trace for the future). > > george. > >

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

2010-03-17 Thread hu yaohui
Hi George , Thank you very much! i really had saw these functions before ,but it's a long time ,i can't find it ! Thank you very much,you save me a lot of time. Thanks & Regards, Yaohui Hu On Wed, Mar 17, 2010 at 1:28 PM, George Bosilca wrote: > Yaohui, > > The callback functions are registered

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

2010-03-17 Thread George Bosilca
For the sake of completeness, and for the enlightenment of all interested developers, I would prefer if we keep the discussion going on this mailing list (so we will have a searchable trace for the future). george. On Mar 17, 2010, at 01:25 , hu yaohui wrote: > Hi George, > did you have a gm

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

2010-03-17 Thread George Bosilca
Yaohui, The callback functions are registered by any modules that can handle network communications. In your specific case I would guess it is the PML. Look in mca/pml/ob1/pml_ob1.c starting from line 364 to see what callbacks are registered by OB1. george. On Mar 17, 2010, at 01:22 , hu ya

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

2010-03-17 Thread hu yaohui
Hi George, did you have a gmail or msn? i really want to talk to you directly.That's much fast. Thanks & Regards Yaohui Hu On Wed, Mar 17, 2010 at 12:42 PM, George Bosilca wrote: > Yoahui, > > The self component is special. While is does behave as a "normal" BTL, it > takes a lot of shortcuts as

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

2010-03-17 Thread hu yaohui
Hi Geogre, Thank you very much! i know ,it's really a receive callback in this send function mca_btl_self_send,what i want to know is where this callback function(line 303). 303reg = mca_btl_base_active_message_trigger + tag; 304reg->cbfunc( btl, tag, des, reg->cbdata ); mapped to,where

Re: [OMPI devel] Signals

2010-03-17 Thread Ralph Castain
I'm going to have to eat my last message. It slipped past me that your other job was started via comm_spawn. Since both "jobs" are running under the same mpirun, there shouldn't be a problem sending a signal between them. I don't know why this would be crashing. Are you sure it is crashing in

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

2010-03-17 Thread George Bosilca
Yoahui, The self component is special. While is does behave as a "normal" BTL, it takes a lot of shortcuts as all operations are in the memory of a single process. However, as the simplest BTLs in Open MPI, I guess it is a good starting point. As stated previously, the self BTL exhibit a lot of

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

2010-03-17 Thread hu yaohui
Hi George, what i want to do is to modify the self component to meet my needs,i just want to modify the send function of the self component to test whether my implemented send function ,which based on some emulation platform, is right.so i copied all the self component code,modified the component n

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

2010-03-17 Thread George Bosilca
Yaohui, The whole infrastructure at the level where you're looking is similar to Active Messages. The register function is used to register callback for a specific tag. A tag is a uint8_t, and thus there are 256 callbacks possible. However, there are some rules regarding which level is allowed