Compiling problems using -DPETSC_USE_FORTRAN_KERNELS
Patrick Lechner
mappol at gmail.com
Tue Sep 19 05:30:43 CDT 2006
Dear all,
I have some problems compiling PETSc correctly when using the flag
"-DPETSC_USE_FORTRAN_KERNELS" (to increase the performance of my code).
My compiling options are:
./config/configure.py
--prefix=/usr/local/compiler/pg-6.1--with-scalar-type=complex
--with-cc=/usr/pgi/linux86-64/6.1/bin/pgcc
--with-cxx=/usr/pgi/linux86-64/6.1/bin/pgCC
--with-fc=/usr/pgi/linux86-64/6.1/bin/pgf90 --with-mpi=0
--with-blas-lapack-lib=-lacml --LDFLAGS=-pgf90libs
--CPPFLAGS=-DPETSC_USE_FORTRAN_KERNELS
When trying to run the PETSc test examples, I get error messages like:
/projects/301/petsc-2.3.1-p15b
/lib/linux-gnu-fortran-complex-nodebug/libpetscvec.a(dvec2.o)(.text+0x7581):
In function `VecPointwiseMult_Seq':
/projects/301/petsc-2.3.1-p15b/src/vec/vec/impls/seq/dvec2.c:848: undefined
reference to `fortranxtimesy_'
make[2]: [ex19] Error 2 (ignored)
/bin/rm -f ex19.o
--------------Error detected during compile or link!-----------------------
There are basically undefined references to all "fortran*" functions.
My questions now are:
Am I using the "-DPETSC_USE_FORTRAN_KERNELS"-flag in the correct way?
How can I get rid of these errors?
I'm very much looking forward to your ideas.
Best wishes!
Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20060919/abc55230/attachment.htm>
More information about the petsc-users
mailing list