Open Zha0q1 opened 4 years ago
Looks like the same issue as this? https://github.com/xianyi/OpenBLAS/issues/460
Is this on master or on your modified code?
Is this on master or on your modified code?
This is on master
Why do you turn USE_LAPACK OFF
? Do you build via the tools/staticbuild/build.s
? Otherwise the Distribution
build type is not supported.
Why do you turn
USE_LAPACK OFF
?
I am building with ilp64 mkl so lapack signatures are different. This is something I will work on fixing but for this build I turned it off.
Do you build via the tools/staticbuild/build.s?
Yes. The build succeeded but I ran into that error at runtime
I am building with ilp64 mkl
However you set USE_MKL_IF_AVAILABLE OFF
and you didn't specify the BLAS
option?
If you build with mkl blas, mxnet will not depend on libgfortran. As you build opencv with a dependency on libgfortran and static link opencv, you need to manually specify the dependency on libgfortran. It would be better to use a consistent BLAS library when building OpenCV and MXNet, ie also use MKL for OpenCV
However you set
USE_MKL_IF_AVAILABLE OFF
and you didn't specify theBLAS
option?
Right, I overlooked this. But our cmake will still choose mkl as our choice of blas.
If you build with mkl blas, mxnet will not depend on libgfortran. As you build opencv with a dependency on libgfortran and static link opencv, you need to manually specify the dependency on libgfortran. It would be better to use a consistent BLAS library when building OpenCV and MXNet, ie also use MKL for OpenCV
Thanks for the insight! As discussed offline we will be providing a fix to this
I used this cmake config
The compilation was successful but when importing mxnet this was the error message:
Disabling opencv resolved the issue