Browse Source

Merge pull request #2223 from martin-frbg/getarch-pgi

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

+ 2
- 2
Makefile.system View File

@@ -142,9 +142,9 @@ 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)
ifneq ($(C_COMPILER), PGI)
ifeq ($(findstring pgcc,$(HOSTCC)),)
GETARCH_FLAGS += -march=native
endif
endif


+ 1
- 1
cmake/system.cmake View File

@@ -66,7 +66,7 @@ if (DEFINED TARGET)
endif ()

# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
if (X86_64)
if (X86_64 AND NOT ${CMAKE_C_COMPILER_ID} STREQUAL "PGI")
set(GETARCH_FLAGS "${GETARCH_FLAGS} -march=native")
endif ()



Loading…
Cancel
Save