Browse Source

Fix PGI compiler detection for getarch

tags/v0.3.8^2
Martin Kroeker GitHub 6 years ago
parent
commit
a95a5e52b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Makefile.system

+ 2
- 2
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


Loading…
Cancel
Save