Skip to content

Commit f118738

Browse files
committed
Revert "added option to use only openblas, rather than both openblas and lapacke"
This reverts commit 8f3a426.
1 parent 58f1a3c commit f118738

File tree

3 files changed

+0
-48
lines changed

3 files changed

+0
-48
lines changed

framework/CMakeLists.txt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -160,27 +160,6 @@ elseif( ${SAF_PERFORMANCE_LIB} MATCHES "SAF_USE_OPEN_BLAS_AND_LAPACKE")
160160

161161
message(STATUS "Using OpenBLAS. Linking against: ${OPENBLAS_LIBRARY}; ${LAPACKE_LIBRARY}")
162162

163-
elseif( ${SAF_PERFORMANCE_LIB} MATCHES "SAF_USE_OPEN_BLAS")
164-
target_compile_definitions(${PROJECT_NAME} PUBLIC SAF_USE_OPEN_BLAS=1)
165-
166-
# find and link libraries
167-
if (NOT DEFINED OPENBLAS_LIBRARY)
168-
find_library(OPENBLAS_LIBRARY openblas HINTS /usr/lib/x86_64-linux-gnu /usr/lib/arm-linux-gnueabihf)
169-
endif()
170-
target_link_libraries(${PROJECT_NAME} PUBLIC ${OPENBLAS_LIBRARY})
171-
172-
# Add header search paths if they are defined
173-
if(DEFINED OPENBLAS_HEADER_PATH)
174-
target_include_directories(${PROJECT_NAME} PUBLIC ${OPENBLAS_HEADER_PATH})
175-
endif()
176-
177-
# Disable this particular warning... We know, but it's OK.
178-
if(UNIX)
179-
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-incompatible-pointer-types)
180-
endif()
181-
182-
message(STATUS "Using OpenBLAS. Linking against: ${OPENBLAS_LIBRARY}")
183-
184163
elseif( ${SAF_PERFORMANCE_LIB} MATCHES "SAF_USE_ATLAS")
185164
message(STATUS "Using ATLAS...")
186165
message(SEND_ERROR "Not yet supported! Please contribute if you use this library.")

framework/include/saf_externals.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ extern "C" {
7878
#if (defined(SAF_USE_INTEL_MKL_LP64) + \
7979
defined(SAF_USE_INTEL_MKL_ILP64) + \
8080
defined(SAF_USE_OPEN_BLAS_AND_LAPACKE) + \
81-
defined(SAF_USE_OPEN_BLAS) + \
8281
defined(SAF_USE_ATLAS) + \
8382
defined(SAF_USE_GSL) + \
8483
defined(SAF_USE_APPLE_ACCELERATE)) != 1
@@ -145,28 +144,6 @@ extern "C" {
145144
# include "cblas.h"
146145
# include "lapacke.h"
147146

148-
#elif defined(SAF_USE_OPEN_BLAS)
149-
/*
150-
* Using OpenBLAS and the included LAPACK interface
151-
* (A decent option for both x86 and ARM based architectures)
152-
*
153-
* This option provides implementations of the CBLAS/LAPACK functions which have
154-
* decent performance. However, unlike Intel MKL or Apple Accelerate, it does
155-
* not offer an optimised DFT/FFT or any other linear algebra functions outside
156-
* of these standards. Therefore, consider also using Intel's IPP library or
157-
* FFTW for the DFT/FFT with: "SAF_USE_INTEL_IPP" or "SAF_USE_FFTW"
158-
*
159-
* Note that "SAF_USE_INTEL_IPP" also offers support for certain linear algebra
160-
* operations not covered by the CBLAS/LAPACK standards, which SAF can leverage.
161-
*
162-
* Alternatively, SSE/AVX/AVX-512 fallback implementations for certain linear
163-
* algebra operations may be enabled with: "SAF_ENABLE_SIMD"
164-
*
165-
* More information regarding these additional options can be found below.
166-
*/
167-
# include "cblas.h"
168-
# include "lapack.h"
169-
170147
#elif defined(SAF_USE_ATLAS)
171148
/*
172149
* Using the Automatically Tuned Linear Algebra Software (ATLAS) library
@@ -334,8 +311,6 @@ extern "C" {
334311
# define SAF_CURRENT_PERFORMANCE_LIBRARY_STRING "Intel MKL (ILP64)"
335312
#elif defined(SAF_USE_OPEN_BLAS_AND_LAPACKE)
336313
# define SAF_CURRENT_PERFORMANCE_LIBRARY_STRING "OpenBLAS with LAPACKE"
337-
#elif defined(SAF_USE_OPEN_BLAS)
338-
# define SAF_CURRENT_PERFORMANCE_LIBRARY_STRING "OpenBLAS"
339314
#elif defined(SAF_USE_ATLAS)
340315
# define SAF_CURRENT_PERFORMANCE_LIBRARY_STRING "ATLAS"
341316
#elif defined(__APPLE__) && defined(SAF_USE_APPLE_ACCELERATE)

framework/modules/saf_utilities/saf_utility_veclib.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@
5757
# define SAF_VECLIB_USE_LAPACKE_INTERFACE /**< LAPACK interface */
5858
#elif defined(SAF_USE_OPEN_BLAS_AND_LAPACKE)
5959
# define SAF_VECLIB_USE_LAPACKE_INTERFACE /**< LAPACK interface */
60-
#elif defined(SAF_USE_OPEN_BLAS)
61-
# define SAF_VECLIB_USE_LAPACK_FORTRAN_INTERFACE /**< LAPACK interface */
6260
#elif defined(SAF_USE_ATLAS)
6361
# define SAF_VECLIB_USE_CLAPACK_INTERFACE /**< LAPACK interface */
6462
#elif defined(__APPLE__) && defined(SAF_USE_APPLE_ACCELERATE)

0 commit comments

Comments
 (0)