-
Notifications
You must be signed in to change notification settings - Fork 6.8k
CMake build with MKL_USE_ILP64 throws type mismatch #16471
Comments
Hey, this is the MXNet Label Bot. |
@mxnet-label-bot, add [Bug, Build] |
AFAIK, MXNet doesn't work with ILP64. Could you please elaborate what's the problem you want to solve? |
cc @yinghu5 |
@TaoLv we are trying to get ILP64 builds to work. Your comment is very unexpected for us, because we have regularly used mxnet builds with ILP64 in the past without any problem. Also, the same commit referenced in the issue builds and runs just fine with ILP64 on mac. The issue we're having is with linux only. |
Hi @matteosal I'm not sure I understand your question. Since you're trying to use ILP64, I guess your tensor size is > INT32_MAX. Recently, INT64 tensor size is supported by #14570 via a new compilation flag Even though this flag is set, the linkage of MKL BLAS in mshadow is still LP64 and the gemm API in mshadow is using See https://github.com/apache/incubator-mxnet/blob/master/3rdparty/mshadow/make/mshadow.mk#L93 and https://github.com/apache/incubator-mxnet/blob/master/3rdparty/mshadow/mshadow/dot_engine-inl.h#L281. |
@matteosal Can you try with the USE_INT64_TENSOR_SIZE flag? |
building with ilp64 mkl/openblas is now supported. Setting USE_INT64_TENSOR_SIZE=1 will automatically link to ilp64 mkl now |
When setting
MKL_USE_ILP64
toOn
in the CMake build, the build fails:The rest of my CMake build command is here:
I'm using
gcc 4.8.2
on CentOS-6 from commitf52ddfd880ad9d0e5a9d26eb41aabdd96fa4ac65
. SettingMKL_USE_ILP64
toOff
gets mxnet to build and successfully link against libmkl_intel_lp64.so, which is expected. Any help would be appreciated.The text was updated successfully, but these errors were encountered: