diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-14 17:48:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-14 17:48:46 +0100 |
commit | e229b6dd55b04b155b17fcb8c09b9f7e602c4913 (patch) | |
tree | 40163e7cfe4ec72308b359fa13e464bd70e538a2 /contrib/kann | |
parent | 784746733a95d847e741a2d74153e99349b52fee (diff) | |
download | rspamd-e229b6dd55b04b155b17fcb8c09b9f7e602c4913.tar.gz rspamd-e229b6dd55b04b155b17fcb8c09b9f7e602c4913.zip |
[Fix] Add configurable number of threads for OpenBLAS
Issue: #3082
Diffstat (limited to 'contrib/kann')
-rw-r--r-- | contrib/kann/CMakeLists.txt | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/contrib/kann/CMakeLists.txt b/contrib/kann/CMakeLists.txt index ba38e14c8..5b3ea024b 100644 --- a/contrib/kann/CMakeLists.txt +++ b/contrib/kann/CMakeLists.txt @@ -15,21 +15,7 @@ ProcessPackage(BLAS OPTIONAL LIBRARY openblas blas LIB_OUTPUT BLAS_REQUIRED_LIBRARIES) IF(WITH_BLAS) MESSAGE(STATUS "Use openblas to accelerate kann") - IF(NOT BLAS_INCLUDE) - FIND_FILE(HAVE_CBLAS_H HINTS "${RSPAMD_SEARCH_PATH}" - NAMES cblas.h - DOC "Path to cblas.h header") - IF(NOT HAVE_CBLAS_H) - MESSAGE(STATUS "Blas header cblas.h has not been found, use internal workaround") - ELSE() - ADD_DEFINITIONS(-DHAVE_CBLAS_H) - ENDIF() - ELSE() - ADD_DEFINITIONS(-DHAVE_CBLAS_H) - ENDIF() - - TARGET_LINK_LIBRARIES(rspamd-kann ${BLAS_REQUIRED_LIBRARIES}) - ADD_DEFINITIONS(-DHAVE_CBLAS) + TARGET_LINK_LIBRARIES(rspamd-kann ${BLAS_REQUIRED_LIBRARIES}) ENDIF(WITH_BLAS) INSTALL(TARGETS rspamd-kann LIBRARY DESTINATION ${RSPAMD_LIBDIR})
\ No newline at end of file |