<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hello. I had the same problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979513#M17367</link>
    <description>&lt;P&gt;Hello. I had the same problem, except for I didn't use gfortran, I used g++.&lt;/P&gt;
&lt;P&gt;The problem is that the resulting binary is not linked with libmkl_intel_thread, and neither is&amp;nbsp;libmkl_gf_ilp64 - you can check it with ldd.&lt;/P&gt;
&lt;P&gt;The workaround is as follows:&lt;/P&gt;
&lt;P&gt;LD_PRELOAD=/path/to/libmkl_core.so:/path/to/libmkl_intel_thread.so your-program&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2013 17:43:38 GMT</pubDate>
    <dc:creator>Andrey_Tikhonov</dc:creator>
    <dc:date>2013-02-13T17:43:38Z</dc:date>
    <item>
      <title>Symbol lookup error: undefined symbol: mkl_vsl_serv_threader_for</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979505#M17359</link>
      <description>&lt;P&gt;I am getting the following runtime error : &lt;STRONG&gt;symbol lookup error: /opt/intel/mkl/lib/intel64/libmkl_gf_ilp64.so: undefined symbol: mkl_vsl_serv_threader_for&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I probably have to update my 'LD_LIBRARY_PATH' but I can't seem to figure out what path is missing. Any ideas? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2012 17:33:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979505#M17359</guid>
      <dc:creator>Joseph_I_</dc:creator>
      <dc:date>2012-12-26T17:33:54Z</dc:date>
    </item>
    <item>
      <title>Joseph,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979506#M17360</link>
      <description>Joseph, 
yes, please check the LD_LIBRARY_PATH first of all or try to use the existing scripts: &lt;MKLROOT&gt;\bin\mklvars.sh intel64 for setting all required paths.
in the case if these settings will not help - give us the linking line you use for building this application.
here is the link to the MKL Linker Adviser for your reference: 
  &lt;A href="http://software.intel.com/sites/products/mkl/" target="_blank"&gt;http://software.intel.com/sites/products/mkl/&lt;/A&gt;

--Gennady&lt;/MKLROOT&gt;</description>
      <pubDate>Thu, 27 Dec 2012 06:29:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979506#M17360</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2012-12-27T06:29:05Z</dc:date>
    </item>
    <item>
      <title>Quote:Gennady Fedorov (Intel)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979507#M17361</link>
      <description>&lt;BLOCKQUOTE&gt;Gennady Fedorov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;Joseph,&lt;BR /&gt;
yes, please check the LD_LIBRARY_PATH first of all or try to use the existing scripts: \bin\mklvars.sh intel64 for setting all required paths.&lt;BR /&gt;
in the case if these settings will not help - give us the linking line you use for building this application.&lt;BR /&gt;
here is the link to the MKL Linker Adviser for your reference:&lt;BR /&gt;
&lt;A href="http://software.intel.com/sites/products/mkl/"&gt;http://software.intel.com/sites/products/mkl/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;&lt;/BLOCKQUOTE&gt;

Hi Gennady,

Thank you for your response i tried using mklvars.sh intel 64 to set any required paths but I still get the same error. The following is the linking line I have used

-L/opt/intel/mkl/lib/intel64 -lmkl_scalapack_ilp64 -lmkl_cdft_core -lmkl_gf_ilp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi_ilp64 -ldl -lpthread -lm -L/opt/intel/lib/intel64 -liomp5</description>
      <pubDate>Thu, 27 Dec 2012 09:11:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979507#M17361</guid>
      <dc:creator>Joseph_I_</dc:creator>
      <dc:date>2012-12-27T09:11:41Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979508#M17362</link>
      <description>Hi,
We have checked the problem with the latest version 11.0 update1 and see no problems. 
We have used on of VSL example ( vsldbasicstats.f   ) from &lt;MKLROOT&gt;\examples\vslf\source\ directory.
Would you please check if you can build and execute this example too and please let us know the results.
in the case if any  further problem - please give us your example for checking the problem on our side.

one more note - you use ILP64 interfaces, therefore you need to add the following compiler options:
-fdefault-integer-8 -m64

--Gennady&lt;/MKLROOT&gt;</description>
      <pubDate>Thu, 27 Dec 2012 11:57:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979508#M17362</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2012-12-27T11:57:02Z</dc:date>
    </item>
    <item>
      <title>Quote:Gennady Fedorov (Intel)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979509#M17363</link>
      <description>&lt;BLOCKQUOTE&gt;Gennady Fedorov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;Hi,&lt;BR /&gt;
We have checked the problem with the latest version 11.0 update1 and see no problems.&lt;BR /&gt;
We have used on of VSL example ( vsldbasicstats.f   ) from \examples\vslf\source\ directory.&lt;BR /&gt;
Would you please check if you can build and execute this example too and please let us know the results.&lt;BR /&gt;
in the case if any  further problem - please give us your example for checking the problem on our side.&lt;/P&gt;
&lt;P&gt;one more note - you use ILP64 interfaces, therefore you need to add the following compiler options:&lt;BR /&gt;
-fdefault-integer-8 -m64&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;&lt;/BLOCKQUOTE&gt;

Hi Gennady,

Thanks again fro your response. It seems that I get the runtime error whenever i compile Fortran with gfortran (4.6.3), however when I compile with ifort, the error is not there. That is very weird. The program I am trying to build with MKL is NWChem a computational chemistry software you can download the source &lt;A href="http://www.nwchem-sw.org/download.php?f=Nwchem-6.1.1-src.2012-06-27.tar.gz" target="_blank"&gt;http://www.nwchem-sw.org/download.php?f=Nwchem-6.1.1-src.2012-06-27.tar.gz&lt;/A&gt; (it is GPL) . 
This is the bash script you will need to use to buld the application (you will need to run the script inside the "src" directory)

[bash]
#!/bin/bash
export NWCHEM_TOP=/home/doudou/Programs/nwchem-6.1.1-mkl
export NWCHEM_TARGET=LINUX64
export USE_MPI=y
export USE_MPIF=y
export USE_MPIF4=y
export MPI_LOC=/home/doudou/Programs/OpenMPI
export LIBMPI="-lmpi_f90 -lmpi_f77 -lmpi -lpthread" 
export MPI_LIB=$MPI_LOC/lib
export MPI_INCLUDE=$MPI_LOC/include
export LARGE_FILES=TRUE
export NWCHEM_MODULES=all
export MKLROOT=/opt/intel/mkl
export BLASOPT="-L$MKLROOT/lib/intel64 -lmkl_scalapack_ilp64 -lmkl_cdft_core -lmkl_gf_ilp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi_ilp64 -ldl -lpthread -lm -L/opt/intel/lib/intel64 -liomp5"
make clean
make FC=gfortran FFLAGS="-fdefault-integer-8 -m64"  nwchem_config
make FC=gfortran FFLAGS="-fdefault-integer-8 -m64"  HAS_BLAS=yes 
[/bash]

Thanks again for your help</description>
      <pubDate>Fri, 28 Dec 2012 06:16:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979509#M17363</guid>
      <dc:creator>Joseph_I_</dc:creator>
      <dc:date>2012-12-28T06:16:05Z</dc:date>
    </item>
    <item>
      <title>If you want help with</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979510#M17364</link>
      <description>If you want help with compiling a huge application (~80 MB of source code) with GFortran, you should probably seek that help elsewhere. 

If you can make up a small example that encapsulates the build problems that you experienced and establish that there is, indeed, a problem with a specific set of MKL routines, you could post that here.</description>
      <pubDate>Tue, 01 Jan 2013 12:12:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979510#M17364</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-01-01T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Quote:mecej4 wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979511#M17365</link>
      <description>&lt;BLOCKQUOTE&gt;mecej4 wrote:&lt;BR /&gt;&lt;P&gt;If you want help with compiling a huge application (~80 MB of source code) with GFortran, you should probably seek that help elsewhere. &lt;/P&gt;
&lt;P&gt;If you can make up a small example that encapsulates the build problems that you experienced and establish that there is, indeed, a problem with a specific set of MKL routines, you could post that here.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;

I dont need help with compiling with gfortran (in case you have not read the title of thread), the code compiles fine nad I am able to link all the libraries fine, except when it was compiled with gfortran I get a runtime error, I dont get this error with ifort.</description>
      <pubDate>Tue, 01 Jan 2013 16:39:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979511#M17365</guid>
      <dc:creator>Joseph_I_</dc:creator>
      <dc:date>2013-01-01T16:39:17Z</dc:date>
    </item>
    <item>
      <title>first, that symbol is in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979512#M17366</link>
      <description>&lt;P&gt;first, that symbol is in libmkl_intel_thread, at least in the version of MKL packaged with the Composer XE 2013 (aka compiler 13.0 compilers) so perhaps something foobar is going on with your build since you claim you have that lib in your link line.&amp;nbsp; Make sure to 'make distclean' or something equivalent, maybe even going back to the configure step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you have not mentioned what compiler version you are using, nor have you said if you 'source /opt/intel/bin/compilervars.sh intel64', which is essential.&lt;/P&gt;
&lt;P&gt;-m64 is for Mac OS and for gcc compatibilty.&amp;nbsp; For Intel Fortran for Linux, I'd suspect you need these options, but do check with NWChem gurus:&lt;/P&gt;
&lt;P&gt;-integer-size 64 -mc-model medium -dynamic-intel&lt;/P&gt;
&lt;P&gt;along with the other options (you showed the gfortran options, not the options you're using for Intel - what are those?)&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:42:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979512#M17366</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2013-01-15T15:42:56Z</dc:date>
    </item>
    <item>
      <title>Hello. I had the same problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979513#M17367</link>
      <description>&lt;P&gt;Hello. I had the same problem, except for I didn't use gfortran, I used g++.&lt;/P&gt;
&lt;P&gt;The problem is that the resulting binary is not linked with libmkl_intel_thread, and neither is&amp;nbsp;libmkl_gf_ilp64 - you can check it with ldd.&lt;/P&gt;
&lt;P&gt;The workaround is as follows:&lt;/P&gt;
&lt;P&gt;LD_PRELOAD=/path/to/libmkl_core.so:/path/to/libmkl_intel_thread.so your-program&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 17:43:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979513#M17367</guid>
      <dc:creator>Andrey_Tikhonov</dc:creator>
      <dc:date>2013-02-13T17:43:38Z</dc:date>
    </item>
    <item>
      <title>You can force ld to link to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979514#M17368</link>
      <description>&lt;P&gt;You can force ld to link to this libraries by using --no-as-needed switch, like this:&lt;/P&gt;
&lt;P&gt;ld obj1.o obj2.o -lfoo -lbar --no-as-needed -lmkl_core -lmkl_intel_thread&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 19:25:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979514#M17368</guid>
      <dc:creator>Andrey_Tikhonov</dc:creator>
      <dc:date>2013-02-13T19:25:02Z</dc:date>
    </item>
    <item>
      <title>Hi, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979515#M17369</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;I am having the very same problem of &lt;STRONG&gt;"libmkl_intel_lp64.so: undefined symbol: mkl_vsl_serv_threader_for",&amp;nbsp;&lt;/STRONG&gt;I have tried all the suggested stuff on this post and could not get the code running, here I am describing what I am trying to do.&lt;/P&gt;

&lt;P&gt;The code I am trying to run is --&amp;nbsp;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;#define min(x,y) (((x) &amp;lt; (y)) ? (x) : (y))&lt;/P&gt;

	&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;
		#include &amp;lt;stdlib.h&amp;gt;&lt;BR /&gt;
		#include "mkl.h"&lt;BR /&gt;
		#include &amp;lt;time.h&amp;gt;&lt;/P&gt;

	&lt;P&gt;int main()&lt;BR /&gt;
		{&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;time_t t;&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; double *A, *B, *C;&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; int m, n, k, i, j;&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; double alpha, beta;&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; printf ("\n This example computes real matrix C=alpha*A*B+beta*C using \n"&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; " Intel® MKL function dgemm, where A, B, and &amp;nbsp;C are matrices and \n"&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; " alpha and beta are double precision scalars\n\n");&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; m = 100, k = 20, n = 1000;&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; //m = 20000, k = 200, n = 100;&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; printf (" Initializing data for matrix multiplication C=A*B for matrix \n"&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; " A(%ix%i) and matrix B(%ix%i)\n\n", m, k, k, n);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; alpha = 1.0; beta = 0.0;&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; printf (" Allocating memory for matrices aligned on 64-byte boundary for better \n"&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; " performance \n\n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; A = (double *)mkl_malloc( m*k*sizeof( double ),64);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; B = (double *)mkl_malloc( k*n*sizeof( double ),64);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; C = (double *)mkl_malloc( m*n*sizeof( double ),64);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; if (A == NULL || B == NULL || C == NULL) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; printf( "\n ERROR: Can't allocate memory for matrices. Aborting... \n\n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; free(A);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; free(B);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; free(C);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; return 1;&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; printf (" Intializing matrix data \n\n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; (m*k); i++) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;I&gt; = (double)(i+1);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/I&gt;&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; (k*n); i++) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&lt;I&gt; = (double)(-i-1);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/I&gt;&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; (m*n); i++) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C&lt;I&gt; = 0.0;&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/I&gt;&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; printf (" Computing matrix product using Intel® MKL dgemm function via CBLAS interface \n\n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; t = clock();&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans,&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m, n, k, alpha, A, k, B, n, beta, C, n);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; printf ("\n Computations completed.\n\n");&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; t = clock() - t;&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; printf (" time taken is %f \n", ((float)t)/1000.0);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; printf (" Top left corner of matrix A: \n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; for (i=0; i&amp;lt;min(m,6); i++) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; for (j=0; j&amp;lt;min(k,6); j++) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf ("%12.0f", A[j+i*k]);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; printf ("\n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; printf ("\n Top left corner of matrix B: \n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; for (i=0; i&amp;lt;min(k,6); i++) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; for (j=0; j&amp;lt;min(n,6); j++) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf ("%12.0f", B[j+i*n]);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; printf ("\n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; printf ("\n Top left corner of matrix C: \n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; for (i=0; i&amp;lt;min(m,6); i++) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; for (j=0; j&amp;lt;min(n,6); j++) {&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf ("%12.5G", C[j+i*n]);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; printf ("\n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; }&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; printf ("\n Deallocating memory \n\n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; mkl_free(A);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; mkl_free(B);&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; mkl_free(C);&lt;/P&gt;

	&lt;P&gt;&amp;nbsp; &amp;nbsp; printf (" Example completed. \n\n");&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; return 0;&lt;BR /&gt;
		}&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Here are the list of things I did along with the results I got.&lt;/P&gt;

&lt;P&gt;~/.bashrc has this line&amp;nbsp;&lt;/P&gt;

&lt;P&gt;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1.0.080/mkl/lib/intel64:/opt/intel/composer_xe_2013_sp1.0.080/compiler/lib/intel64&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;1.1. Compiler command: -&amp;nbsp;g++ -I/opt/intel/mkl/include -O3 -Wall -c -m64 -fmessage-length=0 -MMD -MP -MF"checkMKL_DGEMM.d" -MT"checkMKL_DGEMM.d" -o "checkMKL_DGEMM.o" "../checkMKL_DGEMM.cpp"&lt;/P&gt;

&lt;P&gt;1.2. Linker command:&amp;nbsp;g++ -L/opt/intel/composer_xe_2013_sp1.0.080/mkl/lib/intel64 -o "mklMatrixMul" checkMKL_DGEMM.o -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -L/opt/intel/composer_xe_2013_sp1.0.080/compiler/lib/intel64 -liomp5 -ldl -lpthread -lm&lt;/P&gt;

&lt;P&gt;1.3. Result on running: &amp;nbsp;symbol lookup error: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so: undefined symbol: mkl_vsl_serv_threader_for&lt;/P&gt;

&lt;P&gt;1.4.&amp;nbsp;Result of running ldd ./mklMatrixMul:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;linux-vdso.so.1 =&amp;gt; &amp;nbsp;(0x00007fffde182000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libmkl_intel_lp64.so =&amp;gt; /opt/intel/composer_xe_2013_sp1.0.080/mkl/lib/intel64/libmkl_intel_lp64.so (0x00007fb5908e2000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libc.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb590507000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libdl.so.2 =&amp;gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb590303000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;/lib64/ld-linux-x86-64.so.2 (0x00007fb591007000)&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;1.5 Result of using LD_PRELOAD=opt/intel/mkl/lib/intel64/libmkl_intel_thread.so:opt/intel/mkl/lib/intel64/libmkl_core.so ./mklMatrixMul&lt;/P&gt;

&lt;P&gt;symbol lookup error: /opt/intel/mkl/lib/intel64/libmkl_core.so: undefined symbol: pthread_mutex_trylock&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Then I tried the options specified on the Intel linker option finder.&lt;/P&gt;

&lt;P&gt;2.1 Compiler ----&amp;nbsp;g++ -c -DMKL_ILP64 -m64 -I/opt/intel/composer_xe_2013_sp1.0.080/mkl/include -Wall -O3 -o foo.o checkMKL_DGEMM.cpp&lt;/P&gt;

&lt;P&gt;2.2 Linker -----&amp;nbsp;&amp;nbsp;g++ -o foo foo.o -L/opt/intel/composer_xe_2013_sp1.0.080/mkl/lib/intel64 -lmkl_intel_ilp64 -lmkl_core -lmkl_intel_thread -liomp5 -ldl -lpthread -lm&lt;/P&gt;

&lt;P&gt;2.3 ldd -----&amp;nbsp;&lt;/P&gt;

&lt;P&gt;linux-vdso.so.1 =&amp;gt; &amp;nbsp;(0x00007fff2a1fe000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libmkl_intel_ilp64.so =&amp;gt; /opt/intel/composer_xe_2013_sp1.0.080/mkl/lib/intel64/libmkl_intel_ilp64.so (0x00007ffb038d1000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libc.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffb034f6000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libdl.so.2 =&amp;gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ffb032f2000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;/lib64/ld-linux-x86-64.so.2 (0x00007ffb03fe7000)&lt;/P&gt;

&lt;P&gt;2.4 ./foo results in&amp;nbsp;/opt/intel/composer_xe_2013_sp1.0.080/mkl/lib/intel64/libmkl_intel_ilp64.so: undefined symbol: mkl_vsl_serv_threader_for&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So, you can see I have tried almost everything that was suggested on this post and elsewhere, can anyone help me that, I have a 30 day free-trial version of MKL installed on 64 bit Ubuntu, i7-2720 QM processor.&lt;/P&gt;

&lt;P&gt;Any help will be deeply appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2013 02:17:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979515#M17369</guid>
      <dc:creator>abhishek_s_2</dc:creator>
      <dc:date>2013-12-23T02:17:34Z</dc:date>
    </item>
    <item>
      <title>Did you ever find a solution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979516#M17370</link>
      <description>&lt;P&gt;Did you ever find a solution to this problem? I am attempting to compile and link a program with gcc and am receiving the same error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 21:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979516#M17370</guid>
      <dc:creator>Yong_Jae_K_</dc:creator>
      <dc:date>2014-01-11T21:26:00Z</dc:date>
    </item>
    <item>
      <title>Thank  abhishek s and Andrey</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979517#M17371</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thank &amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://software.intel.com/en-us/user/995943" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;abhishek s&lt;/A&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://software.intel.com/en-us/user/784808" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;Andrey Tikhonov&lt;/A&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;much for giving us the hint. &lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;We suspect some GCC versions on Ubuntu deployed --as-needed behavior as default.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;This option tells linker did not add DT_NEEDED ELF flag for all specified libraries but only for libraries with symbols used in the test. Thus the correlated library are not loaded at runtime and executable fails with runtime error.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Please see&amp;nbsp;http://software.intel.com/en-us/forums/topic/499180&lt;/P&gt;

&lt;P&gt;The solution is to add --no-as-needed in command line.&amp;nbsp;&lt;/P&gt;

&lt;P align="left"&gt;g++ -L/opt/intel/composer_xe_2013_sp1.0.080/mkl/lib/intel64 -o "mklMatrixMul" checkMKL_DGEMM.o &lt;STRONG&gt;-Wl,--no-as-needed&lt;/STRONG&gt; -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -L/opt/intel/composer_xe_2013_sp1.0.080/compiler/lib/intel64 -liomp5 -ldl -lpthread -lm.&amp;nbsp;&lt;/P&gt;

&lt;P align="left"&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 01:29:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-lookup-error-undefined-symbol-mkl-vsl-serv-threader-for/m-p/979517#M17371</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2014-01-14T01:29:16Z</dc:date>
    </item>
  </channel>
</rss>

