Browse Source
Merge pull request #2378 from martin-frbg/issue2377
Add -march option for AVX512 in cmake as well
tags/v0.3.8^2
Martin Kroeker
GitHub
6 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
cmake/cc.cmake
|
|
|
@@ -96,3 +96,10 @@ if (${CMAKE_C_COMPILER_ID} STREQUAL "SUN") |
|
|
|
endif () |
|
|
|
endif () |
|
|
|
|
|
|
|
if (${CORE} STREQUAL "SKYLAKEX") |
|
|
|
if (NOT DYNAMIC_ARCH) |
|
|
|
if (NOT NO_AVX512) |
|
|
|
set (CCOMMON_OPT = "${CCOMMON_OPT} -march=skylake-avx512") |
|
|
|
endif () |
|
|
|
endif () |
|
|
|
endif () |