[CIG-LONG] compiling Gale on a supercomputer
Walter Landry
wlandry at caltech.edu
Wed May 23 15:07:22 PDT 2012
Robert Gray <graywacke at gmail.com> wrote:
> I didn't build petsc myself, I'm using the petsc3.2 module that
> Scinet offers. This may not matter, but this didn't come up when I
> compiled Underworld with the same petsc3.2 module a few weeks ago.
I would guess that they used mkl's lapack. So try adding
"-llapack"
or
"-lmkl -lmkl_lapack"
to --linkflags.
Cheers,
Walter Landry
> Cheers,
> Rob
>
> On Wed, May 23, 2012 at 2:55 PM, Walter Landry <wlandry at caltech.edu> wrote:
>
> Robert Gray <graywacke at gmail.com> wrote:
> > Hey Walter,
> > That option definitely helped, but the compiling process is still aborting.
> > Now I get the message:
> >
> > /scinet/gpc/Libraries/petsc-3.2-p2-openmpi-centos6/linux-gnu-c-opt/lib/libpetsc.a
> (gs.o):gs.c:(.text+0x903):
> > more undefined references to `
> > dcopy_' follow
> > /scinet/gpc/Libraries/petsc-3.2-p2-openmpi-centos6/linux-gnu-c-opt/lib/libpetsc.a(gs.o):
> > In function `gs_gop_vec_pairwise_plus':
> > gs.c:(.text+0x1456): undefined reference to `daxpy_'
> > scons: *** [build/bin/Gale] Error 1
> > scons: building terminated because of errors.
>
> It looks like you need to link to lapack or mkl. Did you build Petsc
> yourself? What did you use for lapack?
>
> Cheers,
> Walter Landry
>
More information about the CIG-LONG
mailing list