Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] multi-threaded test
From: Eugene Loh (eugene.loh_at_[hidden])
Date: 2011-03-08 14:24:20

I've been assigned CMR 2728, which is to apply some thread-support
changes to 1.5.x. The trac ticket has amusing language about "needs
testing". I'm not sure what that means. We rather consistently say
that we don't promise anything with regards to true thread support. We
specifically say certain BTLs are off limits and we say things are
poorly tested and can be expected to break. Given all that, what does
it mean to test thread support in OMPI?

One option, specifically in the context of this CMR, is to test only
configuration options and so on. I've done this.

Another possibility is to confirm that simple run-time tests of
multi-threaded message passing succeed. I'm having trouble with this.

Attached is a simple test. It passes over sm but fails over TCP. (One
or both of the initial messages is not received.)

How high should I set my sights on this?


mpicc -xopenmp -m64 -O5 main.c

mpirun -np 2 --mca btl self,sm ./a.out
mpirun -np 2 --mca btl self,tcp ./a.out

  • text/x-csrc attachment: main.c