<?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 Problem with static linking of MKL-VSL functions (Linux) in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-static-linking-of-MKL-VSL-functions-Linux/m-p/907388#M11836</link>
    <description>&lt;P class="MsoNormal" style=""&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Hi all,&lt;P&gt;&lt;BR /&gt;
&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;




&lt;P class="MsoNormal" style=""&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;I
have no problem to compile a fortran 90 code by linking DYNAMICALLY MKL library
from which I use mainly VSL functions (vslnewstream, vsldeletestream,
vsrnggaussian, virngpoisson, virngbinomial, virngbernouilli) and also the
slasrt function. To compile, I use the following command and t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;his
works OK on a Xeon processor with Linux i686 Redhat 9.0.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;:&lt;BR /&gt;
&lt;I&gt;ifort
-L/data/opt/intel/mkl/8.1/lib/32 -lmkl_lapack32 -lmkl -lvml -lguide -lpthread
-lm -o MyCode MyProg.f90&lt;/I&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;






&lt;P class="MsoNormal" style=""&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Now
I want to compile this same code using a STATIC linking with MKL. I try the
following command :&lt;I&gt;ifort
-openmp -L/data/opt/intel/mkl/8.1/lib/32 -lmkl_ia32 -lmkl_lapack -lmkl_ia32
-lmkl_solver -lguide -lpthread -lm -static -o MyCode MyProg.f90&lt;/I&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;




&lt;P class="MsoNormal" style=""&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;But
this does not work (message undefined reference to vsldeletestream_, to
vsrnggaussian) and I cant find the solution.It
seems that these functions are included in lib/32/libvml.so but not in the
various *.a static libraries (libguide.a, libmkl_ia32.a, libmkl_lapack.a,
libmkl_solver.a). &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Any
help will be greatly appreciated,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;
&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Fred
Fabre.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;</description>
    <pubDate>Thu, 05 Oct 2006 21:23:49 GMT</pubDate>
    <dc:creator>frederic_fabre</dc:creator>
    <dc:date>2006-10-05T21:23:49Z</dc:date>
    <item>
      <title>Problem with static linking of MKL-VSL functions (Linux)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-static-linking-of-MKL-VSL-functions-Linux/m-p/907388#M11836</link>
      <description>&lt;P class="MsoNormal" style=""&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Hi all,&lt;P&gt;&lt;BR /&gt;
&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;




&lt;P class="MsoNormal" style=""&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;I
have no problem to compile a fortran 90 code by linking DYNAMICALLY MKL library
from which I use mainly VSL functions (vslnewstream, vsldeletestream,
vsrnggaussian, virngpoisson, virngbinomial, virngbernouilli) and also the
slasrt function. To compile, I use the following command and t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;his
works OK on a Xeon processor with Linux i686 Redhat 9.0.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;:&lt;BR /&gt;
&lt;I&gt;ifort
-L/data/opt/intel/mkl/8.1/lib/32 -lmkl_lapack32 -lmkl -lvml -lguide -lpthread
-lm -o MyCode MyProg.f90&lt;/I&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;






&lt;P class="MsoNormal" style=""&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Now
I want to compile this same code using a STATIC linking with MKL. I try the
following command :&lt;I&gt;ifort
-openmp -L/data/opt/intel/mkl/8.1/lib/32 -lmkl_ia32 -lmkl_lapack -lmkl_ia32
-lmkl_solver -lguide -lpthread -lm -static -o MyCode MyProg.f90&lt;/I&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;




&lt;P class="MsoNormal" style=""&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;But
this does not work (message undefined reference to vsldeletestream_, to
vsrnggaussian) and I cant find the solution.It
seems that these functions are included in lib/32/libvml.so but not in the
various *.a static libraries (libguide.a, libmkl_ia32.a, libmkl_lapack.a,
libmkl_solver.a). &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Any
help will be greatly appreciated,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;
&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Fred
Fabre.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;</description>
      <pubDate>Thu, 05 Oct 2006 21:23:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-static-linking-of-MKL-VSL-functions-Linux/m-p/907388#M11836</guid>
      <dc:creator>frederic_fabre</dc:creator>
      <dc:date>2006-10-05T21:23:49Z</dc:date>
    </item>
  </channel>
</rss>

