未验证 提交 76023c34 编写于 作者: L Leo Chen 提交者: GitHub

add deps on mkldnn for fluid_convert_util (#45633)

* clean includes of convert_util, test=kunlun

* add deps on mkldnn, test=kunlun
上级 e683e537
...@@ -1208,6 +1208,13 @@ else() ...@@ -1208,6 +1208,13 @@ else()
SRCS convert_utils.cc SRCS convert_utils.cc
DEPS data_type place) DEPS data_type place)
endif() endif()
# every source file that includes "dnnl.h" must depends on mkldnn
# or, the first one should depends on mkldnn
if(WITH_MKLDNN)
add_dependencies(fluid_convert_utils mkldnn)
endif()
cc_test( cc_test(
convert_utils_test convert_utils_test
SRCS convert_utils_test.cc SRCS convert_utils_test.cc
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册