Note that there are some explanatory texts on larger screens.

plurals
  1. POStill the link errors about Intel-MKL
    primarykey
    data
    text
    <p>This is the configuration of QT project:</p> <pre><code> unix { INCLUDEPATH += /opt/intel/mkl/include LIBS += -L/opt/intel/mkl/lib/intel64 \ -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_def \ -liomp5 -lpthread -ldl -lm } </code></pre> <p>And the errors is <img src="https://i.stack.imgur.com/nSWSM.jpg" alt="intel-mkl-link-error"></p> <p>I hve linked the <code>-lm</code> flag, why?</p> <p><strong>UPDATED:</strong></p> <pre><code> ubuntu@ubuntu-desktop:/opt/intel/mkl/tools$ ./mkl_link_tool -check_mkl_presence Intel(R) Math Kernel Library (Intel(R) MKL) Link Tool v4.0 ========================================================== Unknown mode. Specify -libs, -opts, -env or compilation line Configuration ============= MKL version: 11.1 OS: lnx Architecture: intel64 Compiler: intel_f Linking: dynamic Interface layer: lp64 Parallel: yes OpenMP library: iomp5 ubuntu@ubuntu-desktop:/opt/intel/mkl/tools$ ./mkl_link_tool -check_mkl_presence -libs -opts -env Intel(R) Math Kernel Library (Intel(R) MKL) Link Tool v4.0 ========================================================== Output ====== Compiler option(s): -I/opt/intel/composer_xe_2013_sp1.0.080/mkl/include Linking line: -L/opt/intel/composer_xe_2013_sp1.0.080/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm Environment variable(s): export LD_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.0.080/mkl/../compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.0.080/mkl/lib/intel64:$LD_LIBRARY_PATH; ubuntu@ubuntu-desktop:/opt/intel/mkl/tools$ </code></pre> <p><strong>UPDATED2:</strong></p> <pre><code> ubuntu@ubuntu-desktop:/opt/intel/mkl/lib/intel64$ ldd libmkl_core.so linux-vdso.so.1 =&gt; (0x00007fff2b589000) libdl.so.2 =&gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe268d8d000) libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe2689ce000) /lib64/ld-linux-x86-64.so.2 (0x00007fe26a50c000) ubuntu@ubuntu-desktop:/opt/intel/mkl/lib/intel64$ </code></pre> <p>I have used the <code>ldd</code> command to see what libraries are needed by libmkl_core.so, it doesn't show the libm.so or math library. Why In the Qt creator, it shows <code>undefined reference to 'logf'</code>?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload