This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: polyhedron benchmark | profiling
Hi Evan,
Evan Cooch wrote:
>> Profiling may be important, but as I read the acml agreement, we
>> aren't permitted to profile that library. It doesn't fit your idea
>> of avoiding commercial applications.
>
> gfortran -fprofile-use -march=opteron -ffast-math -funroll-loops
> -ftree-vectorize -O3 (before: a single run with -fprofile-generate)
Yes. I use:
# Compile once with -fprofile-generate
for I in `head -n 1 quick.par`; do
echo "Compiling (-fprofile-generate): $I"
time gfortran -fprofile-generate -march=opteron -ffast-math
-funroll-loops -ftree-vectorize -msse3 -O3 -o $I $I.f90
echo "Running once (-fprofile-generate): $I"
time ./$I
done
# Run with profile-based optimization
../pbharness gfortranProf.par quick.par
with gfortranProf.par:
gfortran -fprofile-use -march=opteron -ffast-math -funroll-loops
-ftree-vectorize -msse3 -O3 %n.f90 -o %n
Tobias