@@ -78,6 +78,7 @@ 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 ) + \
8182 defined(SAF_USE_ATLAS ) + \
8283 defined(SAF_USE_GSL ) + \
8384 defined(SAF_USE_APPLE_ACCELERATE )) != 1
@@ -144,6 +145,28 @@ extern "C" {
144145# include "cblas.h"
145146# include "lapacke.h"
146147
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+
147170#elif defined(SAF_USE_ATLAS )
148171/*
149172 * Using the Automatically Tuned Linear Algebra Software (ATLAS) library
@@ -311,6 +334,8 @@ extern "C" {
311334# define SAF_CURRENT_PERFORMANCE_LIBRARY_STRING "Intel MKL (ILP64)"
312335#elif defined(SAF_USE_OPEN_BLAS_AND_LAPACKE )
313336# define SAF_CURRENT_PERFORMANCE_LIBRARY_STRING "OpenBLAS with LAPACKE"
337+ #elif defined(SAF_USE_OPEN_BLAS )
338+ # define SAF_CURRENT_PERFORMANCE_LIBRARY_STRING "OpenBLAS"
314339#elif defined(SAF_USE_ATLAS )
315340# define SAF_CURRENT_PERFORMANCE_LIBRARY_STRING "ATLAS"
316341#elif defined(__APPLE__ ) && defined(SAF_USE_APPLE_ACCELERATE )
0 commit comments