deepmodeling / deepmd-kit

A deep learning package for many-body potential energy representation and molecular dynamics
https://docs.deepmodeling.com/projects/deepmd/
GNU Lesser General Public License v3.0
1.48k stars 508 forks source link

[Feature Request] add `-O2` or `-O3` optimize flag #756

Closed njzjz closed 3 years ago

njzjz commented 3 years ago

Summary

Currently CMake files don't contain a -O2 or -O3 optimize flag (I am not sure which is better). Maybe we should add it when compiling for production.

Detailed Description

Further Information, Files, and Links

amcadmus commented 3 years ago

By default the CMAKE_BUILD_TYPE is release, by default -O3 is included in CMAKE_BUILD_TYPE_RELEASE, see the link

njzjz commented 3 years ago

Got it.