From: Cordell Bloor <cgmb@slerp.xyz>
Date: Sat, 8 Apr 2023 23:38:46 -0600
Subject: use generic blas for reference

The upstream project typically uses either the AOCL BLIS library or the
Netlib BLAS library as the reference implementation in the test suite on
Linux. However, the OpenBLAS library is used by upstream on Windows. It
would be nice to use OpenBLAS on Debian for performance reasons (as the
test suite is heavily CPU-bound), however, the Netlib implementation
seems to be more reliable for achieving a full suite of passing tests.

Forwarded: not-needed
---
 clients/CMakeLists.txt | 22 ++--------------------
 1 file changed, 2 insertions(+), 20 deletions(-)

diff --git a/clients/CMakeLists.txt b/clients/CMakeLists.txt
index 61bb06f..083b4e3 100755
--- a/clients/CMakeLists.txt
+++ b/clients/CMakeLists.txt
@@ -111,26 +111,8 @@ if( BUILD_CLIENTS_SAMPLES )
 endif( )
 
 if( BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_TESTS)
-  if ( NOT WIN32 )
-    if (LINK_BLIS)
-      set( BLIS_INCLUDE_DIR ${BUILD_DIR}/deps/blis/include/blis )
-      set( BLIS_CPP ../common/blis_interface.cpp )
-      set( BLAS_LIBRARY ${BUILD_DIR}/deps/blis/lib/libblis.a )
-    else()
-      set( BLAS_LIBRARY "blas" )
-    endif()
-  else() # WIN32
-    set( BLAS_INCLUDE_DIR ${OPENBLAS_DIR}/include CACHE PATH "OpenBLAS library include path" )
-    find_library( BLAS_LIBRARY libopenblas
-                  PATHS ${OPENBLAS_DIR}/lib
-                  NO_DEFAULT_PATH
-                )
-    if (NOT BLAS_LIBRARY)
-      find_package( OPENBLAS CONFIG REQUIRED )
-      set( BLAS_LIBRARY OpenBLAS::OpenBLAS )
-      set( BLAS_INCLUDE_DIR "" )
-    endif()
-  endif()
+  find_package(BLAS REQUIRED MODULE)
+  set(BLAS_LIBRARY BLAS::BLAS)
 
   # common source files used in subdirectories benchmarks and gtest thus ../common
   set( rocblas_test_bench_common
