Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-24 Thread George Bosilca
Here is another way to write the code without having to pay the expensive initialization of sendreq. first_time = 0; for ( btl = ... ) { if ( SUCCESS == sendi() ) return SUCCESS; if( 0 == first_time++) set_up_expensive_send_request(); if ( SUCCESS == send() ) return

Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-23 Thread Eugene Loh
Eugene Loh wrote: Actually, there may be a more important issue here. Currently, the PML chooses the BTL first. Once the BTL choice is established, only then does the PML choose between sendi and send. Currently, it's also the case that we're spending a lot of time in the PML doing a

Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-23 Thread Eugene Loh
Actually, there may be a more important issue here. Currently, the PML chooses the BTL first. Once the BTL choice is established, only then does the PML choose between sendi and send. Currently, it's also the case that we're spending a lot of time in the PML doing a bunch of stuff that's

Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-23 Thread George Bosilca
On Feb 23, 2009, at 12:14 , Eugene Loh wrote: I'm a newbie and George is a veteran. So, this feels rather like David and Goliath. (Hmm, David won and became king. Gee, I kinda like that.) Anyhow... That's an old story, we're living in modern times now ;) George Bosilca wrote: It

Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-23 Thread Eugene Loh
I'm a newbie and George is a veteran. So, this feels rather like David and Goliath. (Hmm, David won and became king. Gee, I kinda like that.) Anyhow... George Bosilca wrote: It doesn't sound reasonable to me. There is a reason for this, and I think it's a good reason. The sendi

Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-23 Thread Brian W. Barrett
On Mon, 23 Feb 2009, Jeff Squyres wrote: On Feb 23, 2009, at 10:37 AM, Eugene Loh wrote: I sense an opening here and rush in for the kill... :-) And, why does the PML pass a BTL argument into the sendi function? First, the BTL argument is not typically used. Second, if the BTL sendi

Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-23 Thread George Bosilca
It doesn't sound reasonable to me. There is a reason for this, and I think it's a good reason. The sendi function work for some devices as a fast path for sending data, when the network is not flooded. However, in the case sendi cannot do the job we expect, the fact that it return the

Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-23 Thread Jeff Squyres
On Feb 23, 2009, at 10:37 AM, Eugene Loh wrote: I sense an opening here and rush in for the kill... :-) And, why does the PML pass a BTL argument into the sendi function? First, the BTL argument is not typically used. Second, if the BTL sendi function wants to know what BTL it is,...

Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-23 Thread Eugene Loh
I sense an opening here and rush in for the kill... And, why does the PML pass a BTL argument into the sendi function? First, the BTL argument is not typically used. Second, if the BTL sendi function wants to know what BTL it is,... uh, doesn't it already know??? Doesn't a BTL know who it

Re: [OMPI devel] RFC: eliminating "descriptor" argument from sendi function

2009-02-23 Thread Jeff Squyres
Sounds reasonable to me. George / Brian? On Feb 21, 2009, at 2:11 AM, Eugene Loh wrote: What: Eliminate the "descriptor" argument from sendi functions. Why: The only thing this argument is used for is so that the sendi function can allocate a descriptor in the event that the "send"