summaryrefslogtreecommitdiffstats
path: root/config/pgi-flags
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-06-03 16:44:09 (GMT)
committerGitHub <noreply@github.com>2021-06-03 16:44:09 (GMT)
commit1558ee7b3086bf572d98f1a5698bceccb8aa8804 (patch)
treefadcfc208697deb99346bd97fd5a588056d4b1d4 /config/pgi-flags
parent4b7f34acc16c7d071a5c1d4519ba2a01354e51db (diff)
downloadhdf5-1558ee7b3086bf572d98f1a5698bceccb8aa8804.zip
hdf5-1558ee7b3086bf572d98f1a5698bceccb8aa8804.tar.gz
hdf5-1558ee7b3086bf572d98f1a5698bceccb8aa8804.tar.bz2
Updates PGI C/C++ configurations (#715)
* Updates PGI C/C++ configurations Tweaks some settings and configures pgc++ to use C++11 * Updated copyright information
Diffstat (limited to 'config/pgi-flags')
-rw-r--r--config/pgi-flags63
1 files changed, 29 insertions, 34 deletions
diff --git a/config/pgi-flags b/config/pgi-flags
index e1bec00..24c7174 100644
--- a/config/pgi-flags
+++ b/config/pgi-flags
@@ -66,50 +66,45 @@ if test "X-pgcc" = "X-$cc_vendor"; then
#esac
# General
- H5_CFLAGS="$H5_CFLAGS $arch -c99 -Minform=inform"
-
- # Production
- case "$cc_vendor-$cc_version" in
- pgcc-10.6*)
- PROD_CFLAGS=
- ;;
- pgcc-9.*)
- PROD_CFLAGS=
- ;;
- *)
- PROD_CFLAGS="-fast"
- ;;
- esac
-
- # Debug
+ H5_CFLAGS="$H5_CFLAGS $arch -c99 -Minform=warn"
+
+ ##############
+ # Production #
+ ##############
+
+ # NDEBUG is handled explicitly by the configure script
+ PROD_CFLAGS="-fast"
+
+ #########
+ # Debug #
+ #########
+
# NDEBUG is handled explicitly by the configure script
+ # -g is handled by the symbols flags
DEBUG_CFLAGS="-Mbounds"
- # Symbols
+ ###########
+ # Symbols #
+ ###########
+
SYMBOLS_CFLAGS="-g"
NO_SYMBOLS_CFLAGS="-s"
- # Profiling
+ #############
+ # Profiling #
+ #############
+
PROFILE_CFLAGS="-Mprof=func,line"
# Use this for profiling with gprof
#PROFILE_CFLAGS="-pg"
- # Optimization
- case "$cc_vendor-$cc_version" in
- # Tweak down compiler optimizations for v10.6, it has a bug
- pgcc-10.6*)
- HIGH_OPT_CFLAGS="-O1"
- ;;
- # Tweak down compiler optimizations for v9.x
- pgcc-9.*)
- HIGH_OPT_CFLAGS="-O1"
- ;;
- *)
- HIGH_OPT_CFLAGS=
- ;;
- esac
- DEBUG_OPT_CFLAGS=
- NO_OPT_CFLAGS=
+ ################
+ # Optimization #
+ ################
+
+ HIGH_OPT_CFLAGS="-O4"
+ DEBUG_OPT_CFLAGS="-gopt -O2"
+ NO_OPT_CFLAGS="-O0"
# Flags are set
cc_flags_set=yes