未验证 提交 13d62e12 编写于 作者: L Leo Chen 提交者: GitHub

add deps on mkldnn for var_type_traits (#45629)

上级 38973452
......@@ -188,6 +188,13 @@ cc_library(
if(WITH_GPU)
target_link_libraries(var_type_traits dynload_cuda)
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(var_type_traits mkldnn)
endif()
cc_test(
var_type_traits_test
SRCS var_type_traits_test.cc
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册