-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[Discussion] the condition semantics of mxnet_option. #14640
Comments
Hey, this is the MXNet Label Bot. |
+1 for changing |
+1, in details, we are trying use cmake to build mxnet with MKLDNN on windows we expect the -DUSE_MKLDNN=1 can overwrite the USE_MKLDNN -mxnet_option(USE_MKLDNN "Use MKLDNN variant of MKL (if MKL found)" ON IF USE_MKL_IF_AVAILABLE AND (NOT APPLE) AND (NOT MSVC) AND (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64") AND (NOT CMAKE_CROSSCOMPILING)) It doesn't work under MSVC + windows, because it was limited to "NOT MSVC" and CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64") should be AMD64. We expect the external user define like -DUSE_MKLDNN=1 can overwrite the mxnet_option currently, as workaround, we change the line as below. +mxnet_option(USE_MKLDNN "Use MKLDNN variant of MKL (if MKL found)" ON IF USE_MKL_IF_AVAILABLE AND (NOT APPLE) AND (NOT CMAKE_CROSSCOMPILING) AND ((CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64") OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64"))) thanks |
Hi @yajiedesign , do you have any plan to improve mxnet_option now? We found that actually MKL-DNN backend is not built and tested in CI for Windows. |
current ,If the
mxnet_option
condition is not satisfied, this option will be turned off ,not setting the default value off.But the current conditions in
mxnet_option
seem to want to set default values. Are we going to modifymxnet_option
?The text was updated successfully, but these errors were encountered: