From 6602db5b3e43ef7b5b21cce0d62ef580815206fc Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Tue, 12 Jun 2018 17:09:16 +0800 Subject: [PATCH] throw warning if try to use mkldnn while not compiled --- paddle/fluid/framework/executor.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paddle/fluid/framework/executor.cc b/paddle/fluid/framework/executor.cc index 4a6f53cba1f..571019be36f 100644 --- a/paddle/fluid/framework/executor.cc +++ b/paddle/fluid/framework/executor.cc @@ -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 } -- GitLab