Dear Sir/Madam,
I am installing OpenSees Parallel version on our linux machine. I have done "PARALLEL_INTERPRETER" option for parallel compilation using MPI library. The Makefile.def I have used and Modified as per compilation guidelines for OpenSeesMP on linux machine.
I got all the required libraries in lib directory. But I am not getting the OpenSees Binary.
As per fmk suggestion in OpenSees community post i've done with the following steps
cd into OpenSees/SRC/tcl and type make tcl. it works.
&
cd into OpenSees/SRC/modelbuiler/tcl and ype make tcl
The error I am getting while compilation is as follows:
/home/panitha/usr/local/mpich2-1.1/mpich2-install/bin/mpicxx -rdynamic -g -pg /home/panitha/OpenSees/SRC/tcl/tclMain.o /home/panitha/OpenSees/SRC/tcl/mpiParameterMain.o /home/panitha/OpenSees/SRC/tcl/commands.o /home/panitha/OpenSees/SRC/modelbuilder/tcl/myCommands.o /home/panitha/OpenSees/SRC/actor/channel/MPI_Channel.o /home/panitha/OpenSees/SRC/actor/machineBroker/MPI_MachineBroker.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/diagonal/MPIDiagonalSOE.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/diagonal/MPIDiagonalSolver.o /home/panitha/OpenSees/SRC/domain/subdomain/ActorSubdomain.o /home/panitha/OpenSees/SRC/domain/subdomain/ShadowSubdomain.o /home/panitha/OpenSees/SRC/tcl/TclFeViewer.o /home/panitha/OpenSees/SRC/tcl/TclVideoPlayer.o \
/home/panitha/lib/libOpenSees.a -L/lib /home/panitha/lib/libSuperLU.a /home/panitha/lib/libDistributedSuperLU.a -L/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/mumps/MumpsSOE.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/mumps/MumpsSolver.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/mumps/MumpsParallelSOE.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/mumps/MumpsParallelSolver.o -L/home/panitha/usr/local/scalapack -lscalapack /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/BLACS/LIB/blacsCinit.a /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/BLACS/LIB/blacsF77init.a /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/lapack/liblapack.a /home/panitha/PARALLEL/BLAS/blas.a -L/home/panitha/PARALLEL/mumps/lib -ldmumps -lmumps_common -lpord /home/panitha/usr/local/ParMetis/libparmetis.a /home/panitha/usr/local/ParMetis/libmetis.a -L/home/panitha/usr/local/scalapack -lscalapack /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/BLACS/LIB/blacsCinit.a /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/BLACS/LIB/blacsF77init.a /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/lapack/liblapack.a /home/panitha/PARALLEL/BLAS/blas.a /usr/lib64/libgfortran.so.3 /usr/lib64/libdl.so \
-L/home/panitha/usr/local/mpich2-1.1/mpich2-install/lib -lmpich /usr/lib64/libgfortran.so.3 -L/usr/lib64 -L/usr/lib64 -ldl -lm /home/panitha/lib/libDistributedSuperLU.a /home/panitha/lib/libSuperLU.a /home/panitha/lib/libArpack.a /home/panitha/lib/libAMD.a /home/panitha/lib/libDistributedSuperLU.a /home/panitha/lib/libUmfpack.a /home/panitha/lib/libCSparse.a /home/panitha/PARALLEL/lapack/liblapack.a /home/panitha/PARALLEL/BLAS/blas.a /home/panitha/lib/libCBlas.a /home/panitha/lib/libDistributedSuperLU.a /usr/lib64/libtk8.5.so /usr/lib64/libtcl8.5.so \
-I/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN /home/panitha/lib/libDistributedSuperLU.a /home/panitha/lib/libSuperLU.a -L/home/panitha/usr/local/mpich2-1.1/mpich2-install/lib -lmpich -ldl -lieee -lm -lc -lgfortran -Wl,-rpath,/usr/lib64 -lpng -L/home/panitha/usr/local/mpich2-1.1/mpich2-install/lib -lmpich /home/panitha/lib/libSuperLU.a -L/home/panitha/OpenSees/OTHER/SuperLU_DIST_2.5/SRC -L/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN /home/panitha/lib/libDistributedSuperLU.a -o /home/panitha/bin/OpenSeesMP
/home/panitha/usr/local/mpich2-1.1/mpich2-install/bin/mpicxx -rdynamic -g -pg /home/panitha/OpenSees/SRC/tcl/tclMain.o /home/panitha/OpenSees/SRC/tcl/mpiParameterMain.o /home/panitha/OpenSees/SRC/tcl/commands.o /home/panitha/OpenSees/SRC/modelbuilder/tcl/myCommands.o /home/panitha/OpenSees/SRC/actor/channel/MPI_Channel.o /home/panitha/OpenSees/SRC/actor/machineBroker/MPI_MachineBroker.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/diagonal/MPIDiagonalSOE.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/diagonal/MPIDiagonalSolver.o /home/panitha/OpenSees/SRC/domain/subdomain/ActorSubdomain.o /home/panitha/OpenSees/SRC/domain/subdomain/ShadowSubdomain.o /home/panitha/OpenSees/SRC/tcl/TclFeViewer.o /home/panitha/OpenSees/SRC/tcl/TclVideoPlayer.o /home/panitha/lib/libOpenSees.a -L/lib /home/panitha/lib/libSuperLU.a /home/panitha/lib/libDistributedSuperLU.a -L/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/mumps/MumpsSOE.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/mumps/MumpsSolver.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/mumps/MumpsParallelSOE.o /home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/mumps/MumpsParallelSolver.o -L/home/panitha/usr/local/scalapack -lscalapack /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/BLACS/LIB/blacsCinit.a /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/BLACS/LIB/blacsF77init.a /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/lapack/liblapack.a /home/panitha/PARALLEL/BLAS/blas.a -L/home/panitha/PARALLEL/mumps/lib -ldmumps -lmumps_common -lpord /home/panitha/usr/local/ParMetis/libparmetis.a /home/panitha/usr/local/ParMetis/libmetis.a -L/home/panitha/usr/local/scalapack -lscalapack /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/BLACS/LIB/blacsCinit.a /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/BLACS/LIB/blacsF77init.a /home/panitha/PARALLEL/BLACS/LIB/blacs.a /home/panitha/PARALLEL/lapack/liblapack.a /home/panitha/PARALLEL/BLAS/blas.a /usr/lib64/libgfortran.so.3 /usr/lib64/libdl.so -L/home/panitha/usr/local/mpich2-1.1/mpich2-install/lib -lmpich /usr/lib64/libgfortran.so.3 -L/usr/lib64 -L/usr/lib64 -ldl -lm /home/panitha/lib/libDistributedSuperLU.a /home/panitha/lib/libSuperLU.a /home/panitha/lib/libArpack.a /home/panitha/lib/libAMD.a /home/panitha/lib/libDistributedSuperLU.a /home/panitha/lib/libUmfpack.a /home/panitha/lib/libCSparse.a /home/panitha/PARALLEL/lapack/liblapack.a /home/panitha/PARALLEL/BLAS/blas.a /home/panitha/lib/libCBlas.a /home/panitha/lib/libDistributedSuperLU.a /usr/lib64/libtk8.5.so /usr/lib64/libtcl8.5.so -I/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN /home/panitha/lib/libDistributedSuperLU.a /home/panitha/lib/libSuperLU.a -L/home/panitha/usr/local/mpich2-1.1/mpich2-install/lib -lmpich -ldl -lieee -lm -lc -lgfortran -Wl,-rpath,/usr/lib64 -lpng -L/home/panitha/usr/local/mpich2-1.1/mpich2-install/lib -lmpich /home/panitha/lib/libSuperLU.a -L/home/panitha/OpenSees/OTHER/SuperLU_DIST_2.5/SRC -L/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN /home/panitha/lib/libDistributedSuperLU.a -o /home/panitha/bin/OpenSeesMP
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o: In function `SparseGenColLinSolver::setLinearSOE(SparseGenColLinSOE&)':
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/LinearSOESolver.h:51: multiple definition of `SparseGenColLinSolver::setLinearSOE(SparseGenColLinSOE&)'
/home/panitha/lib/libOpenSees.a(SparseGenColLinSolver.o):/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/LinearSOESolver.h:51: first defined here
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o: In function `~SparseGenColLinSolver':
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:46: multiple definition of `SparseGenColLinSolver::~SparseGenColLinSolver()'
/home/panitha/lib/libOpenSees.a(SparseGenColLinSolver.o):/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:46: first defined here
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o: In function `~SparseGenColLinSolver':
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:46: multiple definition of `SparseGenColLinSolver::~SparseGenColLinSolver()'
/home/panitha/lib/libOpenSees.a(SparseGenColLinSolver.o):/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:46: first defined here
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o: In function `~SparseGenColLinSolver':
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:46: multiple definition of `SparseGenColLinSolver::~SparseGenColLinSolver()'
/home/panitha/lib/libOpenSees.a(SparseGenColLinSolver.o):/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:46: first defined here
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o: In function `SparseGenColLinSolver':
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:39: multiple definition of `SparseGenColLinSolver::SparseGenColLinSolver(int)'
/home/panitha/lib/libOpenSees.a(SparseGenColLinSolver.o):/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:39: first defined here
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o: In function `SparseGenColLinSolver':
/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:39: multiple definition of `SparseGenColLinSolver::SparseGenColLinSolver(int)'
/home/panitha/lib/libOpenSees.a(SparseGenColLinSolver.o):/home/panitha/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.cpp:39: first defined here
collect2: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make[1]: Leaving directory `/home/panitha/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
Please give suggestions to compile it successfuly.
Thank you in advance.
Regards,
Anitha
Error while compiling the Parallel OpenSees on Linux
Moderators: silvia, selimgunay, Moderators
Re: Error while compiling the Parallel OpenSees on Linux
Dear All,
Finally Installed OpenSeesMP and as well as OpenSeesSP in linux Machine.
Regards,
Anitha
Finally Installed OpenSeesMP and as well as OpenSeesSP in linux Machine.
Regards,
Anitha
Re: Error while compiling the Parallel OpenSees on Linux
Anitha,
Could you please write how you solved the issue?
Thanks!
Could you please write how you solved the issue?
Thanks!
Re: Error while compiling the Parallel OpenSees on Linux
Dear Rafal,
Sorry for the late reply.Small changes required in the Makefile.def file. In Makefile.def while definig the PARALLEL_LIB, just define $(MUMBS_LIB) and rest of all [#$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
#$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
#$(FE)/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o \] comment out and then do make.
Probabely your code will work.
Hope this will help you.
Regards,
Anitha
Sorry for the late reply.Small changes required in the Makefile.def file. In Makefile.def while definig the PARALLEL_LIB, just define $(MUMBS_LIB) and rest of all [#$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
#$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
#$(FE)/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o \] comment out and then do make.
Probabely your code will work.
Hope this will help you.
Regards,
Anitha