Page 1 of 1

Fortran error - OpenSeesMP on cluster

Posted: Sun Nov 17, 2013 5:13 pm
by brag006
I am having lots of trouble with compiling openseesMP on a cluster. I am having one issue that seems easy to solve but don't know how. Here is one example of the error:
umd2f2.f:(.text+0x103d): undefined reference to `idamax_'

But obviously I get lots of them, all related to issues with linking the fortran code when I come to build OpenSeesMP after this command is called:

mpicxx -lgfortran -rdynamic -pg -g /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/tcl/tclMain.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/tcl/mpiParameterMain.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/tcl/commands.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/modelbuilder/tcl/myCommands.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/actor/channel/MPI_Channel.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/actor/machineBroker/MPI_MachineBroker.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/system_of_eqn/linearSOE/diagonal/MPIDiagonalSOE.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/system_of_eqn/linearSOE/diagonal/MPIDiagonalSolver.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/domain/subdomain/ActorSubdomain.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/domain/subdomain/ShadowSubdomain.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/tcl/TclFeViewer.o /gpfs1m/projects/uoa00174/opensees/ver5572/SRC/tcl/TclVideoPlayer.o /gpfs1m/projects/uoa00174/opensees/ver5572/lib/libOpenSees.a -L/lib -L/gpfs1m/projects/uoa00174/lib -lm /gpfs1m/projects/uoa00174/opensees/ver5572/lib/libBlas.a /gpfs1m/projects/uoa00174/opensees/ver5572/lib/libLapack.a /gpfs1m/projects/uoa00174/opensees/ver5572/lib/libArpack.a /gpfs1m/projects/uoa00174/opensees/ver5572/lib/libSuperLU.a /gpfs1m/projects/uoa00174/opensees/ver5572/lib/libUmfpack.a /gpfs1m/projects/uoa00174/opensees/ver5572/lib/libCSparse.a /gpfs1m/projects/uoa00174/opensees/ver5572/lib/libDistributedSuperLU.a /gpfs1m/projects/uoa00174/opensees/ver5572/lib/libMetis.a /home/bver018/.local/easybuild/software/./Tk/8.5.12-gmpolf-1.4.8/lib/libtk8.5.so /home/bver018/.local/easybuild/software/./Tcl/8.5.12-gmpolf-1.4.8/lib/libtcl8.5.so -o /gpfs1m/projects/uoa00174/opensees/ver5572/bin/OpenSeesMP


Anyhelp will be much appreciated.

Re: Fortran error - OpenSeesMP on cluster

Posted: Mon Nov 18, 2013 9:10 am
by fmk
not sure about all the other missing functions, but idamax is a blas function found in OTHER/BLAS if you are using the blas provided as opposed to what is on your system .. you are including libBlas.a above .. it could be that the blas is not generating the correct function name (fgrep the lib for the idamax_, if not there that is the problem) OR this could be a matter of reordering the lib routines (welcome to linking OpenSees on linux!) .. try placing the Blas lib after the umfpack library (sometimes suplicating the librarary where it is and again after the lib that thinks it is missing it works as well!)