I have a package to install which hardly using computations (block written on fortran and c). So, I want to enable max optimization like mtune=native and other. 2 questions.
1) Where could I find and change base compilation options for g++/gcc?
2) What are best options for maximum code optimization for Corei7-6700K?
Thank you.
Read the documents on Using `Makevars' .
Create the file Makevars or Makevars.win in the folder src, and add your option, such as PKG_CPPFLAGS = -O2 -mtune=native -pipe
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.