Skip to content

Commit 1578c20

Browse files
committed
add the missing macro PADDLE_USE_MKLDNN
1 parent cece368 commit 1578c20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/external/mkldnn.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ ADD_LIBRARY(mkldnn SHARED IMPORTED GLOBAL)
6767
SET_PROPERTY(TARGET mkldnn PROPERTY IMPORTED_LOCATION ${MKLDNN_LIB})
6868
ADD_DEPENDENCIES(mkldnn ${MKLDNN_PROJECT})
6969
MESSAGE(STATUS "MKLDNN library: ${MKLDNN_LIB}")
70+
add_definitions(-DPADDLE_USE_MKLDNN)
7071
LIST(APPEND external_project_dependencies mkldnn)

0 commit comments

Comments
 (0)