-
Notifications
You must be signed in to change notification settings - Fork 124
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
Use FFLAGS for PARPACK with autotools and mpi #449
Conversation
@@ -1,8 +1,6 @@ | |||
AUTOMAKE_OPTIONS = subdir-objects # Needed as debug/stat* are not in current directory. | |||
|
|||
F77 = $(MPIF77) | |||
FFLAGS_SAV = @FFLAGS@ |
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.
@sylvestre: OK for you? Was this intentional?
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 this was intentional. I missed it is still used by libparpack@LIBSUFFIX@@ITF64SUFFIX@_la_FFLAGS = $(FFLAGS_SAV)
which can now use FFLAGS instead. Or keep it to a one line change?
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.
libparpack@LIBSUFFIX@@ITF64SUFFIX@_la_FFLAGS = $(FFLAGS_SAV) which can now use FFLAGS instead.
I guess this is a good move.
Or keep it to a one line change?
@sylvestre: what do you think? Was this FFLAGS_SAV
intentional (bug fix?) back in the old days?!
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.
I don't know, is there anything interesting in the git blame/log ? :)
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.
@turboencabulator: git-blame is on you! :)
Why did you need FFLAGS_SAV
? Bug fix? If yes, which one? Can you review this PR?
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.
What problem was the no-optimization stuff trying to fix?
Don't know!
@loqs and @turboencabulator: I let you converge to the best solution to PR. Let me know when the PR is ready to be merged.
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.
@loqs: is there the same problem with cmake? I guess no.
Otherwise feel free to PR the equivalent fix at cmake side.
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.
2. What `FFLAGS` are you trying to add? Is it something that `configure` should be detecting and adding to `AM_FFLAGS`?
FFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection -ffile-prefix-map=/build/arpack/src=/usr/src/debug/arpack
I detected -fcf-protection was missing from PARPACK.
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.
@loqs: is there the same problem with cmake? I guess no. Otherwise feel free to PR the equivalent fix at cmake side.
autotools only. cmake is building pdlamch10.f and pslamch10.f with optimization
Line 385 in ba440d1
file(GLOB parpacksrc_STAT_SRCS ${arpack_SOURCE_DIR}/dbgini.f ${arpack_SOURCE_DIR}/staini.f ${arpack_SOURCE_DIR}/PARPACK/SRC/MPI/*.f) |
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.
I was thinking your FFLAGS might be related to MPI, but doesn't look like it.
Usually when I see -O0
it's because the code has some obscure bug that the optimizer exposes. But these two files seem fairly simple, and if CMake is building them optimized and nobody has complained yet... I say we remove the no-optimization stuff.
Closing in favor of #450. |
Fixes #448.