-
Notifications
You must be signed in to change notification settings - Fork 720
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
Fix lack of optimisation for SHAPEIT4 v4.2.0 #12207
Fix lack of optimisation for SHAPEIT4 v4.2.0 #12207
Conversation
Fixes issue #12204 |
Test report by @verdurin |
|
||
#Best performance is achieved with this. Use it if running on the same plateform you're compiling. | ||
-#CXXFLAG=-O3 -march=native | ||
+CXXFLAG=-O3 -march=native |
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.
Shouldn't we rather set it to whatever the CXXFLAGS environment variable is? I.e.
CXXFLAG=${CXXFLAGS}
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.
@Micket would the same apply to LDFLAG
?
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.
Sure, probably wouldn't hurt (though it seems the compiler did pick up the library paths anyway via one of the environment variables since it worked).
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.
Yes, I agree, just do this via buildopts
:
buildopts = 'CXX="$CXX" CXXFLAG="$CXXFLAGS" LDFLAG="$CXXFLAGS"'
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.
Now done. I had to fix the original toolchainopts
, which caused an error after using CXXFLAGS
.
|
||
#Best performance is achieved with this. Use it if running on the same plateform you're compiling. | ||
-#CXXFLAG=-O3 -march=native | ||
+CXXFLAG=-O3 -march=native |
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.
Yes, I agree, just do this via buildopts
:
buildopts = 'CXX="$CXX" CXXFLAG="$CXXFLAGS" LDFLAG="$CXXFLAGS"'
Test report by @boegel |
Test report by @boegel |
Going in, thanks @verdurin! |
(created using
eb --new-pr
)