[OpenMP] Add NEC compiler flags
This commit is contained in:
parent
da085f3f59
commit
8275c97050
@ -3,7 +3,7 @@ ifndef COMPILER
|
||||
define compiler_help
|
||||
Set COMPILER to change flags (defaulting to GNU).
|
||||
Available compilers are:
|
||||
CLANG CRAY GNU INTEL XL
|
||||
CLANG CRAY GNU INTEL XL NEC
|
||||
|
||||
endef
|
||||
$(info $(compiler_help))
|
||||
@ -26,6 +26,7 @@ COMPILER_INTEL = icpc
|
||||
COMPILER_CRAY = CC
|
||||
COMPILER_CLANG = clang++
|
||||
COMPILER_XL = xlc++
|
||||
COMPILER_NEC = /opt/nec/ve/bin/nc++
|
||||
CXX = $(COMPILER_$(COMPILER))
|
||||
|
||||
FLAGS_GNU = -O3 -std=c++11 -mcpu=native
|
||||
@ -33,6 +34,7 @@ FLAGS_INTEL = -O3 -std=c++11 -xHOST -qopt-streaming-stores=always
|
||||
FLAGS_CRAY = -O3 -hstd=c++11
|
||||
FLAGS_CLANG = -O3 -std=c++11
|
||||
FLAGS_XL = -O5 -qarch=pwr8 -qtune=pwr8 -std=c++11
|
||||
FLAGS_NEC = -O4 -finline -std=c++11
|
||||
CXXFLAGS = $(FLAGS_$(COMPILER))
|
||||
|
||||
# OpenMP flags for CPUs
|
||||
@ -41,6 +43,7 @@ OMP_INTEL_CPU = -qopenmp
|
||||
OMP_CRAY_CPU = -homp
|
||||
OMP_CLANG_CPU = -fopenmp=libomp
|
||||
OMP_XL_CPU = -qsmp=omp -qthreaded
|
||||
OMP_NEC_CPU = -fopenmp
|
||||
|
||||
# OpenMP flags for NVIDIA
|
||||
OMP_CRAY_NVIDIA = -DOMP_TARGET_GPU
|
||||
|
||||
Loading…
Reference in New Issue
Block a user