diff --git a/CHANGELOG.md b/CHANGELOG.md index 2caf4ca..751a3a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. - OpenMP GNU compiler now uses native target flag. - Support CSV output for Triad only running mode. -- NEC compiler option for OpenMP version. +- NEC and PGI compiler option for OpenMP version. ### Changed - Update SYCL implementation to SYCL 1.2.1 interface. diff --git a/OpenMP.make b/OpenMP.make index f1c1d63..f05e503 100644 --- a/OpenMP.make +++ b/OpenMP.make @@ -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 NEC + CLANG CRAY GNU INTEL XL PGI NEC endef $(info $(compiler_help)) @@ -26,6 +26,7 @@ COMPILER_INTEL = icpc COMPILER_CRAY = CC COMPILER_CLANG = clang++ COMPILER_XL = xlc++ +COMPILER_PGI = pgc++ COMPILER_NEC = /opt/nec/ve/bin/nc++ 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_CLANG = -O3 -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 CXXFLAGS = $(FLAGS_$(COMPILER)) @@ -43,6 +45,7 @@ OMP_INTEL_CPU = -qopenmp OMP_CRAY_CPU = -homp OMP_CLANG_CPU = -fopenmp=libomp OMP_XL_CPU = -qsmp=omp -qthreaded +OMP_PGI_CPU = -mp OMP_NEC_CPU = -fopenmp # OpenMP flags for NVIDIA