Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: Howto build mkl_tiny? #674

Closed
banderlog opened this issue Mar 20, 2020 · 6 comments
Closed

Q: Howto build mkl_tiny? #674

banderlog opened this issue Mar 20, 2020 · 6 comments
Assignees
Labels

Comments

@banderlog
Copy link

OpenVINO has some 30MB libmkl_tiny_tbb.so, which is:

"The special version of MKL dynamic library packed specially to use within Inference Engine library.", as stated in version.txt.

MKL-DNN has 125MB libmklml_gnu.so. Is there a way to build a ~30MB file from MKL-DNN git hub repo?

@emfomenk
Copy link

Hi @banderlog,

I guess mkl_tiny is built using Custom DLL builder. The size of the resulting library depends on how many symbols you put in it. IIRC, mkl_tiny has only gemm and maybe very few extra functions, while mklml has many more functions from BLAS, some LAPACK functions, and even functions from VML/VSL domain.

@emfomenk emfomenk self-assigned this Mar 20, 2020
@vpirogov
Copy link
Member

@banderlog,

It's important to note that libmkl_tiny_tbb.so is a derivative of Intel MKL. This repository does not include this library or any of it's sources.

@banderlog
Copy link
Author

Thank you guys, I'll conclude that the answer is 'No'

@ghhofeme
Copy link

Hey - the user also posted this question in Stack Overflow - I posted the answer there and the link to this thread.

@vpirogov
Copy link
Member

@banderlog, that's correct. Let me expand the answer.

The only way to build libmkl_tiny_tbb.so is from Intel MKL package using custom shared object building tool.

The functionality equivalent to libmkl_tiny_tbb.so is available in DNNL v1.x and above. OpenVINO will stop using libmkl_tiny_tbb.so in the next release and this library will not be required anymore to build it.

@WilliamTambellini
Copy link
Contributor

And worth to mention that a release build of libdnnl.so is "only" about 20MB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants