Skip to content

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
@andrew-platt andrew-platt deleted the f/GCC_reduceOptimization_Types branch February 17, 2025 21:57
@andrew-platt andrew-platt mentioned this pull request Jun 18, 2025
37 tasks
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