Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29386 Discussions

PGO with slightly different source code than was used to generate profiles

gregfi04
Beginner
1,044 Views
I'm in the final stages of testing a code, and I found typos in a couple of the error messages. Can I just do a recompile with PGO using the old profiles, or do I need to regenerate the profile data?

Thanks,
Greg
0 Kudos
1 Solution
Steven_L_Intel1
Employee
1,044 Views
If you just changed the text of a character string, you won't need to redo the profiles. But if you change the logic of the program, you would.

View solution in original post

0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,045 Views
If you just changed the text of a character string, you won't need to redo the profiles. But if you change the logic of the program, you would.
0 Kudos
gregfi04
Beginner
1,044 Views
Great, thanks. If logic were changed, would the compiler be smart enough to detect a mismatch? If not, could it potentially cause problems?
0 Kudos
Steven_L_Intel1
Employee
1,044 Views
It might, if the number of "basic blocks" of code paths changed. If it didn't, the results could mislead the compiler into making optimization choices it shouldn't.
0 Kudos
Reply