Add mcpu=native flag to GNU OpenMP builds

This commit is contained in:
Tom Deakin 2018-04-27 13:21:30 +01:00
parent 54b8a549c1
commit 54fc326097
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
### Added
- OpenACC flags to build for Volta.
- Kokkos list CLI argument shows some information about which device will be used.
- OpenMP GNU compiler now uses native target flag
### Changed
- Update SYCL implementation to SYCL 1.2.1 interface.

View File

@ -28,7 +28,7 @@ COMPILER_CLANG = clang++
COMPILER_XL = xlc++
CXX = $(COMPILER_$(COMPILER))
FLAGS_GNU = -O3 -std=c++11
FLAGS_GNU = -O3 -std=c++11 -mcpu=native
FLAGS_INTEL = -O3 -std=c++11 -xHOST -qopt-streaming-stores=always
FLAGS_CRAY = -O3 -hstd=c++11
FLAGS_CLANG = -O3 -std=c++11