Browse Source
fies #1844, adds WITH_SSE cmake option
now it is possible to disable sse for Blake2, which is not supported on ARMs
pull/1861/head
Dusan Klinec
4 years ago
No known key found for this signature in database
GPG Key ID: 6337E118CCBCE103
3 changed files with
3 additions and
1 deletions
-
CMakeLists.txt
-
cmake/randomx.cmake
-
doc/build/CMAKE_OPTIONS.md
|
|
@ -24,6 +24,7 @@ option(WITH_ADL "Enable ADL (AMD Display Library) or sysfs support ( |
|
|
|
option(WITH_STRICT_CACHE "Enable strict checks for OpenCL cache" ON) |
|
|
|
option(WITH_INTERLEAVE_DEBUG_LOG "Enable debug log for threads interleave" OFF) |
|
|
|
option(WITH_PROFILING "Enable profiling for developers" OFF) |
|
|
|
option(WITH_SSE "Enable SSE for Blake2" ON) |
|
|
|
|
|
|
|
option(BUILD_STATIC "Build static binary" OFF) |
|
|
|
option(ARM_TARGET "Force use specific ARM target 8 or 7" 0) |
|
|
|
|
|
@ -65,7 +65,7 @@ if (WITH_RANDOMX) |
|
|
|
set_property(SOURCE src/crypto/randomx/jit_compiler_a64_static.S PROPERTY LANGUAGE C) |
|
|
|
endif() |
|
|
|
|
|
|
|
if (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang) |
|
|
|
if (NOT ARM_TARGET AND WITH_SSE AND (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang)) |
|
|
|
set_source_files_properties(src/crypto/randomx/blake2/blake2b_sse41.c PROPERTIES COMPILE_FLAGS -msse4.1) |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
@ -22,6 +22,7 @@ This feature add external dependency to libhwloc (1.10.0+) (except MSVC builds). |
|
|
|
* **`-DWITH_EMBEDDED_CONFIG=ON`** Enable [embedded](https://github.com/xmrig/xmrig/issues/957) config support. |
|
|
|
* **`-DWITH_OPENCL=OFF`** Disable OpenCL backend. |
|
|
|
* **`-DWITH_CUDA=OFF`** Disable CUDA backend. |
|
|
|
* **`-DWITH_SSE=OFF`** Disable SSE for Blake2 (useful for arm builds). |
|
|
|
|
|
|
|
## Debug options |
|
|
|
|
|
|
|