[cam-users] RE: mpirun on boewulf cluster
Jim Rosinski
rosinski@cgd.ucar.edu
Fri, 6 Sep 2002 11:37:44 -0600 (MDT)
On Fri, 6 Sep 2002, Ghan, Steven J wrote:
> I have found that the problem mentioned below has nothing to do with the
> failure of the execution of CAM on a beowulf cluster. Rather, it is due to
> the threading option -mp used to compile with pgf90. If -mp is used then the
> thread library must be linked, that is
> -L/usr/local/lib -lmpich -lpthread
> where /usr/local/lib contains the portland group thread library
> libpgthread.so
> Otherwise CAM chokes on mpi_init.
Haven't looked at the Makefile in quite a while. But -mp added to LDFLAGS
should accomplish this without having to specify crap like threading library
names and locations. If it's not already included in LDFLAGS when the
compiler is pgf90 and threading is enabled, then it is a bug in the Makefile.
Jim Rosinski