# GNU: optimization options # # You may use these options from your own configuration file like this: # # %include compilers/GNU-GCC_MPI # %include compilers/extensions/GNU-GCC_optimal # # Please note that hardware optimizations require to compile the code # on the same type of processor as the code is being executed later. # If that is not the case, you will have to extend your host-config # file to append an additional '-march=...' option indicating the # target processor type and architecture. %section Makefile # turn on software optimizations # for GNU, this should stay limited to -O3 at maximum for accuracy FFLAGS += -O3 CFLAGS += -O3 # turn on hardware optimizations FFLAGS += -march=native CFLAGS += -march=native %endsection Makefile