[OpenMP] Add PGI compiler support

This commit is contained in:
Tom Deakin 2019-03-13 04:13:38 -05:00
parent 6229b83e62
commit db9bf78530
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
- Kokkos list CLI argument shows some information about which device will be used. - Kokkos list CLI argument shows some information about which device will be used.
- OpenMP GNU compiler now uses native target flag. - OpenMP GNU compiler now uses native target flag.
- Support CSV output for Triad only running mode. - Support CSV output for Triad only running mode.
- NEC compiler option for OpenMP version. - NEC and PGI compiler option for OpenMP version.
### Changed ### Changed
- Update SYCL implementation to SYCL 1.2.1 interface. - Update SYCL implementation to SYCL 1.2.1 interface.

View File

@ -3,7 +3,7 @@ ifndef COMPILER
define compiler_help define compiler_help
Set COMPILER to change flags (defaulting to GNU). Set COMPILER to change flags (defaulting to GNU).
Available compilers are: Available compilers are:
CLANG CRAY GNU INTEL XL NEC CLANG CRAY GNU INTEL XL PGI NEC
endef endef
$(info $(compiler_help)) $(info $(compiler_help))
@ -26,6 +26,7 @@ COMPILER_INTEL = icpc
COMPILER_CRAY = CC COMPILER_CRAY = CC
COMPILER_CLANG = clang++ COMPILER_CLANG = clang++
COMPILER_XL = xlc++ COMPILER_XL = xlc++
COMPILER_PGI = pgc++
COMPILER_NEC = /opt/nec/ve/bin/nc++ COMPILER_NEC = /opt/nec/ve/bin/nc++
CXX = $(COMPILER_$(COMPILER)) CXX = $(COMPILER_$(COMPILER))
@ -34,6 +35,7 @@ FLAGS_INTEL = -O3 -std=c++11 -xHOST -qopt-streaming-stores=always
FLAGS_CRAY = -O3 -hstd=c++11 FLAGS_CRAY = -O3 -hstd=c++11
FLAGS_CLANG = -O3 -std=c++11 FLAGS_CLANG = -O3 -std=c++11
FLAGS_XL = -O5 -qarch=pwr8 -qtune=pwr8 -std=c++11 FLAGS_XL = -O5 -qarch=pwr8 -qtune=pwr8 -std=c++11
FLAGS_PGI = -O3 -std=c++11
FLAGS_NEC = -O4 -finline -std=c++11 FLAGS_NEC = -O4 -finline -std=c++11
CXXFLAGS = $(FLAGS_$(COMPILER)) CXXFLAGS = $(FLAGS_$(COMPILER))
@ -43,6 +45,7 @@ OMP_INTEL_CPU = -qopenmp
OMP_CRAY_CPU = -homp OMP_CRAY_CPU = -homp
OMP_CLANG_CPU = -fopenmp=libomp OMP_CLANG_CPU = -fopenmp=libomp
OMP_XL_CPU = -qsmp=omp -qthreaded OMP_XL_CPU = -qsmp=omp -qthreaded
OMP_PGI_CPU = -mp
OMP_NEC_CPU = -fopenmp OMP_NEC_CPU = -fopenmp
# OpenMP flags for NVIDIA # OpenMP flags for NVIDIA