<?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 FORTRAN interface in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879008#M9923</link>
    <description>&lt;P&gt;I am trying to use IPP routine ippsSVD_64f_D2L_I from IVF.&lt;/P&gt;
&lt;P&gt;I created interface&lt;/P&gt;
&lt;P&gt;
&lt;PRE&gt;[fortran]    interface
        !ippsSVD_64f_D2L_I(Ipp64f** mSrcDstA, int height, Ipp64f* pDstW,Ipp64f** mDstV, int width, int nIter);
	    integer*4 function ippsSVD_64f_D2L_I(mSrcDstA,height,pDstW,mDstV,width,nIter)
		    !DEC$ IF DEFINED(_X86_)
		    !DEC$ ATTRIBUTES STDCALL, ALIAS : '_ippsSVD_64f_D2L_I@24' :: ippsSVD_64f_D2L_I
		    !DEC$ ELSE
		    !DEC$ ATTRIBUTES STDCALL, ALIAS : 'ippsSVD_64f_D2L_I' :: ippsSVD_64f_D2L_I
		    !DEC$ ENDIF
            !DEC$ ATTRIBUTES REFERENCE :: mSrcDstA,mDstV,pDstW
            !DEC$ ATTRIBUTES VALUE :: height,width,nIter
		    use ifwinty
            use iso_c_binding
		    integer(C_INT) height,width,nIter
		    real(C_DOUBLE) mSrcDstA(width,height)
		    real(C_DOUBLE) mDstV(width,width)
		    real(C_DOUBLE) pDstW(width)
        end function
    end interface
[/fortran]&lt;/PRE&gt;
&lt;/P&gt;
&lt;P&gt;and I am able to compile code and run it. But when I try to call ippsSVD_64f_D2L_I routine I get error&lt;/P&gt;
&lt;P&gt;Unhandled exception at 0x023cb7ac in Test.exe: 0xC0000005: Access violation reading location 0x00000000.&lt;/P&gt;
&lt;P&gt;I did not found any FORTRAN interface example in installation of IPP.&lt;/P&gt;
&lt;P&gt;Thanks for advice.&lt;/P&gt;
&lt;P&gt;Jakub&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2010 07:01:05 GMT</pubDate>
    <dc:creator>ZlamalJakub</dc:creator>
    <dc:date>2010-03-03T07:01:05Z</dc:date>
    <item>
      <title>FORTRAN interface</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879008#M9923</link>
      <description>&lt;P&gt;I am trying to use IPP routine ippsSVD_64f_D2L_I from IVF.&lt;/P&gt;
&lt;P&gt;I created interface&lt;/P&gt;
&lt;P&gt;
&lt;PRE&gt;[fortran]    interface
        !ippsSVD_64f_D2L_I(Ipp64f** mSrcDstA, int height, Ipp64f* pDstW,Ipp64f** mDstV, int width, int nIter);
	    integer*4 function ippsSVD_64f_D2L_I(mSrcDstA,height,pDstW,mDstV,width,nIter)
		    !DEC$ IF DEFINED(_X86_)
		    !DEC$ ATTRIBUTES STDCALL, ALIAS : '_ippsSVD_64f_D2L_I@24' :: ippsSVD_64f_D2L_I
		    !DEC$ ELSE
		    !DEC$ ATTRIBUTES STDCALL, ALIAS : 'ippsSVD_64f_D2L_I' :: ippsSVD_64f_D2L_I
		    !DEC$ ENDIF
            !DEC$ ATTRIBUTES REFERENCE :: mSrcDstA,mDstV,pDstW
            !DEC$ ATTRIBUTES VALUE :: height,width,nIter
		    use ifwinty
            use iso_c_binding
		    integer(C_INT) height,width,nIter
		    real(C_DOUBLE) mSrcDstA(width,height)
		    real(C_DOUBLE) mDstV(width,width)
		    real(C_DOUBLE) pDstW(width)
        end function
    end interface
[/fortran]&lt;/PRE&gt;
&lt;/P&gt;
&lt;P&gt;and I am able to compile code and run it. But when I try to call ippsSVD_64f_D2L_I routine I get error&lt;/P&gt;
&lt;P&gt;Unhandled exception at 0x023cb7ac in Test.exe: 0xC0000005: Access violation reading location 0x00000000.&lt;/P&gt;
&lt;P&gt;I did not found any FORTRAN interface example in installation of IPP.&lt;/P&gt;
&lt;P&gt;Thanks for advice.&lt;/P&gt;
&lt;P&gt;Jakub&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2010 07:01:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879008#M9923</guid>
      <dc:creator>ZlamalJakub</dc:creator>
      <dc:date>2010-03-03T07:01:05Z</dc:date>
    </item>
    <item>
      <title>FORTRAN interface</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879009#M9924</link>
      <description>&lt;P&gt;actually, except for a small number of functions from crypto lib, our library is supported with C interfaces only. If you need we can help ypu with this example of this routine (ippsSVD_64f_D2L_I).. let us know if any&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2010 10:43:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879009#M9924</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-03-03T10:43:20Z</dc:date>
    </item>
    <item>
      <title>FORTRAN interface</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879010#M9925</link>
      <description>&lt;P&gt;I used dumpbin on dll library and it provides ippsSVD_64f_D2L_I@24 routine so I assumed it is STDCALL calling convention. If you can help me to write interface I will be very happy.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Jakub&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2010 11:05:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879010#M9925</guid>
      <dc:creator>ZlamalJakub</dc:creator>
      <dc:date>2010-03-03T11:05:31Z</dc:date>
    </item>
    <item>
      <title>FORTRAN interface</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879011#M9926</link>
      <description>&lt;P&gt;Jakub,&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;I saw your question at mkl forum, so first of all I would recommend you to get the evaluation version of Intel C/C++ compiler and evaluate the performance of ippsSVD implementation. It will the fastest way.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I saw your question at mkl forum, so first of all I would recommend you to get the evaluation version of Intel C/C++ compiler and evaluate the performance of ippsSVD implementation. It will the fastest way.&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2010 14:57:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879011#M9926</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-03-03T14:57:02Z</dc:date>
    </item>
    <item>
      <title>FORTRAN interface</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879012#M9927</link>
      <description>&lt;P&gt;I do not think intel C compiler helps me because in IPP C language examples is not example to how use ippsSVD_64f_D2L_I routine, and any other SVD routines, (so I cannot look at it to translate it to fortran).&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Jakub&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2010 17:21:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879012#M9927</guid>
      <dc:creator>ZlamalJakub</dc:creator>
      <dc:date>2010-03-04T17:21:20Z</dc:date>
    </item>
    <item>
      <title>FORTRAN interface</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879013#M9928</link>
      <description>&lt;P&gt;Jakub,&lt;/P&gt;
&lt;P&gt;Can you attach a test program I can use to see the problem? It should be possible to make this work.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2010 20:25:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879013#M9928</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-03-04T20:25:30Z</dc:date>
    </item>
    <item>
      <title>FORTRAN interface</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879014#M9929</link>
      <description>&lt;P&gt;I am attaching my testing project. Problem calling ipps routines is in file testspeed.f90 and subroutine testspeedipp(A,B,x,m,n). I tried different types of call (even C standard calling).&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;May be problem is caused by 2D C arrays, i do not know if it is one memory block or a 1D array of pointers to 1D real array.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Jakub&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2010 08:52:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/FORTRAN-interface/m-p/879014#M9929</guid>
      <dc:creator>ZlamalJakub</dc:creator>
      <dc:date>2010-03-05T08:52:55Z</dc:date>
    </item>
  </channel>
</rss>

