Skip to content

Commit

Permalink
add accelerate blas
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Apr 18, 2024
1 parent 285f4c9 commit 6dc8196
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/multi/adaptors/blas/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ find_package(BLAS)
if(BLAS_FOUND)
message("Some BLAS found: linker flags: ${BLAS_LINKER_FLAGS}, libs: ${BLAS_LIBRARIES}, libs95: ${BLAS95_LIBRARIES}")
foreach(lib ${BLAS_LIBRARIES})
# https://cmake.org/cmake/help/latest/module/FindBLAS.html#blas-lapack-vendors
if(${lib} MATCHES "mkl")
message("Some BLAS found matches MKL")
add_definitions(-DBLAS_DOT_RETURNS_VOID)
Expand All @@ -29,7 +30,10 @@ if(BLAS_FOUND)
message("Some BLAS found matches hpc_sdk (nvhpc)") # nvhpc may still use a different version of BLAS
add_definitions(-DBLAS_DOT_RETURNS_VOID)
endif()
# TODO(correaa) add condition for Apple Accelerate
if(${lib} MATCHES "Accelerate")
message("Some BLAS found matches Accelerate (Apple)")
add_definitions(-DBLAS_DOT_RETURNS_VOID)
endif()
endforeach()
endif()

Expand Down

0 comments on commit 6dc8196

Please sign in to comment.