glotzerlab / hoomd-blue

Molecular dynamics and Monte Carlo soft matter simulation on GPUs.
http://glotzerlab.engin.umich.edu/hoomd-blue
BSD 3-Clause "New" or "Revised" License
335 stars 130 forks source link

gcc 4.1 compatibility issue: It may be better to remove "-march=native" flag #29

Closed joaander closed 9 years ago

joaander commented 9 years ago

Original report by Steven NA (Bitbucket: yuhangwang, GitHub: yuhangwang).


I tried to compile HOOMD version 1.0.1 using gcc 4.1.2 on CentOS 5.8, but the "make install" did not even progress beyond the first checkpoint. Could you add support for compiling under gcc 4.1.X? Thanks!

Steven

joaander commented 9 years ago

Users are free to modify the CMAKE_CXXFLAGS* variables. You can manually remove the offending command line options in ccmake.

I want -march=native in there by default so that users on modern systems get the fastest performance without needing to take extra steps.

I also no longer test builds on anything older than RHEL6 (gcc 4.4).

joaander commented 9 years ago

Original comment by Steven NA (Bitbucket: yuhangwang, GitHub: yuhangwang).


Hi Joshua,

Thanks for the reply. I tried to remove the -march=native flag, but the compilation stopped around 25%, with an error " error: base type 'group_storage<4u>' fails to be a struct or class type". Since you have no intention to support gcc with version below 4.4, I will close this issue. Thanks again.

Steven

joaander commented 9 years ago

Yeah, sorry about that. I don't have the people, time, or hardware resources to test too many different compiler configurations.

joaander commented 9 years ago

Original comment by Steven NA (Bitbucket: yuhangwang, GitHub: yuhangwang).


It's OK. I understand. Thanks for creating HOOMD-Blue!

Steven

joaander commented 9 years ago

As discussed above, gcc 4.1 is very old and hard to support.