<?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 Random number routines (MKL-VSL) and linking during compilation in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-number-routines-MKL-VSL-and-linking-during-compilation/m-p/771542#M653</link>
    <description>So what should I be doing to get this fixed ? Can I set LD_LIBRARY_PATH in Mac too ?</description>
    <pubDate>Wed, 08 Aug 2012 00:48:03 GMT</pubDate>
    <dc:creator>Debanjan_Mukherjee</dc:creator>
    <dc:date>2012-08-08T00:48:03Z</dc:date>
    <item>
      <title>Random number routines (MKL-VSL) and linking during compilation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-number-routines-MKL-VSL-and-linking-during-compilation/m-p/771540#M651</link>
      <description>Hello,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have a module wherein I have a gaussian random number generator (that uses the VSL Gaussian generator from MKL Library). I am using that module now to write a small program that generates 10 random numbers. I am now having a whole bunch of issues to link the programs together to create an executable. I am using Mac OSX with 64 bit architecture and Intel processor. Here is the shell script I am using:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The module: randomGenerator.f90&lt;/DIV&gt;&lt;DIV&gt;The program: testRandomGaussian.f90&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The script:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;#! /bin/sh&lt;/P&gt;
&lt;P&gt;echo 'compiling an MKL random generator example'&lt;/P&gt;
&lt;P&gt;MKLROOT=/opt/intel/composer_xe_2011_sp1.7.246/mkl/&lt;/P&gt;
&lt;P&gt;MKLPATH=$MKLROOT/lib/&lt;/P&gt;
&lt;P&gt;MKLINCLUDE=$MKLROOT/include/&lt;/P&gt;
&lt;P&gt;DYLD_LIBRARY_PATH=$MKLPATH&lt;/P&gt;
&lt;P&gt;ifort -c randomGenerator.f90 -L$MKLPATH -I$MKLINCLUDE -I$MKLINCLUDE/intel64/lp64 -lmkl_blas95_lp64 -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -liomp5&lt;/P&gt;
&lt;P&gt;ifort -c testRandomGaussian.f90 -L$MKLPATH -I$MKLINCLUDE -I$MKLINCLUDE/intel64/lp64 -lmkl_blas95_lp64 -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -liomp5&lt;/P&gt;
&lt;P&gt;ifort -L$MKLPATH -I$MKLINCLUDE -I$MKLINCLUDE/intel64/lp64 -lmkl_blas95_lp64 -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -liomp5 randomGenerator.o testRandomGaussian.o -o testRandomGaussian.out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above creates the .out executable but when i run the .out file i&lt;SPAN style="line-height: normal;"&gt;t ends up giving me an error saying:&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;dyld: Library not loaded: libmkl_intel_lp64.dylib&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; Referenced from: /Users/debanjanmukherjee/Workfiles/Work/Simple-particle-OOP/sources/./testRandomGaussian.out&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; Reason: image not found&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Trace/BPT trap: 5&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;dyld: Library not loaded: libmkl_intel_lp64.dylib Referenced from: /Users/debanjanmukherjee/Workfiles/Work/Simple-particle-OOP/sources/./testRandomGaussian.out Reason: image not foundTrace/BPT trap: 5&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Can someone please offer some help t show what I am doing wrong?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I can upload my codes too in case that is needed, but since the compilation completes I believe the code itself is okay and I have an error in the linking.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Many thanks&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Aug 2012 21:25:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-number-routines-MKL-VSL-and-linking-during-compilation/m-p/771540#M651</guid>
      <dc:creator>Debanjan_Mukherjee</dc:creator>
      <dc:date>2012-08-07T21:25:49Z</dc:date>
    </item>
    <item>
      <title>Random number routines (MKL-VSL) and linking during compilation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-number-routines-MKL-VSL-and-linking-during-compilation/m-p/771541#M652</link>
      <description>There is no problem with compiling or linking.&lt;BR /&gt;&lt;BR /&gt;The problem is related to the loading of the dynamically loaded libraries when your a.out is run and reaches a point where routines in those libraries are invoked. If the MKL *.dylib libraries are not accessible (in Linux this may be achieved by setting $LD_LIBRARY_PATH, or by modifying the ldd configuration file). The error messages are from the dynamic library loader. In looks in the usual system directories and does not find the needed .dylib files.</description>
      <pubDate>Wed, 08 Aug 2012 00:16:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-number-routines-MKL-VSL-and-linking-during-compilation/m-p/771541#M652</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-08-08T00:16:24Z</dc:date>
    </item>
    <item>
      <title>Random number routines (MKL-VSL) and linking during compilation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-number-routines-MKL-VSL-and-linking-during-compilation/m-p/771542#M653</link>
      <description>So what should I be doing to get this fixed ? Can I set LD_LIBRARY_PATH in Mac too ?</description>
      <pubDate>Wed, 08 Aug 2012 00:48:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-number-routines-MKL-VSL-and-linking-during-compilation/m-p/771542#M653</guid>
      <dc:creator>Debanjan_Mukherjee</dc:creator>
      <dc:date>2012-08-08T00:48:03Z</dc:date>
    </item>
    <item>
      <title>Random number routines (MKL-VSL) and linking during compilation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-number-routines-MKL-VSL-and-linking-during-compilation/m-p/771543#M654</link>
      <description>Hi Debanjan,&lt;BR /&gt;&lt;BR /&gt;The error message dyld: Library not loaded: libmkl_intel_lp64.dylib means the system can't find the library. &lt;BR /&gt;&lt;BR /&gt;So whatever in Xcode environment (either4.0 or 3.2.4)or in terminal environment, to define DYLD_LIBRARY_PATH environment variable is required.&lt;BR /&gt;&lt;BR /&gt;You candefinethe variable eitherby mklvars.* or define the DYLD_LIBRARY_PATH manually.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please refer to &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=106397&amp;amp;p=1#189389"&gt;http://software.intel.com/en-us/forums/showthread.php?t=106397&amp;amp;p=1#189389&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying</description>
      <pubDate>Wed, 08 Aug 2012 03:03:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-number-routines-MKL-VSL-and-linking-during-compilation/m-p/771543#M654</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2012-08-08T03:03:49Z</dc:date>
    </item>
  </channel>
</rss>

