<?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 Re: MKL Library in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/MKL-Library/m-p/759649#M15136</link>
    <description>&lt;P&gt;Nevermind, I already solved my problem...&lt;BR /&gt;I forgot to add &lt;BR /&gt;USE MKL_VSL_TYPE&lt;BR /&gt;USE MKL_VSL&lt;BR /&gt;and some other things...&lt;BR /&gt;I apologize.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Oct 2009 03:42:32 GMT</pubDate>
    <dc:creator>rafadix08</dc:creator>
    <dc:date>2009-10-03T03:42:32Z</dc:date>
    <item>
      <title>MKL Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/MKL-Library/m-p/759648#M15135</link>
      <description>Hi,&lt;BR /&gt;I am having trouble compiling this very simple program:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;include 'mkl_vsl.fi'&lt;BR /&gt;&lt;BR /&gt;program UsingMKL&lt;BR /&gt;&lt;BR /&gt;implicit none&lt;BR /&gt;&lt;BR /&gt;integer i&lt;BR /&gt;&lt;BR /&gt;TYPE (VSL_STREAM_STATE) :: stream&lt;BR /&gt;integer(kind=4) errcode&lt;BR /&gt;integer brng, method, method1, method2, seed&lt;BR /&gt;real rvec(1000)&lt;BR /&gt;&lt;BR /&gt;brng = VSL_BRNG_MT19937&lt;BR /&gt;method = VSL_METHOD_DGAUSSIAN_BOXMULLER&lt;BR /&gt;seed = 112233445&lt;BR /&gt;&lt;BR /&gt;! ***** Initializing *****&lt;BR /&gt;errcode = vslnewstream(stream, brng,seed)&lt;BR /&gt;&lt;BR /&gt;status = vdrnggaussian(method, stream,1000, &amp;amp;&lt;BR /&gt;rvec, real(0.0,dp), real(1.0,dp))&lt;BR /&gt;&lt;BR /&gt;open(unit = 1, file = "NormalNumbers.csv")&lt;BR /&gt;&lt;BR /&gt;do i = 1, 1000&lt;BR /&gt;write(1,*) rvec(i)&lt;BR /&gt;end do&lt;BR /&gt;&lt;BR /&gt;close(1)&lt;BR /&gt;&lt;BR /&gt;end program UsingMKL&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is the command I am typing at the command line:&lt;BR /&gt;ifort ~/UsingMKL.f90 -L$MKLPATH -I$MKLINCLUDE -Wl,--start-group $MKLPATH/libmkl_intel_lp64.a $MKLPATH/libmkl_intel_thread.a $MKLPATH/libmkl_core.a -Wl,--end-group -liomp5 -lpthread&lt;BR /&gt;&lt;BR /&gt;Where the environment variables MKLPATH and MKLINCLUDE are well defined. I am working on an Intel 64 compatible architecture, so that's the command I found in the MKL user guide.&lt;BR /&gt;&lt;BR /&gt;I am not able to compile this simple code. I am getting the following error messages:&lt;BR /&gt;&lt;BR /&gt;/home/rdc/UsingMKL.f90(9): error #6457: This derived type name has not been declared. [VSL_STREAM_STATE]&lt;BR /&gt;TYPE (VSL_STREAM_STATE) :: stream&lt;BR /&gt;------^&lt;BR /&gt;/home/rdc/UsingMKL.f90(14): error #6404: This name does not have a type, and must have an explicit type. [VSL_BRNG_MT19937]&lt;BR /&gt;brng = VSL_BRNG_MT19937&lt;BR /&gt;-------^&lt;BR /&gt;/home/rdc/UsingMKL.f90(15): error #6404: This name does not have a type, and must have an explicit type. [VSL_METHOD_DGAUSSIAN_BOXMULLER]&lt;BR /&gt;method = VSL_METHOD_DGAUSSIAN_BOXMULLER&lt;BR /&gt;---------^&lt;BR /&gt;/home/rdc/UsingMKL.f90(19): error #6404: This name does not have a type, and must have an explicit type. [VSLNEWSTREAM]&lt;BR /&gt;errcode = vslnewstream(stream, brng,seed)&lt;BR /&gt;----------^&lt;BR /&gt;/home/rdc/UsingMKL.f90(21): error #6404: This name does not have a type, and must have an explicit type. [STATUS]&lt;BR /&gt;status = vdrnggaussian(method, stream,1000, &amp;amp;&lt;BR /&gt;^&lt;BR /&gt;/home/rdc/UsingMKL.f90(21): error #6404: This name does not have a type, and must have an explicit type. [VDRNGGAUSSIAN]&lt;BR /&gt;status = vdrnggaussian(method, stream,1000, &amp;amp;&lt;BR /&gt;---------^&lt;BR /&gt;compilation aborted for /home/rdc/UsingMKL.f90 (code 1)&lt;BR /&gt;&lt;BR /&gt;I appreciate any help.&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Rafael</description>
      <pubDate>Sat, 03 Oct 2009 00:34:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/MKL-Library/m-p/759648#M15135</guid>
      <dc:creator>rafadix08</dc:creator>
      <dc:date>2009-10-03T00:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: MKL Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/MKL-Library/m-p/759649#M15136</link>
      <description>&lt;P&gt;Nevermind, I already solved my problem...&lt;BR /&gt;I forgot to add &lt;BR /&gt;USE MKL_VSL_TYPE&lt;BR /&gt;USE MKL_VSL&lt;BR /&gt;and some other things...&lt;BR /&gt;I apologize.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2009 03:42:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/MKL-Library/m-p/759649#M15136</guid>
      <dc:creator>rafadix08</dc:creator>
      <dc:date>2009-10-03T03:42:32Z</dc:date>
    </item>
  </channel>
</rss>

