Skip to content

Commit

Permalink
Code review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rfsaliev committed Jun 18, 2024
1 parent 06dabec commit 9040e9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,9 @@ if (GGML_DNNL)
set(GGML_HEADERS_DNNL ggml-dnnl.h)
set(GGML_SOURCES_DNNL ggml-dnnl.cpp)

set(GGML_EXTRA_INCS ${GGML_EXTRA_INCS} ${CLBLAST_INC} ${OPENCL_INC})
set(GGML_EXTRA_LIBS ${GGML_EXTRA_LIBS} DNNL::dnnl)
set(GGML_EXTRA_FLAGS ${GGML_EXTRA_FLAGS} -DGGML_USE_DNNL)

set(GGML_DNNL_SOURCES ggml-dnnl.cpp ggml-dnnl.h)
else()
message(WARNING "OneDNN not found")
endif()
Expand Down Expand Up @@ -596,7 +594,7 @@ add_library(${TARGET}
${GGML_SOURCES_METAL} ${GGML_HEADERS_METAL}
${GGML_SOURCES_RPC} ${GGML_HEADERS_RPC}
${GGML_SOURCES_BLAS} ${GGML_HEADERS_BLAS}
${GGML_DNNL_SOURCES}
${GGML_SOURCES_DNNL} ${GGML_HEADERS_DNNL}
)

target_include_directories(${TARGET} PUBLIC
Expand Down

0 comments on commit 9040e9f

Please sign in to comment.