[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling problems using -DPETSC_USE_FORTRAN_KERNELS
- To: petsc-users@xxxxxxxxxxx
- Subject: Compiling problems using -DPETSC_USE_FORTRAN_KERNELS
- From: "Patrick Lechner" <mappol@xxxxxxxxx>
- Date: Tue, 19 Sep 2006 11:30:43 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=re8c4VTsjA1us0pLuSnaKeELL/JzD48Vx5ZtV6qTvIrcXjFZiKwdVQnTa6mPqIuHJiO2vwHBa2v7lqJ0STKNP1SPUBspU/08G7mI3j9HELbruZ/Fkn898L2lnoHlvOIjcJA2bkDtcB/L5LTH06+BMsuOQdKwrymCY58W27fzNYk=
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
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