On 9/19/06, <b class="gmail_sendername">Patrick Lechner</b> &lt;<a href="mailto:mappol@gmail.com">mappol@gmail.com</a>&gt; 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
&quot;-DPETSC_USE_FORTRAN_KERNELS&quot; (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&nbsp; --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>
&nbsp; Thanks,<br>
<br>
&nbsp;&nbsp;&nbsp; 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 &quot;fortran*&quot; functions.<br>
My questions now are:<br>
Am I using the &quot;-DPETSC_USE_FORTRAN_KERNELS&quot;-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>&quot;Failure has a thousand explanations. Success doesn't need one&quot; -- Sir Alec Guiness