[OMPI users] FW: Issue with mpicc --showme in windows

2011-05-23 Thread AMARNATH, Balachandar
Hi,

I still don't understand why the command is trying to open a configuration file 
from a non-existing location. For me its weird..!! May be, I am doing wrong 
somewhere?  Am I missing some environment variables which I need to set before 
starts working with it ?


Regards
Balachandar

_
From: AMARNATH, Balachandar
Sent: 20 May 2011 17:48
To: 'us...@open-mpi.org'
Subject: Issue with mpicc --showme in windows


Hello,

Here in my windows machine, if i ran mpicc -showme, i get erroneous output like 
below:-

**
C:\>C:\Users\BAAMARNA5617\Programs\mpi\OpenMPI_v1.5.3-win32\bin\mpicc.exe 
--showme
Cannot open configuration file C:/Users/hpcfan/Documents/OpenMPI/openmpi-1.5.3/i
nstalled-32/share/openmpi\mpif77.exe-wrapper-data.txt
Error parsing data file mpif77.exe: Not found
**


I installed openmpi from 
http://www.open-mpi.org/software/ompi/v1.5/downloads/OpenMPI_v1.5.3-2_win32.exe 
and end up with error.  (Read in a forum that 1.4 version of openmpi does not 
support fortran bindings and hence obtained one of the recent releases). Hope 
to fix this soon,

With thanks and regards
Balachandar




The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.



Re: [OMPI users] Problem with MPI_Request, MPI_Isend/recv and MPI_Wait/Test

2011-05-23 Thread George Bosilca

On May 20, 2011, at 03:25 , David Büttner wrote:

> Hello,
> 
> thanks for the quick answer. I am sorry that I forgot to mention this: I did 
> compile OpenMPI with MPI_THREAD_MULTIPLE support and test if required == 
> provided after the MPI_Thread_init call.
> 
>> I do not see any mechanism for protecting the accesses to the requests to a 
>> single thread? What is the thread model you're using?
>> 
> Again I am sorry that this was not clear: In the pseudo code below I wanted 
> to indicate the access-protection I do by thread-id dependent calls if(0 == 
> thread-id) and by using the trylock(...) (using pthread-mutexes). In the code 
> all accesses concerning one MPI_Request (which are pthread-global-pointers in 
> my case) are protected and called in sequential order, i.e. MPI_Isend/recv is 
> returns before any thread is allowed to call the corresponding MPI_Test and 
> no-one can call MPI_Test any more when a thread is allowed to call MPI_Wait.

If all these are true the code is then supposed to work. We have multi-threaded 
software, that uses a non multi-threaded version of MPI (Open MPI in this 
instance), for overlapping communications and computations. Basically what 
we're doing is very similar to what you described above, except we ensure no 
two threads are accessing __any__ MPI functions in same time. And the code 
works perfectly.

> I did this in the same manner before with other MPI implementations, but also 
> on the same machine with the same (untouched) OpenMPI implementation, also 
> using pthreads and MPI in combination, but I used
> 
> MPI_Request req;
> 
> instead of
> 
> MPI_Request* req;
> (and later)
> req = (MPI_Request*)malloc(sizeof(MPI_Request));
> 
> 
> In my recent (problem) code, I also tried not using pointers, but got the 
> same problem. Also, as I described in the first mail, I tried everything 
> concerning the memory allocation of the MPI_Request objects.
> I tried not calling malloc. This I guessed wouldn't work, but the OpenMPI 
> documentation says this:
> 
> " Nonblocking calls allocate a communication request object and associate it 
> with the request handle  the argument request). " 
> [http://www.open-mpi.org/doc/v1.4/man3/MPI_Isend.3.php] and
> 
> " [...] if the communication object was created by a nonblocking send or 
> receive, then it is deallocated and the request handle is set to 
> MPI_REQUEST_NULL." [http://www.open-mpi.org/doc/v1.4/man3/MPI_Test.3.php] and 
> (in slightly different words) 
> [http://www.open-mpi.org/doc/v1.4/man3/MPI_Wait.3.php]
> 
> So I thought that it might do some kind of optimized memory stuff internally.
> 
> I also tried allocating req (for each used MPI_Request) once before the first 
> use and deallocation after the last use (which I thought was the way it was 
> supposed to work), but that crashes also.
> 
> I tried replacing the pointers through global variables
> 
> MPI_Request req;
> 
> which didn't do the job...
> 
> The only thing that seems to work is what I mentioned below: Allocate every 
> time I am going to need it in the MPI_Isend/recv, use it in MPI_Test/Wait and 
> after that deallocate it by hand each time.
> I don't think that this is supposed to be like this since I have to do a call 
> to malloc and free so often (for multiple MPI_Request objects in each 
> iteration) that it will most likely limit performance...

I would really recheck the code that make sure that multiple threads cannot 
complete a request in same time (MPI_Wait and MPI_Test on the same request on 
two threads). Second, I will declare the MPI_Request as volatile, to forbid the 
compiler to optimize the accesses to it.

> Anyway I still have the same problem and am still unclear on what kind of 
> memory allocation I should be doing for the MPI_Requests. Is there anything 
> else (besides MPI_THREAD_MULTIPLE support, thread access control, sequential 
> order of MPI_Isend/recv, MPI_Test and MPI_Wait for one MPI_Request object) I 
> need to take care of? If not, what could I do to find the source of my 
> problem?

If what I proposed above doesn't work, I will go for a thread correctness 
checker: valgrind, the intel thread checker or Thread Sanitizer 
(http://code.google.com/p/data-race-test/wiki/ThreadSanitizer).

  george.

> 
> Thanks again for any kind of help!
> 
> Kind regards,
> David
> 
> 
> 
>> > From an implementation perspective, your code is correct only if you 
>> > initialize the MPI library with MPI_THREAD_MULTIPLE and if the library 
>> > accepts. Otherwise, there is an assumption that the application is single 
>> > threaded, or that the MPI behavior is implementation dependent. Please 
>> > read the MPI standard regarding to MPI_Init_thread for more details.
>> 
>> Regards,
>>   george.
>> 
>> On May 19, 2011, at 02:34 , David Büttner wrote:
>> 
>>> Hello,
>>> 
>>> I am working on a hybrid MPI (OpenMPI 1.4.3) and Pthread code. I am using 
>>> MPI_Isend and MPI_Irecv for communication and MPI_Test/MPI_Wait to check if 
>

[OMPI users] Invitation to connect on LinkedIn

2011-05-23 Thread Nurul Azri Mohd Radzi via LinkedIn
LinkedIn





Nurul Azri Mohd Radzi requested to add you as a connection on LinkedIn:

--

Mohan,

I'd like to add you to my professional network on LinkedIn.

- Nurul Azri

Accept invitation from Nurul Azri Mohd Radzi
http://www.linkedin.com/e/kq0fyp-go23i09i-48/uYFEuWAc-_V_w7MB9hFjx_pd4WRoHI/blk/I47709029_55/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_djlvej8Mej0TdPh9bPB1pCpRtkFhbPAPcj8OdzoTej8LrCBxbOYWrSlI/EML_comm_afe/

View invitation from Nurul Azri Mohd Radzi
http://www.linkedin.com/e/kq0fyp-go23i09i-48/uYFEuWAc-_V_w7MB9hFjx_pd4WRoHI/blk/I47709029_55/0RdlYVcz0Vc3sTd4ALqnpPbOYWrSlI/svi/
--

DID YOU KNOW you can be the first to know when a trusted member of your network 
changes jobs? With Network Updates on your LinkedIn home page, you'll be 
notified as members of your network change their current position. Be the first 
to know and reach out!
http://www.linkedin.com/


-- 
(c) 2011, LinkedIn Corporation

Re: [OMPI users] Invitation to connect on LinkedIn

2011-05-23 Thread Jeff Squyres
Please do not send such invitations to the Open MPI lists.


On May 23, 2011, at 8:16 PM, Nurul Azri Mohd Radzi via LinkedIn wrote:

> LinkedIn
> Nurul Azri Mohd Radzi requested to add you as a connection on LinkedIn:
> Mohan,
> 
> I'd like to add you to my professional network on LinkedIn.
> 
> - Nurul Azri
> 
>  
> Accept
> View invitation from Nurul Azri Mohd Radzi
> 
>  
> 
> DID YOU KNOW you can be the first to know when a trusted member of your 
> network changes jobs?
> With Network Updates on your LinkedIn home page, you'll be notified as 
> members of your network change their current position. Be the first to know 
> and reach out!
> 
>  
> © 2011, LinkedIn Corporation
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/