throw warning if try to use mkldnn while not compiled

wangkuiyi-patch-1
tensor-tang 7 years ago
parent 6a32f19865
commit 6602db5b3e

@ -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
}

Loading…
Cancel
Save