mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Support multiple contraction kernel types in TensorContractionThreadPool
This commit is contained in:
18
cmake/FindMkldnn.cmake
Normal file
18
cmake/FindMkldnn.cmake
Normal file
@@ -0,0 +1,18 @@
|
||||
# Intel mkl-dnn support.
|
||||
# Link: https://github.com/intel/mkl-dnn
|
||||
if (MKLDNN)
|
||||
set(MKLDNN_FIND_QUIETLY TRUE)
|
||||
set(MKLDNN_INCLUDES ${MKLDNN}/include)
|
||||
set(MKLDNN_LIBRARIES ${MKLDNN}/lib)
|
||||
endif (MKLDNN)
|
||||
find_path(MKLDNN
|
||||
NAMES
|
||||
mkldnn.h
|
||||
PATHS
|
||||
$ENV{MKLDNNDIR}/include
|
||||
${INCLUDE_INSTALL_DIR}
|
||||
)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(MKLDNN DEFAULT_MSG
|
||||
MKLDNN)
|
||||
mark_as_advanced(MKLDNN)
|
||||
Reference in New Issue
Block a user