forked from open-quantum-safe/liboqs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved CPU extension handling and updated README. (open-quantum-saf…
- Loading branch information
Showing
7 changed files
with
31 additions
and
77 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# TODO: Use cpu_features instead of list-cpu-extensions.c | ||
if(ARCH STREQUAL "x86" OR | ||
ARCH STREQUAL "x86_64") | ||
try_run(RUN_RESULT COMPILE_RESULT | ||
"${CMAKE_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/.CMake/list-cpu-extensions.c" | ||
RUN_OUTPUT_VARIABLE RUN_OUTPUT) | ||
foreach(CPU_EXTENSION ${RUN_OUTPUT}) | ||
set(USE_${CPU_EXTENSION}_INSTRUCTIONS TRUE) | ||
endforeach() | ||
if(USE_AVX512BW_INSTRUCTIONS AND | ||
USE_AVX512DQ_INSTRUCTIONS AND | ||
USE_AVX512F_INSTRUCTIONS) | ||
set(USE_AVX512_INSTRUCTIONS ON) | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ build/ | |
__pycache__ | ||
.pytest_cache | ||
.cache | ||
.CMake/a.out | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters