On 9/19/06, <b class="gmail_sendername">Patrick Lechner</b> <<a href="mailto:mappol@gmail.com">mappol@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>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</div></blockquote><div><br>
You really want to use --with-fortran-kernels=generic. You can find this using --help.<br>
<br>
Thanks,<br>
<br>
Matt<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
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></div><div><span class="sg">
Patrick<br>
<br>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness