-
Notifications
You must be signed in to change notification settings - Fork 28
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
Update GFDL compiler settings from Intel to GCC #153
Conversation
…pile flags so far
…; no particular compile flags so far
@ngs333 I tested the 3 configs and they all compiled and passed tests (except for the omgg). However, I have zero build options which is probably not right, and I don't know what we want. |
@@ -29,10 +29,10 @@ test -z "$CC" && CC=cc | |||
test -z "$FC" && FC=ftn | |||
|
|||
# Compile/Link flags | |||
test -z "$CFLAGS" && CFLAGS="-xSSE2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chris, The Intel default optimization flag is -O2. The GNU default optimization flag is -O0.
So we need to add the -O2 flag whenever we use gcc. Thats for both CFLAGS and FCFLAGS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Intel default optimization flag is -O2. The GNU default optimization flag is -O0.
So we need to add the -O2 flag whenever we use gcc. Thats for both CFLAGS and FCFLAGS.
#99