Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce optimization level for FAST*_Types.f90 with gcc #2632

Merged

Conversation

andrew-platt
Copy link
Collaborator

Ready to merge

Feature or improvement description
Compiling in release with GCC takes a very long time due to unnecessary optimization of the FAST_Types.f90 and FAST_Farm_Types.f90 files. These files contain a fair amount of code related to save/restore used in restarts, which really doesn't need to be all that optimized given the frequency of use.

Some time ago we benchmarked the build process with -O2 and -O3 on FAST_Types.f90 and found that the majority of the build time in that file was spent on the save/restore routines (tested with Intel OneAPI on linux). Reducing to -O2 reduced the compile time significantly in that case.

Related issue, if one exists
Can't find the first PR.

Impacted areas of the software
Build process with GCC. May be slight performance hit on save/restore with GCC compiled executables, but no other effects expected.

@andrew-platt
Copy link
Collaborator Author

Backport to 4.1.0 if we do such a release before 5.0

@andrew-platt andrew-platt merged commit 0fbd7b1 into OpenFAST:dev Feb 12, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants