Re: [OMPI users] Memory corruption due to MPI_Status_c2f

2011-11-18 Thread François Trahay
om for storing the status. Francois Trahay On Friday 18 November 2011 15:12:07 François Trahay wrote: > Hi, > I have a C+Fortran program that seems to crash due to OpenMPI > implementation of MPI_Status_c2f. When my program calls this function, a > memory corruption happens. > Here

[OMPI users] Memory corruption due to MPI_Status_c2f

2011-11-18 Thread François Trahay
Hi, I have a C+Fortran program that seems to crash due to OpenMPI implementation of MPI_Status_c2f. When my program calls this function, a memory corruption happens. Here's a test program that reproduce the bug. It allocates and fills a buffer, call MPI_Status_c2f (using a valid status) and prin

Re: [OMPI users] MPI_Init() and MPI_Init_thread()

2010-03-04 Thread François Trahay
On Thursday 04 March 2010 01:32:39 Yuanyuan ZHANG wrote: > Hi guys, > > Thanks for your help, but unfortunately I am still not clear. > > > You are right Dave, FUNNELED allows the application to have multiple > > threads but only the man thread calls MPI. > > My understanding is that even if I u

Re: [OMPI users] Problem with OpenMPI (MX btl and mtl) and threads

2009-06-12 Thread François Trahay
, 2009, at 3:09 AM, François Trahay wrote: Here's the program. It should print something like that: [1 communicating threads] [0] 1 2.484936 0.402 0.384 [0] 2 2.478036 0.807 0.770 [0] 4 2.501503 1.599 1.5

Re: [OMPI users] Problem with OpenMPI (MX btl and mtl) and threads

2009-06-12 Thread François Trahay
16:05 , François Trahay wrote: concurrent_ping ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users /* * NewMadeleine * Copyright (C) 2006 (see AUTHORS file) * * This program is free software; you can redistribu

Re: [OMPI users] Problem with OpenMPI (MX btl and mtl) and threads

2009-06-11 Thread François Trahay
Oops. Here's the trace using the BTL. Francois Scott Atchley wrote: By specifying --mca pml cm, both traces are using the MTL. To use the BTL, try: $ mpiexec --mca btl mx,sm,self -machinefile ./joe -np 2 ./concurrent_ping or simply: $ mpiexec -machinefile ./joe -np 2 ./concurrent_ping Scot

Re: [OMPI users] Problem with OpenMPI (MX btl and mtl) and threads

2009-06-11 Thread François Trahay
request at the same time. This includes calling mx_test(), mx_wait(), mx_test_any() and/or mx_wait_any() where the latter two have match bits and match mask that could complete a request being tested/waited by another thread. Scott On Jun 11, 2009, at 6:00 AM, François Trahay wrote: Well,

Re: [OMPI users] Problem with OpenMPI (MX btl and mtl) and threads

2009-06-11 Thread François Trahay
wrote: Hi Francois, I am not familiar with the internals of the OMPI code. Are you sure, however, that threads are fully supported yet? I was under the impression that thread support was still partial. Can anyone else comment? Scott On Jun 8, 2009, at 8:43 AM, François Trahay wrote: Hi, I&#

[OMPI users] Problem with OpenMPI (MX btl and mtl) and threads

2009-06-08 Thread François Trahay
Hi, I'm encountering some issues when running a multithreaded program with OpenMPI (trunk rev. 21380, configured with --enable-mpi-threads) My program (included in the tar.bz2) uses several pthreads that perform ping pongs concurrently (thread #1 uses tag #1, thread #2 uses tag #2, etc.) This prog