提交 6602db5b 编写于 作者: T tensor-tang

throw warning if try to use mkldnn while not compiled

上级 6a32f198
...@@ -402,6 +402,9 @@ void Executor::EnableMKLDNN(const ProgramDesc& program) { ...@@ -402,6 +402,9 @@ void Executor::EnableMKLDNN(const ProgramDesc& program) {
} }
} }
} }
#else
LOG(WARNING)
<< "'MKLDNN' is not supported, Please re-compile with WITH_MKLDNN option";
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册