Skip to content

avoid using the "-Ofast" compiler flag #6

@jewettaij

Description

@jewettaij

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions