TaoLv commented on pull request #18368:
URL: https://github.com/apache/incubator-mxnet/pull/18368#issuecomment-653774331


   @szha, do you mean the errors below? As I mentioned in 
https://github.com/apache/incubator-mxnet/pull/18645#issuecomment-652198544, we 
need also enable `MKL_USE_ILP64` in cmake line when LTS is enabled. More 
information, see 
https://software.intel.com/content/www/us/en/develop/documentation/mkl-macos-developer-guide/top/linking-your-application-with-the-intel-math-kernel-library/linking-in-detail/linking-with-interface-libraries/using-the-ilp64-interface-vs-lp64-interface.html.
 I'm afraid that similar problem may also exist in mshadow code: 
https://github.com/apache/incubator-mxnet/blob/master/3rdparty/mshadow/mshadow/dot_engine-inl.h#L317.
   
   ```
   [2020-07-03T21:00:50.972Z] 
/work/mxnet/src/operator/contrib/transformer.cc:143:31: error: narrowing 
conversion of 'm' from 'mxnet::index_t {aka long int}' to 'int' inside { } 
[-Werror=narrowing]
   [2020-07-03T21:00:50.972Z]    MKL_INT p_m[GROUP_SIZE] = {m};
   [2020-07-03T21:00:50.972Z]                                ^
   [2020-07-03T21:00:50.972Z] 
/work/mxnet/src/operator/contrib/transformer.cc:144:31: error: narrowing 
conversion of 'n' from 'mxnet::index_t {aka long int}' to 'int' inside { } 
[-Werror=narrowing]
   [2020-07-03T21:00:50.972Z]    MKL_INT p_n[GROUP_SIZE] = {n};
   [2020-07-03T21:00:50.972Z]                                ^
   [2020-07-03T21:00:50.972Z] 
/work/mxnet/src/operator/contrib/transformer.cc:145:31: error: narrowing 
conversion of 'k' from 'mxnet::index_t {aka long int}' to 'int' inside { } 
[-Werror=narrowing]
   [2020-07-03T21:00:50.972Z]    MKL_INT p_k[GROUP_SIZE] = {k};
   [2020-07-03T21:00:50.972Z]                                ^
   [2020-07-03T21:00:50.972Z] 
/work/mxnet/src/operator/contrib/transformer.cc:146:35: error: narrowing 
conversion of 'lda' from 'mxnet::index_t {aka long int}' to 'int' inside { } 
[-Werror=narrowing]
   [2020-07-03T21:00:50.972Z]    MKL_INT p_lda[GROUP_SIZE] = {lda};
   [2020-07-03T21:00:50.972Z]                                    ^
   [2020-07-03T21:00:50.972Z] 
/work/mxnet/src/operator/contrib/transformer.cc:147:35: error: narrowing 
conversion of 'ldb' from 'mxnet::index_t {aka long int}' to 'int' inside { } 
[-Werror=narrowing]
   [2020-07-03T21:00:50.972Z]    MKL_INT p_ldb[GROUP_SIZE] = {ldb};
   [2020-07-03T21:00:50.972Z]                                    ^
   [2020-07-03T21:00:50.972Z] 
/work/mxnet/src/operator/contrib/transformer.cc:148:35: error: narrowing 
conversion of 'ldc' from 'mxnet::index_t {aka long int}' to 'int' inside { } 
[-Werror=narrowing]
   [2020-07-03T21:00:50.972Z]    MKL_INT p_ldc[GROUP_SIZE] = {ldc};
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to