mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] eric-haibin-lin commented on a change in pull request #12058: MKLDNN can be turned off with env var
Date Wed, 15 Aug 2018 20:30:51 GMT
eric-haibin-lin commented on a change in pull request #12058: MKLDNN can be turned off with
env var
URL: https://github.com/apache/incubator-mxnet/pull/12058#discussion_r210393011
 
 

 ##########
 File path: src/executor/attach_op_execs_pass.cc
 ##########
 @@ -262,6 +262,12 @@ void CreateOpExecs(const Graph& g, OpExecVector* p_ret, size_t i)
{
   const auto& vctx = g.GetAttr<ContextVector>("context");
   const auto& dispatch_modes = g.GetAttr<DispatchModeVector>("dispatch_mode");
 
+#if MXNET_USE_MKLDNN == 1
+  if (!MKLDNNEnvSet()) common::LogOnce("MXNET_MKLDNN_ENABLED flag is off. "
+                                       "You can re-enable by setting MXNET_MKLDNN_ENABLED=1");
+#endif
+
+
 
 Review comment:
   This warning only gets printed for symbolic. What about imperative/Gluon? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message