Problems building parallel version of Xyce on RHEL6

140 views
Skip to first unread message

jsar...@gmail.com

unread,
May 21, 2014, 11:50:13 AM5/21/14
to xyce-...@googlegroups.com
I am using the following command to configure the parallel version
 

[hpcapps@cusco build_parallel]$ cat build

#!/bin/bash

../configure --prefix=/share/apps/xyce-6.1 --enable-mpi \

CXXFLAGS="-O3" \

LDFLAGS="-L/share/apps/xyce-6.1/XyceLibs/Parallel/lib -L/share/apps/fftw-3.3.3/lib" \

CPPFLAGS="-I/usr/include/suitesparse -I/share/apps/xyce-6.1/XyceLibs/Parallel/include -I/share/apps/fftw-3.3.3/include"
 
It runs for a while and then I get this
 

checking for library containing sqrt... -lm

checking for library containing dcopy... -lblas

checking for library containing dgetrs... -llapack

checking for library containing MPI_Bcast... no

checking for METIS_PartGraphKway in -lmetis... yes

checking for ParMETIS_PartKway in -lparmetis... no

checking for ParMETIS_V3_PartKway in -lparmetis... no

configure: error: FATAL: ParMETIS library not found or not valid

 

I do have the library

 

[hpcapps@cusco build_parallel]$ ls /share/apps/xyce-6.1/XyceLibs/Parallel/lib

cmake               libloca.a         libshylu.a

libamesos.a         liblocaepetra.a   libteuchoscomm.a

libanasazi.a        liblocalapack.a   libteuchoscore.a

libanasaziepetra.a  libmetis.a        libteuchosnumerics.a

libaztecoo.a        libml.a           libteuchosparameterlist.a

libbelos.a          libModeLaplace.a  libteuchosremainder.a

libbelosepetra.a    libnox.a          libtrilinoscouplings.a

libepetra.a         libnoxepetra.a    libtriutils.a

libepetraext.a      libnoxlapack.a    libzoltan.a

libifpack.a         libparmetis.a

libisorropia.a      libsacado.a

I am attaching the config.log.  I am not sure what I am doing wrong to get this to build properly.  I tried both parmethis 4.0.3 and 3.2.0.  This is currently with 4.0.3.

 

Thanks.

Jeff

 
config.log

XYCE

unread,
May 22, 2014, 12:29:56 PM5/22/14
to jsar...@gmail.com

Jeff,

When building parallel support in Xyce, you’ll need to specify “—enable-mpi” which you did but also the MPI compiler wrappers like mpicc and mpicxx. 

For example add “CC=/your/path/to/mpicc” and “CXX=/your/path/to/mpicxx” to your call to configure.

Also, if you look at the config.log where it fails to link to the parmetis library, it is trying to use the regular system “cc” compiler and then failing to find symbols defined in the MPI libraries.

cc -o conftest -g -O2 -DXyce_FFTW -DXyce_IntelFFT -DXyce_FFT -DXyce_REACTION_PARSER -DXyce_FORTRAN_TEST -DXyce_OP_START -DXyce_AMD -DXyce_BELOS -DXyce_UMFPACK -DXyce_USE_ZOLTAN -DXyce_USE_ISORROPIA -DXyce_EXTDEV -DXyce_NOX_USE_VECTOR_COPY -DXyce_SPICE_NORMS -DXyce_PARALLEL_MPI -I/usr/include/suitesparse -I/share/apps/xyce-6.1/XyceLibs/Parallel/include -I/share/apps/fftw-3.3.3/include -L/share/apps/xyce-6.1/XyceLibs/Parallel/lib -L/share/apps/fftw-3.3.3/lib -L/lib conftest.c -lparmetis  -lmetis -llapack -lblas -lm   -L/share/apps/xyce-6.1/XyceLibs/Parallel/lib -L/share/apps/fftw-3.3.3/lib -L/lib -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../.. -lgfortranbegin -lgfortran -lm >&5

/share/apps/xyce-6.1/XyceLibs/Parallel/lib/libparmetis.a(kmetis.c.o): In function `ParMETIS_V3_PartKway':
kmetis.c:(.text+0xa02): undefined reference to `MPI_Wtime'
kmetis.c:(.text+0xa72): undefined reference to `MPI_Wtime’


Xyce Team.




Jeff Sarlo

unread,
May 22, 2014, 4:32:45 PM5/22/14
to XYCE, xyce-...@googlegroups.com
That did the trick.
 
Thanks.
Jeff



--
You received this message because you are subscribed to the Google Groups "xyce-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xyce-users+...@googlegroups.com.
To post to this group, send email to xyce-...@googlegroups.com.
Visit this group at http://groups.google.com/group/xyce-users.
For more options, visit https://groups.google.com/d/optout.
<config.log>


Reply all
Reply to author
Forward
0 new messages