On Mon, Nov 14, 2011 at 10:43 PM, Chekuri S. Choudary <span dir="ltr"><<a href="mailto:cchoudary@rnet-tech.com">cchoudary@rnet-tech.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">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. <u></u><u></u></p>
<p class="MsoNormal">I tried CFLAGS=–S flag (gcc compiler) in the makefile in subfolders but that doesn’t output anything.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I tried –S flag in the configure options as following but that didn’t work.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">./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</p>
</div></div></blockquote><div><br></div><div>Easiest way:</div><div><br></div><div>  cd <source dir></div><div>  touch <source file></div><div>  make</div><div><br></div><div>That will display the build command. Then just cut&paste, inserting your -S flag.</div>
<div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"> </p>
<p class="MsoNormal"><u></u></p><p class="MsoNormal">Thanks<u></u><u></u></p><p class="MsoNormal">Shiva<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div></blockquote></div><br><br clear="all"><div><br>
</div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>