<?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 Some extra information. For in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094361#M23458</link>
    <description>&lt;P&gt;Some extra information. For some reason compiling for use with a debugger works, but only for the static object. The compiler commands are from the link line advisor for the second set.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;[crackauc@crackauc EMtest]$ icc vslTest.c -g -Wall -mkl -o vslTest.o
[crackauc@crackauc EMtest]$ ./vslTest.o
passed
[crackauc@crackauc EMtest]$ icc vslTest.c -Wall -mkl -o vslTest.o
[crackauc@crackauc EMtest]$ ./vslTest.o
Segmentation fault (core dumped)
[crackauc@crackauc EMtest]$ ./vslTest.o
Segmentation fault (core dumped)
[crackauc@crackauc EMtest]$ icc vslTest.c &amp;nbsp;-Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group -lpthread -lm -DMKL_ILP64 -I${MKLROOT}/include -g -o vslTest.o
[crackauc@crackauc EMtest]$ ./vslTest.o
passed
[crackauc@crackauc EMtest]$ icc vslTest.c  -L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_core -lmkl_sequential -lpthread -lm  -DMKL_ILP64 -I${MKLROOT}/include -shared -fPIC -o vslTest.so
[crackauc@crackauc EMtest]$ ./vslTest.so
Segmentation fault (core dumped)
[crackauc@crackauc EMtest]$ icc vslTest.c  -L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_core -lmkl_sequential -lpthread -lm  -DMKL_ILP64 -I${MKLROOT}/include -shared -fPIC -g -o vslTest.so
[crackauc@crackauc EMtest]$ ./vslTest.so
Segmentation fault (core dumped)
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 08:36:29 GMT</pubDate>
    <dc:creator>Christopher_R_3</dc:creator>
    <dc:date>2016-03-03T08:36:29Z</dc:date>
    <item>
      <title>Symbol Lookup Error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094359#M23456</link>
      <description>&lt;P&gt;When I try to call this function:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void vslTest(int N){
  double W&lt;N&gt;;
  VSLStreamStatePtr stream;
  vslNewStream(&amp;amp;stream,VSL_BRNG_MT19937,20);
  vdRngGaussian(VSL_RNG_METHOD_GAUSSIAN_BOXMULLER,stream,N,W,0.0f,1.0f);
  vslDeleteStream(&amp;amp;stream);
  printf("passed");
}&lt;/N&gt;&lt;/PRE&gt;

&lt;P&gt;I get the following error:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_vml_avx2.so: undefined symbol: mkl_serv_allocate
&lt;/PRE&gt;

&lt;P&gt;This is with Intel Parallel Studio 2016 and the compilation command:&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px; line-height: 11.1497px;"&gt;icc -Wall -std=c99 -shared -g -o euler_maruyama.so -fPIC -mkl euler_maruyama.c &lt;/PRE&gt;

&lt;P&gt;This is on CentOS7. The function is then called in Julia via:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;N = 100
W = Vector{Float64}(N)
ccall((:vslTest,"path/to/library/euler_maruyama.so"),Void,(Cint,),N)
&lt;/PRE&gt;

&lt;P&gt;I am pretty confident in the Julia code (I use this part a lot for calling C libraries), and so I am pretty sure this is a problem with my use or compilation of MKL. Compiler variables are set as:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;source /opt/intel/bin/compilervars.sh intel64 &amp;gt; /dev/null
source /opt/intel/vtune_amplifier_xe_2016/amplxe-vars.sh &amp;gt; /dev/null
source /opt/intel/inspector_xe_2016/inspxe-vars.sh &amp;gt; /dev/null
source /opt/intel/advisor_xe_2016/advixe-vars.sh &amp;gt; /dev/null
&lt;/PRE&gt;

&lt;P&gt;Sorry I am pretty new at this so please let me know what other information would be helpful. (Note: In the post below I changed the function slightly to have no input argument, int output, and in its own file vslTest.c)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 01:38:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094359#M23456</guid>
      <dc:creator>Christopher_R_3</dc:creator>
      <dc:date>2016-03-02T01:38:58Z</dc:date>
    </item>
    <item>
      <title>I just tried your build line</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094360#M23457</link>
      <description>&lt;P&gt;I just tried your build line in an RHEL box and couldn't reproduce.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can you try linking to mkl with various libs, and you can refer our Linkline advisor tool, believing you have set the env. variables already, using either compilervar.sh or mklvars.sh?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm"&gt;https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 05:00:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094360#M23457</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2016-03-02T05:00:54Z</dc:date>
    </item>
    <item>
      <title>Some extra information. For</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094361#M23458</link>
      <description>&lt;P&gt;Some extra information. For some reason compiling for use with a debugger works, but only for the static object. The compiler commands are from the link line advisor for the second set.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;[crackauc@crackauc EMtest]$ icc vslTest.c -g -Wall -mkl -o vslTest.o
[crackauc@crackauc EMtest]$ ./vslTest.o
passed
[crackauc@crackauc EMtest]$ icc vslTest.c -Wall -mkl -o vslTest.o
[crackauc@crackauc EMtest]$ ./vslTest.o
Segmentation fault (core dumped)
[crackauc@crackauc EMtest]$ ./vslTest.o
Segmentation fault (core dumped)
[crackauc@crackauc EMtest]$ icc vslTest.c &amp;nbsp;-Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group -lpthread -lm -DMKL_ILP64 -I${MKLROOT}/include -g -o vslTest.o
[crackauc@crackauc EMtest]$ ./vslTest.o
passed
[crackauc@crackauc EMtest]$ icc vslTest.c  -L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_core -lmkl_sequential -lpthread -lm  -DMKL_ILP64 -I${MKLROOT}/include -shared -fPIC -o vslTest.so
[crackauc@crackauc EMtest]$ ./vslTest.so
Segmentation fault (core dumped)
[crackauc@crackauc EMtest]$ icc vslTest.c  -L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_core -lmkl_sequential -lpthread -lm  -DMKL_ILP64 -I${MKLROOT}/include -shared -fPIC -g -o vslTest.so
[crackauc@crackauc EMtest]$ ./vslTest.so
Segmentation fault (core dumped)
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 08:36:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094361#M23458</guid>
      <dc:creator>Christopher_R_3</dc:creator>
      <dc:date>2016-03-03T08:36:29Z</dc:date>
    </item>
    <item>
      <title>Another thing to note is that</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094362#M23459</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Another thing to note is that when I try to link as follows all of the references are undefined. Here is a snippet, it keeps going though. Don't know if this is another symptom of the same problem. This compilation code is from the example:&amp;nbsp;https://software.intel.com/en-us/node/528677&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;[crackauc@crackauc EMtest]$ icc vslTest.c -lmkl_intel_lp64 -lmkl_core -ltbb -lstdc++ -lpthread -lm
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_spblas_lp64_mkl_scscsm'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_zgetrf'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_spblas_lp64_mkl_dbsrmm'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_blas_cgerc'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_serv_xerbla'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_cunmqr'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_spblas_lp64_mkl_ddiamm'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_dlacpy'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_psol_fwgath_pardiso_mic'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_lp64_sp_ch_blkslvs_ooc_pardiso'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_serv_domain_set_num_threads'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_spblas_lp64_mkl_scsrmultd'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_dpptrf'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_dpttrs'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_ctpunpack'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_sparse_s_mm_i4'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_slv_omp_cmplx'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_cgetrf'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_spttrs'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_lapack_sgetrfnpi'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_serv_get_dynamic'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_vml_serv_threader_s_1i_c_1o'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_lapack_clahpf'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_blas_dcopy'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_ch_blkldl_ooc_omp_pardiso'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_spblas_lp64_mkl_scsrmv'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_spblas_lp64_mkl_sskysv'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_lp64_blkl_omp_mic_cmplx'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_sp_psol_bwscat_pardiso'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_lp64_sp_c_psol_fwgath_pardiso'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_sp_psol_fwgath_pardiso_mic'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_spblas_lp64_mkl_zdiatrsv'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_spblas_lp64_mkl_cspblas_dcsrsymv'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_lp64_blkslv_unsym_ooc_pardiso'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_blas_dgemm'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_lapack_zgelqf_pf'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_core.so: undefined reference to `mkl_pds_sp_diag_pardiso'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_blas_sgemm_batch'
/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `mkl_spblas_lp64_mkl_cspblas_sbsrgemv'&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 08:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094362#M23459</guid>
      <dc:creator>Christopher_R_3</dc:creator>
      <dc:date>2016-03-03T08:51:00Z</dc:date>
    </item>
    <item>
      <title>Another odd update.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094363#M23460</link>
      <description>&lt;P&gt;Another odd update. Interestingly, the code works when I offload it to the Xeon Phi (with attribute tags and the like). Now I'm really confused!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:35:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Symbol-Lookup-Error/m-p/1094363#M23460</guid>
      <dc:creator>Christopher_R_3</dc:creator>
      <dc:date>2016-03-03T19:35:21Z</dc:date>
    </item>
  </channel>
</rss>

