I was experimenting with the PGO (Profile-Guided-Optimization) feature for a large fortran application (Weather Modeling) and ran into a problem when trying to use the -prof-use option. Briefly, the steps I took are:
1. Compiled first with -prof-gen and -prof-dir options. (Successful)
2. Ran the application compiled with above options once. (Successful)
3. Tried compiling with -prof-use option. (Compilation failed).
Essentially, compilation itself failed when using the -prof-use option. I can see the .dyn files generated in the -prof-dir directory.
checking whether we are using the GNU Fortran compiler... no
checking whether ifort accepts -g... yes
checking for Fortran flag to compile .F90 files... unknown
configure: error: Fortran could not compile .F90 files
gmake: *** [/home/srinivasan/cesm1_2_2/cases/ReducingOpenMPOverhead/exe/intel/mpich/nodebug/nothreads/mct/Makefile.conf] Error 1
if ( 0 == 1 ) then
cp -p Makefile.conf Makefile.conf.old
cp: cannot stat `Makefile.conf': No such file or directory
I'd be grateful if someone could tell me what is going wrong here.