juliusshufan opened a new issue #10168: CPP test case fails to compile using 
gcc 4.8.5 when MKLDNN enabled
URL: https://github.com/apache/incubator-mxnet/issues/10168
 
 
   ## Description
   When compiling the CPP test cases using GCC 4.8.5 with MKLDNN enabled, a 
compiling error will be raised as below:
   tests/cpp/operator/mkldnn.cc:37:10: error: ‘align’ is not a member of ‘std’
      ret2 = std::align(alignment, size, mem, space2);
   
   This is because std::align requires GCC 5.0 or above, since the minimum 
requirement for MXNET is gcc 4.8, it is supposed std::align should not be 
replaced.
   
   ## Environment info (Required)
   CentOS 7.2 64bit
   
   ```
   What to do:
   1. Download the diagnosis script from 
https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py
   2. Run the script using `python diagnose.py` and paste its output here.
   
   ```
   
   Package used (Python/R/Scala/Julia):
   Python
   
   
   ## Build info (Required if built from source)
   make -j($nproc) USE_MKLDNN=1 USE_BLAS=mkl test
   
   Compiler (gcc/clang/mingw/visual studio):
   GCC 4.8.5
   
   MXNet commit hash:
   (Paste the output of `git rev-parse HEAD` here.)
   
   Build config:
   (Paste the content of config.mk, or the build command.)
   
   ## Error Message:
   Compiling error:
   tests/cpp/operator/mkldnn.cc:37:10: error: ‘align’ is not a member of ‘std’
      ret2 = std::align(alignment, size, mem, space2);
   
   ## Steps to reproduce
   (Paste the commands you ran that produced the error.)
   make -j($nproc) USE_MKLDNN=1 USE_BLAS=mkl USE_OPENCV=1 test
   
   
   

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