I have been trying to optimize my program for some time now. It has more than 100 subroutines. The optimization flags I have used so far are as follows.
Optimization flag Time of completion
-c 0.190 hr
-O3 0.185 hr
-fast 0.155 hr
So, using the optimization flag "-fast" I was able to gain 18.42% speed. I was wondering are there any other optimization flag that I can try to make my program run even faster. Because right now, when I ran my program with just O2 flag for one of my problem, it took around 25 hours to finish. I really need to increase the computational efficiency.
I found the information about the "-fast" flag fromhttps://support.scinet.utoronto.ca/wiki/images/7/77/Snug_techtalk_compiler.pdf
Any help is highly appreciated.
Thank you so much.