Dear all,<br>
<br>
I have some problems compiling PETSc correctly when using the flag
"-DPETSC_USE_FORTRAN_KERNELS" (to increase the performance of my code).<br>
<br>
My compiling options are:<br>
./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<br>
<br>
When trying to run the PETSc test examples, I get error messages like:<br>
/projects/301/petsc-2.3.1-p15b/lib/linux-gnu-fortran-complex-nodebug/libpetscvec.a(dvec2.o)(.text+0x7581):
In function `VecPointwiseMult_Seq':<br>
/projects/301/petsc-2.3.1-p15b/src/vec/vec/impls/seq/dvec2.c:848: undefined reference to `fortranxtimesy_'<br>
make[2]: [ex19] Error 2 (ignored)<br>
/bin/rm -f ex19.o<br>
--------------Error detected during compile or link!-----------------------<br>
<br>
There are basically undefined references to all "fortran*" functions.<br>
My questions now are:<br>
Am I using the "-DPETSC_USE_FORTRAN_KERNELS"-flag in the correct way?<br>
How can I get rid of these errors?<br>
<br>
I'm very much looking forward to your ideas.<br>
Best wishes!<br>
Patrick<br>
<br>