Skip to content

Commit

Permalink
minor cmake fix for header only use-case (oneMKL in particular)
Browse files Browse the repository at this point in the history
  • Loading branch information
OuadiElfarouki committed Feb 19, 2024
1 parent a8282b2 commit 25d3d23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ option(BLAS_ENABLE_EXTENSIONS "Whether to enable portBLAS extensions" ON)
option(BLAS_ENABLE_COMPLEX "Whether to enable complex data type for GEMM" OFF)
option(BLAS_ENABLE_HALF "Whether to enable sycl::half data type for supported operators" OFF)

if(${TUNING_TARGET} STREQUAL "DEFAULT_CPU")
if(((NOT INSTALL_HEADER_ONLY) AND (TUNING_TARGET STREQUAL "DEFAULT_CPU"))
OR (INSTALL_HEADER_ONLY AND (NOT TUNING_TARGET)))
set(BLAS_ENABLE_HALF OFF)
message(STATUS "FP16 operations are not supported for CPU targets. BLAS_ENABLE_HALF is disabled")
endif()
Expand Down

0 comments on commit 25d3d23

Please sign in to comment.