Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

how to use libtbb.so in mkl with tensorflow

hang__su
Beginner
650 Views

I compile tensorflow with --config=mkl, And I want to use tbb in mkl, but is's only use libiomp5.so,how to use libtbb.so

ldd tensorflow/bazel-tensorflow/external/mkl/lib/libmklml_intel.so
        linux-vdso.so.1 =>  (0x00007ffefb88d000)
        libiomp5.so => not found
        libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007ff1c0fe5000)
        libm.so.6 => /usr/lib64/libm.so.6 (0x00007ff1c0ce3000)
        libc.so.6 => /usr/lib64/libc.so.6 (0x00007ff1c0922000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ff1ca13a000)
0 Kudos
2 Replies
Alice_H_Intel
Employee
650 Views

Hello, 

Thanks for your question. I will investigate this and get back to you soon.

Thanks,

Alice

0 Kudos
Alice_H_Intel
Employee
650 Views

Hello,

May I know why you want to use tbb ? The reason I ask is libmklml only support openmp and didn't support tbb. Actually, openmp provide better performance then tbb. If you build tensorflow with mkl, openmp support is default supported.

Thanks,

Alice

0 Kudos
Reply