<?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: error in including library vslf in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-including-library-vslf/m-p/873895#M8752</link>
    <description>&lt;BR /&gt;&lt;SPAN style="font-size: small;"&gt;Can you replace mkl_vkl.fi with mkl_vsl.fieverywhere in your example and let me know how it works? Andrey&lt;/SPAN&gt;</description>
    <pubDate>Tue, 24 Mar 2009 17:03:37 GMT</pubDate>
    <dc:creator>Andrey_N_Intel</dc:creator>
    <dc:date>2009-03-24T17:03:37Z</dc:date>
    <item>
      <title>error in including library vslf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-including-library-vslf/m-p/873894#M8751</link>
      <description>Hi, guys:&lt;BR /&gt; I want to use vslf packages. &lt;BR /&gt; The mkl library is under directory: /home/fengy/mkl/10.0.3.020/&lt;BR /&gt;&lt;BR /&gt;The makefile is like this:&lt;BR /&gt;# application name&lt;BR /&gt;APP = test&lt;BR /&gt;&lt;BR /&gt;# list of source files&lt;BR /&gt;SRC = test.f90&lt;BR /&gt;&lt;BR /&gt;# list of object files&lt;BR /&gt;OBJ = test.o&lt;BR /&gt;&lt;BR /&gt;# list of include directory&lt;BR /&gt;DIR1 = /home/fengy/mkl/10.0.3.020/include&lt;BR /&gt;DIR2 = /home/fengy/mkl/10.0.3.020/examples/vslf/source&lt;BR /&gt;&lt;BR /&gt;# define libraries needed by the linker&lt;BR /&gt;LIBS = -L/home/fengy/mkl/10.0.3.020/lib/em64t /home/fengy/mkl/10.0.3.020/lib/em64t/libmkl_intel_lp64.a -Wl,--start-group /home/fengy/mkl/10.0.3.020/lib/em64t/libmkl_intel_thread.a /home/fengy/mkl/10.0.3.020/lib/em64t/libmkl_core.a -Wl,--end-group /home/fengy/mkl/10.0.3.020/lib/em64t/libguide.a -lpthread&lt;BR /&gt;&lt;BR /&gt;# compiler options for debugging&lt;BR /&gt;FC_DEBUG = ifort -I ${DIR1} -I ${DIR2} -g -debug all -check all -implicitnone -warn all&lt;BR /&gt;&lt;BR /&gt;# compiler options for optmized running&lt;BR /&gt;FC_OPT = ifort --I ${DIR1} -I ${DIR2} O3 -xO -ipo -no-prec-div -static&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# build rules&lt;BR /&gt;&lt;BR /&gt;.SUFFIXES: .f90 .o .mod&lt;BR /&gt;.f90.o:&lt;BR /&gt; ${FC_DEBUG} -c INCLUDE '/home/fengy/mkl/10.0.3.020/include/mkl_vkl.fi'&lt;BR /&gt;INCLUDE '/home/fengy/mkl/10.0.3.020/example/vslf/errcheck.inc'&lt;BR /&gt;&lt;BR /&gt;!INCLUDE 'mkl_vkl.fi'&lt;BR /&gt;!INCLUDE 'errcheck.inc'&lt;BR /&gt;&lt;BR /&gt;PROGRAM  test_g_r&lt;BR /&gt; USE MKL_VSL_TYPE&lt;BR /&gt; USE MKL_VSL&lt;BR /&gt;&lt;BR /&gt; IMPLICIT NONE&lt;BR /&gt;&lt;BR /&gt; INTEGER(KIND=4) i, nn&lt;BR /&gt; INTEGER n&lt;BR /&gt; INTEGER(KIND=4) errcode&lt;BR /&gt;&lt;BR /&gt; INTEGER brng, method, seed&lt;BR /&gt;&lt;BR /&gt; TYPE(VSL_STREAM_STATE) :: stream&lt;BR /&gt; REAL  a, sigma&lt;BR /&gt; REAL, DIMENSION(1) :: r&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; n=1&lt;BR /&gt; brng = VSL_BRNG_MCG31&lt;BR /&gt; method = 0&lt;BR /&gt; seed = 777&lt;BR /&gt; &lt;BR /&gt; errcode = vslnewstream(stream, brng, seed)&lt;BR /&gt; CALL CheckVslError(errcode)&lt;BR /&gt;&lt;BR /&gt; errcode = vsrnggaussian(method, stream, n, r, a, sigma)&lt;BR /&gt; CALL CheckVslError(errcode)&lt;BR /&gt;&lt;BR /&gt; WRITE(*,*) 'now r is: ', r(1)&lt;BR /&gt;END PROGRAM test_g_rlt;&lt;BR /&gt;&lt;BR /&gt;debug: ${OBJ} ${SRC}&lt;BR /&gt; ${FC_DEBUG} -o ${APP} ${OBJ} ${LIBS}&lt;BR /&gt;&lt;BR /&gt;opt: ${SRC}&lt;BR /&gt; ${FC_OPT} -o ${APP} ${SRC} ${LIBS}&lt;BR /&gt;&lt;BR /&gt;clean:&lt;BR /&gt; rm -f *.mod *.o ${APP}&lt;BR /&gt;&lt;BR /&gt;And the source file test.f90 is:&lt;BR /&gt; INCLUDE '/home/fengy/mkl/10.0.3.020/include/mkl_vkl.fi'&lt;BR /&gt;INCLUDE '/home/fengy/mkl/10.0.3.020/example/vslf/errcheck.inc'&lt;BR /&gt;&lt;BR /&gt;!INCLUDE 'mkl_vkl.fi'&lt;BR /&gt;!INCLUDE 'errcheck.inc'&lt;BR /&gt;&lt;BR /&gt;PROGRAM  test_g_r&lt;BR /&gt; USE MKL_VSL_TYPE&lt;BR /&gt; USE MKL_VSL&lt;BR /&gt;&lt;BR /&gt; IMPLICIT NONE&lt;BR /&gt;&lt;BR /&gt; INTEGER(KIND=4) i, nn&lt;BR /&gt; INTEGER n&lt;BR /&gt; INTEGER(KIND=4) errcode&lt;BR /&gt;&lt;BR /&gt; INTEGER brng, method, seed&lt;BR /&gt;&lt;BR /&gt; TYPE(VSL_STREAM_STATE) :: stream&lt;BR /&gt; REAL  a, sigma&lt;BR /&gt; REAL, DIMENSION(1) :: r&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; n=1&lt;BR /&gt; brng = VSL_BRNG_MCG31&lt;BR /&gt; method = 0&lt;BR /&gt; seed = 777&lt;BR /&gt; &lt;BR /&gt; errcode = vslnewstream(stream, brng, seed)&lt;BR /&gt; CALL CheckVslError(errcode)&lt;BR /&gt;&lt;BR /&gt; errcode = vsrnggaussian(method, stream, n, r, a, sigma)&lt;BR /&gt; CALL CheckVslError(errcode)&lt;BR /&gt;&lt;BR /&gt; WRITE(*,*) 'now r is: ', r(1)&lt;BR /&gt;END PROGRAM test_g_r&lt;BR /&gt;&lt;BR /&gt;When I type make -debug, an error message appears:  Cannot open include file '/home/fengy/mkl/10.0.3.020/include/mkl_vkl.fi&lt;BR /&gt; &lt;BR /&gt;but mkl_vki is uder directory /home/fengy/mkl/10.0.3.020/include/mkl_vkl.fi&lt;BR /&gt;&lt;BR /&gt; Could you help me to figure it out what wrong with my code?&lt;BR /&gt;&lt;BR /&gt; Thanks!&lt;BR /&gt; Arthur&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2009 16:54:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-including-library-vslf/m-p/873894#M8751</guid>
      <dc:creator>fymaterials</dc:creator>
      <dc:date>2009-03-24T16:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: error in including library vslf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-including-library-vslf/m-p/873895#M8752</link>
      <description>&lt;BR /&gt;&lt;SPAN style="font-size: small;"&gt;Can you replace mkl_vkl.fi with mkl_vsl.fieverywhere in your example and let me know how it works? Andrey&lt;/SPAN&gt;</description>
      <pubDate>Tue, 24 Mar 2009 17:03:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-including-library-vslf/m-p/873895#M8752</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2009-03-24T17:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: error in including library vslf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-including-library-vslf/m-p/873896#M8753</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/73088"&gt;Andrey Nikolaev (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;SPAN style="font-size: small;"&gt;Can you replace mkl_vkl.fi with mkl_vsl.fieverywhere in your example and let me know how it works? Andrey&lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Thanks, Andrey, now it is working. But I get a warning message:  Warning: /home/fengy/mkl/10.0.3.020/include/mkl_vsl.fi, line 297: This name has not been given an explicit type.   [VSL_USER_INIT_DIRECTION_NUMBERS]&lt;BR /&gt; PARAMETER (VSL_USER_INIT_DIRECTION_NUMBERS = 2)&lt;BR /&gt;&lt;BR /&gt; Is it normal?&lt;BR /&gt;&lt;BR /&gt; Arthur&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2009 17:15:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-including-library-vslf/m-p/873896#M8753</guid>
      <dc:creator>fymaterials</dc:creator>
      <dc:date>2009-03-24T17:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: error in including library vslf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-including-library-vslf/m-p/873897#M8754</link>
      <description>&lt;BR /&gt;&lt;SPAN style="font-size: small;"&gt;This is not normal, thank you for letting us know. The issue will be fixed in future versions of the library. Andrey&lt;/SPAN&gt;</description>
      <pubDate>Wed, 25 Mar 2009 08:01:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-including-library-vslf/m-p/873897#M8754</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2009-03-25T08:01:59Z</dc:date>
    </item>
  </channel>
</rss>

