anirudh2290 opened a new issue #10801: CMake ignores USE_MKLDNN flag for 
1.2.0.RC[0-2] releases
URL: https://github.com/apache/incubator-mxnet/issues/10801
 
 
   CMake ignores the `USE_MKLDNN` flag for 1.2.RC2 release. This has been fixed 
in the master as part of #10731. To workaround the issue on 1.2.RC2 release, 
please apply the following changes in CMakeLists.txt:
   
   ```
    if(USE_MKL_IF_AVAILABLE)
      if(USE_MKLDNN)
   +    set(ARCH_OPT_FLAGS "-mtune=generic")
        add_subdirectory(3rdparty/mkldnn)
        include_directories(3rdparty/mkldnn/include)
   +    add_definitions(-DMXNET_USE_MKLDNN=1)
        list(APPEND mxnet_LINKER_LIBS mkldnn)
      endif()
      find_package(MKL)
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to