Browse Source

Update compiler options for PGI

pull/2219/head
Martin Kroeker GitHub 6 years ago
parent
commit
dabbe04de2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions
  1. +9
    -6
      Makefile.system

+ 9
- 6
Makefile.system View File

@@ -142,9 +142,9 @@ endif
endif endif




# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
# On x86_64 build getarch with march=native unless the compiler is PGI. This is required to detect AVX512 support in getarch.
ifeq ($(ARCH), x86_64) ifeq ($(ARCH), x86_64)
ifneq ($(C_COMPILER), PGI)
ifeq ($(findstring pgcc,$(HOSTCC)),)
GETARCH_FLAGS += -march=native GETARCH_FLAGS += -march=native
endif endif
endif endif
@@ -267,10 +267,9 @@ OBJCOPY = $(CROSS_SUFFIX)objcopy
OBJCONV = $(CROSS_SUFFIX)objconv OBJCONV = $(CROSS_SUFFIX)objconv




# When fortran support was either not detected or actively deselected, only build BLAS.
# For detect fortran failed, only build BLAS.
ifeq ($(NOFORTRAN), 1) ifeq ($(NOFORTRAN), 1)
NO_LAPACK = 1 NO_LAPACK = 1
override FEXTRALIB =
endif endif


# #
@@ -697,9 +696,9 @@ endif


ifeq ($(C_COMPILER), PGI) ifeq ($(C_COMPILER), PGI)
ifdef BINARY64 ifdef BINARY64
CCOMMON_OPT += -tp p7-64
CCOMMON_OPT += -m64 -Mnollvm
else else
CCOMMON_OPT += -tp p7
CCOMMON_OPT += -m32
endif endif
endif endif


@@ -1125,8 +1124,12 @@ endif
endif endif


ifdef NO_AFFINITY ifdef NO_AFFINITY
ifeq ($(NO_AFFINITY), 0)
override undefine NO_AFFINITY
else
CCOMMON_OPT += -DNO_AFFINITY CCOMMON_OPT += -DNO_AFFINITY
endif endif
endif


ifdef FUNCTION_PROFILE ifdef FUNCTION_PROFILE
CCOMMON_OPT += -DFUNCTION_PROFILE CCOMMON_OPT += -DFUNCTION_PROFILE


Loading…
Cancel
Save