File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
8
8
SET (DNNL_BUILD_TESTS FALSE CACHE BOOL "" FORCE)
9
9
SET (DNNL_BUILD_EXAMPLES FALSE CACHE BOOL "" FORCE)
10
10
SET (DNNL_ENABLE_PRIMITIVE_CACHE TRUE CACHE BOOL "" FORCE)
11
- # SET(DNNL_LIBRARY_TYPE STATIC CACHE STRING "" FORCE)
11
+ SET (DNNL_LIBRARY_TYPE STATIC CACHE STRING "" FORCE)
12
12
13
13
set (DPCPP_CPU_ROOT "${PROJECT_SOURCE_DIR} /torch_ipex/csrc/cpu" )
14
14
add_subdirectory (${DPCPP_THIRD_PARTY_ROOT} /mkl-dnn)
@@ -175,9 +175,11 @@ else()
175
175
message (FATAL_ERROR "Unknown ATen parallel backend: ${ATEN_THREADING} " )
176
176
endif ()
177
177
178
- target_link_libraries (${PLUGIN_NAME} PUBLIC dnnl)
179
178
add_dependencies (${PLUGIN_NAME} pybind11)
179
+
180
180
add_dependencies (${PLUGIN_NAME} dnnl)
181
+ target_link_libraries (${PLUGIN_NAME} PUBLIC ${PROJECT_SOURCE_DIR} /build /third_party/mkl-dnn/src/libdnnl.a)
182
+
181
183
add_dependencies (${PLUGIN_NAME} xsmm)
182
184
183
185
link_directories (${PYTORCH_INSTALL_DIR} /lib)
You can’t perform that action at this time.
0 commit comments