[petsc-dev] Generating Assembly code for PETSc routines

Matthew Knepley knepley at gmail.com
Mon Nov 14 16:44:54 CST 2011


On Mon, Nov 14, 2011 at 10:43 PM, Chekuri S. Choudary <
cchoudary at rnet-tech.com> wrote:

> I was wondering how to make use of the compiler options within the PETSc
> build system to generate the assembly code for the selected PETSc routines.
> ****
>
> I tried CFLAGS=–S flag (gcc compiler) in the makefile in subfolders but
> that doesn’t output anything.****
>
> ** **
>
> I tried –S flag in the configure options as following but that didn’t work.
> ****
>
> ** **
>
> ./configure --download-f-blas-lapack=1 --with-x=0 --with-debugging=1
> --CFLAGS="-O3 -g -ggdb –S -fopenmp" --FFLAGS="-O3 -g -fopenmp"
> --download-hypre=1 --with-hdf5=1 --download-hdf5=1 --with-batch=0
> --known-mpi-shared-libraries=no --with-cuda=1 --with-cudac="nvcc -m64"
> --with-cusp=1 --with-thrust=1 PETSC_ARCH=PFLOTRAN1
>

Easiest way:

  cd <source dir>
  touch <source file>
  make

That will display the build command. Then just cut&paste, inserting your -S
flag.

   Matt


>
>
> **
>
> Thanks****
>
> Shiva****
>
> ** **
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111114/38dde27e/attachment.html>


More information about the petsc-dev mailing list