Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Gus Correa
Orion Poplawski wrote: Gus Correa wrote: Hi Orion, Prentice, list I had a related problem recently, building OpenMPI with gcc, g++ and pgf90 8.0-4 on CentOS 5.2. Configure would complete, but not make. Easier solution is to set FC to "pgf90 -noswitcherror". Does not appear to interfere wit

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Orion Poplawski
Gus Correa wrote: Hi Orion, Prentice, list I had a related problem recently, building OpenMPI with gcc, g++ and pgf90 8.0-4 on CentOS 5.2. Configure would complete, but not make. Easier solution is to set FC to "pgf90 -noswitcherror". Does not appear to interfere with any configure tests.

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Jeff Squyres
On Apr 14, 2009, at 11:28 AM, Orion Poplawski wrote: Sorry, it inherits it from libmpi.la. I hate libtool. To be fair, Libtool actually does a pretty darn good job at a very complex job. :-) These corner cases are pretty obscure (mixing one vendor's fortran compiler with another vend

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Orion Poplawski
Gus Correa wrote: Hi Orion, Prentice, list I had a related problem recently, building OpenMPI with gcc, g++ and pgf90 8.0-4 on CentOS 5.2. Configure would complete, but not make. See this thread for a workaround: http://www.open-mpi.org/community/lists/users/2009/04/8724.php Gus Correa Than

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Gus Correa
Hi Orion That's exactly what happened to me. Configured OK, failed on make because of "-pthread". See my message from a minute ago, and this thread, for a workaround suggested by Jeff Squyres, of stripping off "-phtread" from the pgf90 flags: http://www.open-mpi.org/community/lists/users/2009/04

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Orion Poplawski
Orion Poplawski wrote: Looks like libtool is adding -pthread because it sees that you use -pthread to link C programs and assumes that all linkers use it. Sorry, it inherits it from libmpi.la. I hate libtool. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/Co

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Orion Poplawski
Orion Poplawski wrote: ./configure LIBS=-lgcc_eh ... did the trick. Spoke too soon. This leads to: /bin/sh ../../../libtool --mode=link pgf90 -I../../../ompi/include -I../../../ompi/include -I. -I. -I../../../ompi/mpi/f90 -fastsse -fPIC -export-dynamic -Wl,-z,noexecstack -o libmpi_f90

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Gus Correa
Hi Orion, Prentice, list I had a related problem recently, building OpenMPI with gcc, g++ and pgf90 8.0-4 on CentOS 5.2. Configure would complete, but not make. See this thread for a workaround: http://www.open-mpi.org/community/lists/users/2009/04/8724.php Gus Correa -

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Orion Poplawski
Orion Poplawski wrote: Looks like I need link to -lgcc_eh some how. ./configure LIBS=-lgcc_eh ... did the trick. checking if F77 compiler and POSIX threads work as is... yes checking if C compiler and POSIX threads work with -Kthread... no checking if C compiler and POSIX threads work with

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Orion Poplawski
Prentice Bisbal wrote: Orion, I have no trouble getting thread support during configure with PGI 8.0-3 I'm mixing the pgf and gcc compilers which causes the trouble. Here is the config.log entry for the F77 test: configure:65969: checking if F77 compiler and POSIX threads work as is configur

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Prentice Bisbal
Orion, I have no trouble getting thread support during configure with PGI 8.0-3 Are there any other compilers in your path before the PGI compilers? Even if the PGI compilers come first, try specifying the PGI compilers explicitly with these environment variables (bash syntax shown): export CC=p

Re: [OMPI users] PGI Fortran pthread support

2009-04-14 Thread Åke Sandgren
On Mon, 2009-04-13 at 16:48 -0600, Orion Poplawski wrote: > Seeing the following building openmpi 1.3.1 on CentOS 5.3 with PGI pgf90 > 8.0-5 fortran compiler: > checking for PTHREAD_MUTEX_ERRORCHECK_NP... yes > checking for PTHREAD_MUTEX_ERRORCHECK... yes > checking for working POSIX threads packa

Re: [OMPI users] PGI Fortran pthread support

2009-04-13 Thread Jeff Squyres
Please send all the information listed here: http://www.open-mpi.org/community/help/ Thanks. On Apr 13, 2009, at 6:48 PM, Orion Poplawski wrote: Seeing the following building openmpi 1.3.1 on CentOS 5.3 with PGI pgf90 8.0-5 fortran compiler: checking if C compiler and POSIX threads wo

[OMPI users] PGI Fortran pthread support

2009-04-13 Thread Orion Poplawski
Seeing the following building openmpi 1.3.1 on CentOS 5.3 with PGI pgf90 8.0-5 fortran compiler: checking if C compiler and POSIX threads work with -Kthread... no checking if C compiler and POSIX threads work with -kthread... no checking if C compiler and POSIX threads work with -pthread... yes