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

avoid using the "-Ofast" compiler flag #6

Open
jewettaij opened this issue Feb 11, 2020 · 1 comment
Open

avoid using the "-Ofast" compiler flag #6

jewettaij opened this issue Feb 11, 2020 · 1 comment

Comments

@jewettaij
Copy link
Owner

jewettaij commented Feb 11, 2020

If you compile "filter_mrc" using the "-Ofast" compiler flag, then the filter_mrc program will be mysteriously "Killed" when run with the -surface argument (usually when or after diagonalizing the Hessian located at every voxel). The problem might be in DiagonalizeHessianImage() (which is located in the lib/visfd/feature.hpp file), but I have not bothered to verify this is exactly where the error is occurring.

In any case, the problem can be avoided by using the clang++ compiler with the "-O3 -ffast-math" compiler flags. (...instead of using "-Ofast". See setup_clang.sh for compilation flags.)

Note also that the clang++ compiler is recommended over g++ (GCC), because even the -O3 flag fails when compiling with an old version of the GCC compiler. (See issue #2)

@jewettaij
Copy link
Owner Author

Note also that the clang++ compiler is recommended over g++, because even the -O3 flag fails when compiling with g++. (See issue #2)

As of gcc 9.3, this no longer appears to be the case. (GCC seems to be working now...)

@jewettaij jewettaij changed the title avoid using the "-Ofast" compiler flag (and the g++ compiler) avoid using the "-Ofast" compiler flag Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant