Skip to content

Commit

Permalink
Prefer OpenBLAS over other non-handled vendors
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcars committed Nov 14, 2024
1 parent d4cd5c9 commit c3d95aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/ExternalBLASLAPACK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ else()
else()
set(OPENBLAS_DIR)
endif()

if(NOT OPENBLAS_DIR STREQUAL "")
# If OpenBLAS was found, prefer it over other vendors
set(BLA_VENDOR OpenBLAS)
endif()

list(APPEND CMAKE_PREFIX_PATH ${OPENBLAS_DIR})
find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
Expand Down

0 comments on commit c3d95aa

Please sign in to comment.