[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bgl-discuss] MPI link problems
Hi,
Would you:
1) Recompile all your .o files with either blrts_xlf90 (for Fortran) or
blrts_xlC (for C++) (instead of using xlc++ and xlf90),
2) Remove the -lnsl from your link line, and
3) Try using:
blrts_xlC *.o -L<dir> -l<yourlibs>
-L/soft/tools/tau/tau-2.14.8/bgl/lib
-lTauMpi-mpi-pdt -L/bgl/BlueLight/ppcfloor/bglsys/lib -lmpich.rts
-lmsglayer.rts -ldevices.rts -lrts.rts -ldevices.rts
-L/soft/tools/tau/tau-2.14.8/bgl/lib -ltau-mpi-pdt
-L/opt/ibmcmp/xlf/9.1/bin/../blrts_dev_lib
-L/opt/ibmcmp/xlf/9.1/bin/../blrts_lib -lxlf90 -lxlfmath -lxl -lm
I'd avoid adding .o and -l files at the end (putting them instead at the
beginning), and send us the errors obtained after linking this way.
Thanks,
- Sameer
On Fri, 23 Sep 2005, William Gropp wrote:
> At 10:13 AM 9/23/2005, JungMin (Judy) Lee wrote:
> >If I remove -lnsl, then the errors come up like:
>
> Can you send the exact link line without the -lnsl that you used? These
> functions should be in one of the other libraries.
>
> Bill
>
> >libImpact.a(libImpact_a-AccSimulator.o): In function
> >`__accsimulatorclass_NMOD_restart_accsimulator_':
> >Contrl/AccSimulator.f90:1211: undefined reference to `mpi_bcast_'
> >Contrl/AccSimulator.f90:1212: undefined reference to `mpi_bcast_'
> ...
>
> William Gropp
> http://www.mcs.anl.gov/~gropp
>
> - --------------------------------------------------------------------
> To add or remove yourself from this mailing list, use the 'notifyme'
> command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.
>
- --------------------------------------------------------------------
To add or remove yourself from this mailing list, use the 'notifyme'
command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.