<?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  Hi,i am a new student . in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099820#M23795</link>
    <description>&lt;P&gt;&amp;nbsp;Hi,i am a new student .&lt;/P&gt;

&lt;P&gt;can you tell me how to find a &amp;nbsp;FFT example coded by C or C++? &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2016 06:57:14 GMT</pubDate>
    <dc:creator>薛_清_</dc:creator>
    <dc:date>2016-12-06T06:57:14Z</dc:date>
    <item>
      <title>Error compiling sample FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099815#M23790</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am quite new to intel MKL, so please correct me if I am posting this to the wrong forum etc.&lt;BR /&gt;
	I want to use the intel MKL FFT library in Fortran 95. I am working with the eclipse IDE with a gfortran compiler on windows 10 with cygwin.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Following the instructions of this &lt;A href="http://tx.technion.ac.il/doc/intel/mkl/mkl_userguide/GUID-CECACEC6-8B3A-459C-9F5F-FED0563E69F4.htm"&gt;http://tx.technion.ac.il/doc/intel/mkl/mkl_userguide/GUID-CECACEC6-8B3A-459C-9F5F-FED0563E69F4.htm&lt;/A&gt;&lt;BR /&gt;
	page (I know its for c/c++) I included the "include" and "lib\intel64_win" directory to the "Project Properties-&amp;gt;Fortran General-&amp;gt;Paths and Symbols-&amp;gt;Includes-&amp;gt;Fortran Source File" list.&lt;BR /&gt;
	In the "...-&amp;gt;Paths and Symbols-&amp;gt;Libraries", the libraries "mkl_intel_lp64", "mkl_intel_thread" and "mkl_core" are listed.&lt;/P&gt;

&lt;P&gt;The Source code is copied from here&amp;nbsp;&lt;A href="https://software.intel.com/en-us/node/471390#D8463A93-CC5F-4E8C-82C7-9A2E8E713EC4"&gt;https://software.intel.com/en-us/node/471390#D8463A93-CC5F-4E8C-82C7-9A2E8E713EC4&lt;/A&gt; ;&lt;BR /&gt;
	the only change I made, was writing "implicit none" after "USE MKL_DFTI":&lt;/P&gt;

&lt;P&gt;program InteltestFFT&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; ! Fortran example.&lt;BR /&gt;
	! 1D complex to complex, and real to conjugate-even&lt;BR /&gt;
	Use MKL_DFTI&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; implicit none&lt;BR /&gt;
	Complex :: X(32)&lt;BR /&gt;
	Real :: Y(34)&lt;BR /&gt;
	type(DFTI_DESCRIPTOR), POINTER :: My_Desc1_Handle, My_Desc2_Handle&lt;BR /&gt;
	Integer :: Status&lt;BR /&gt;
	!...put input data into X(1),...,X(32); Y(1),...,Y(32)&lt;/P&gt;

&lt;P&gt;! Perform a complex to complex transform&lt;BR /&gt;
	Status = DftiCreateDescriptor( My_Desc1_Handle, DFTI_SINGLE,&amp;amp;&lt;BR /&gt;
	&amp;nbsp; DFTI_COMPLEX, 1, 32 )&lt;BR /&gt;
	Status = DftiCommitDescriptor( My_Desc1_Handle )&lt;BR /&gt;
	Status = DftiComputeForward( My_Desc1_Handle, X )&lt;BR /&gt;
	Status = DftiFreeDescriptor(My_Desc1_Handle)&lt;BR /&gt;
	! result is given by {X(1),X(2),...,X(32)}&lt;/P&gt;

&lt;P&gt;! Perform a real to complex conjugate-even transform&lt;BR /&gt;
	Status = DftiCreateDescriptor(My_Desc2_Handle, DFTI_SINGLE,&amp;amp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; DFTI_REAL, 1, 32)&lt;BR /&gt;
	Status = DftiCommitDescriptor(My_Desc2_Handle)&lt;BR /&gt;
	Status = DftiComputeForward(My_Desc2_Handle, Y)&lt;BR /&gt;
	Status = DftiFreeDescriptor(My_Desc2_Handle)&lt;BR /&gt;
	! result is given in CCS format.&lt;/P&gt;

&lt;P&gt;end program InteltestFFT&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Compiling this program gives the following error (198 errors, slightly differing in the parenthesis after mkl_core.lib):&lt;/P&gt;

&lt;P&gt;Description&amp;nbsp;&amp;nbsp; &amp;nbsp;Resource&amp;nbsp;&amp;nbsp; &amp;nbsp;Path&amp;nbsp;&amp;nbsp; &amp;nbsp;Location&amp;nbsp;&amp;nbsp; &amp;nbsp;Type&lt;BR /&gt;
	undefined reference to `__GSHandlerCheck'&amp;nbsp;&amp;nbsp; &amp;nbsp;TestMklFFT2D&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;line 0, external location: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\lib\intel64_win\mkl_core.lib(_avx2_bkd1_c.obj)&amp;nbsp;&amp;nbsp; &amp;nbsp;C/C++ Problem&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In a userguide &lt;A href="http://www.physics.udel.edu/~bnikolic/QTTG/shared/docs/MKL_linux.pdf"&gt;http://www.physics.udel.edu/~bnikolic/QTTG/shared/docs/MKL_linux.pdf&lt;/A&gt; (unfortunately for Linux) on page 5-7 it is mentioned, that the -lm command should be used for linking. However, doing this leads to another error which gives no information:&lt;/P&gt;

&lt;P&gt;Description&amp;nbsp;&amp;nbsp; &amp;nbsp;Resource&amp;nbsp;&amp;nbsp; &amp;nbsp;Path&amp;nbsp;&amp;nbsp; &amp;nbsp;Location&amp;nbsp;&amp;nbsp; &amp;nbsp;Type&lt;BR /&gt;
	TestMklFFT2D] Error 1&amp;nbsp;&amp;nbsp; &amp;nbsp;TestMklFFT2D&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;line 31&amp;nbsp;&amp;nbsp; &amp;nbsp;C/C++ Problem&lt;/P&gt;

&lt;P&gt;Line 31 is the line after the "end program InteltestFFT" command.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Does somebody know the reason for this error or did encounter the same error?&lt;/P&gt;

&lt;P&gt;Best regards&lt;BR /&gt;
	Christoph&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:48:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099815#M23790</guid>
      <dc:creator>Christoph_R_</dc:creator>
      <dc:date>2016-11-29T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Hi Christoph,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099816#M23791</link>
      <description>&lt;P&gt;Hi Christoph,&lt;/P&gt;

&lt;P&gt;You may take a look at the online link tool&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;&amp;nbsp;to check the needed libraries and compiler options. Or, you may run C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_*.*.*\windows\mkl\tools\mkl_link_tool.exe to see what libraries are needed for your application.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 01:10:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099816#M23791</guid>
      <dc:creator>Shaojuan_Z_Intel</dc:creator>
      <dc:date>2016-11-30T01:10:09Z</dc:date>
    </item>
    <item>
      <title>pls pay attention - you use</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099817#M23792</link>
      <description>&lt;P&gt;pls pay attention - you use gfortran, therefore select&amp;nbsp;-lmkl_gf_lp64 instead of mkl_intel_lp64&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 04:03:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099817#M23792</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2016-11-30T04:03:21Z</dc:date>
    </item>
    <item>
      <title>Thank you for the fast</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099818#M23793</link>
      <description>&lt;P&gt;Thank you for the fast answers :)&lt;BR /&gt;
	I tried both, the online link tool which recommends the following:&lt;/P&gt;

&lt;P&gt;"Use this link line:&lt;BR /&gt;
	mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib"&lt;/P&gt;

&lt;P&gt;"Compiler options:&lt;BR /&gt;
	&amp;nbsp;-I"%MKLROOT%"\include"&lt;/P&gt;

&lt;P&gt;The options I used were MKL 2017.0-&amp;gt;Windows-&amp;gt;None-&amp;gt;PGI Fortran(as no gfortran was available)-&amp;gt;Intel 64-&amp;gt;Static-&amp;gt;32 Bit integer-&amp;gt;Sequential. No other options were chosen.&lt;/P&gt;

&lt;P&gt;Using the installed linking tool "mkl_link_tool.exe" (as it supports the gfortran compiler option) does result in the following output&lt;/P&gt;

&lt;P&gt;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\mkl\tools&amp;gt;mkl_link_tool -opts gfortran&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Intel(R) Math Kernel Library (Intel(R) MKL) Link Tool v4.3&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ==========================================================&lt;/P&gt;

&lt;P&gt;Not supported compiler for current configuration:gnu_f. Supported values for compiler: intel_c|intel_f|ms_c|pgi_f|pgi_c&lt;/P&gt;

&lt;P&gt;Configuration&lt;BR /&gt;
	=============&lt;/P&gt;

&lt;P&gt;MKL version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017.1&lt;BR /&gt;
	OS:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; win&lt;BR /&gt;
	Architecture:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; intel64&lt;BR /&gt;
	Compiler:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gnu_f&lt;BR /&gt;
	Linking:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamic&lt;BR /&gt;
	Interface layer:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lp64&lt;BR /&gt;
	Parallel:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes&lt;BR /&gt;
	OpenMP library:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iomp5&lt;/P&gt;

&lt;P&gt;Does this mean that gfortran is not supported at all?&lt;/P&gt;

&lt;P&gt;I also tried to substitute the mkl_intel_lp64 by mkl_gf_lp64. However, there is no such file in my lib directory.&lt;/P&gt;

&lt;P&gt;I'm also a bit confused about the mkl_dfti.mod, mkl_dfti.o and mkl_dft_type.mod files that were generated by compiling mkl_dfti.f90.&lt;BR /&gt;
	Previously I have always been linking to .a libraries. Is there any difference on how the libraries need to be passed to the compiler? Just indicating it as library results in the following errors (above mentioned libraries mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib were used):&lt;/P&gt;

&lt;P&gt;Description&amp;nbsp;&amp;nbsp; &amp;nbsp;Resource&amp;nbsp;&amp;nbsp; &amp;nbsp;Path&amp;nbsp;&amp;nbsp; &amp;nbsp;Location&amp;nbsp;&amp;nbsp; &amp;nbsp;Type&lt;BR /&gt;
	cannot find -lmkl_dfti&amp;nbsp;&amp;nbsp; &amp;nbsp;TestMklFFT2D&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;C/C++ Problem&lt;BR /&gt;
	TestMklFFT2D] Error 1&amp;nbsp;&amp;nbsp; &amp;nbsp;TestMklFFT2D&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;line 31&amp;nbsp;&amp;nbsp; &amp;nbsp;C/C++ Problem&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	The paths to the libraries are specified in environment variables and the photran IDE. (-&amp;gt;Properties-&amp;gt;Fortran Build-&amp;gt;Settings-&amp;gt;Tool Settings-&amp;gt;GNU Fortran Linker-&amp;gt;Libraries-&amp;gt;library search path(-L).&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Does a switch to the intel compiler make things easier? Can the intel compiler be used with other IDEs than VS?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 07:43:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099818#M23793</guid>
      <dc:creator>Christoph_R_</dc:creator>
      <dc:date>2016-11-30T07:43:00Z</dc:date>
    </item>
    <item>
      <title>Hi Christoph, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099819#M23794</link>
      <description>&lt;P&gt;Hi Christoph,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I think the problem is your special environment :&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;&amp;nbsp;gfortran compiler on windows 10 with cygwin, which we don't support. &amp;nbsp; Also we don't support gfortran under Windows,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Regarding the&amp;nbsp;`__GSHandlerCheck' itself, there is some information in internet, it may be defined from libcmt.lib, which is supposed to link with MSVC library. &amp;nbsp;If your cygwin system have that, you may add it. But i guess there will have following errors as unsupported system. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;So i may suggest, if possible, use supported compiler and developer environment. for example, &amp;nbsp;If you install Intel fortran Compiler for windows version, you are supposed to build the fortran 95 application directly (don't need Cygwin).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;FYI, MKL system requirements: &lt;A href="https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-2017-system-requirements" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-2017-system-requirements&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Ying&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 04:07:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099819#M23794</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-12-06T04:07:30Z</dc:date>
    </item>
    <item>
      <title> Hi,i am a new student .</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099820#M23795</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,i am a new student .&lt;/P&gt;

&lt;P&gt;can you tell me how to find a &amp;nbsp;FFT example coded by C or C++? &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 06:57:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099820#M23795</guid>
      <dc:creator>薛_清_</dc:creator>
      <dc:date>2016-12-06T06:57:14Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099821#M23796</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;Thank you for your comment.&lt;BR /&gt;
	I was switching to VS with the ifort compiler right after my comment on the 29th of november. This solved my problem instantaneously.&lt;/P&gt;

&lt;P&gt;Best Regards&lt;BR /&gt;
	Christoph&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 07:58:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099821#M23796</guid>
      <dc:creator>Christoph_R_</dc:creator>
      <dc:date>2016-12-06T07:58:12Z</dc:date>
    </item>
    <item>
      <title>Hi Christoph,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099822#M23797</link>
      <description>&lt;P&gt;Hi Christoph,&lt;/P&gt;

&lt;P&gt;Glad to know you work around it.&amp;nbsp; thanks for the sharing.&lt;/P&gt;

&lt;P&gt;Hi Qing,&lt;/P&gt;

&lt;P&gt;You may find MKL example in MKL install folder or search in the forum:&amp;nbsp; for example, some in&amp;nbsp; &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/517579"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/517579&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 08:16:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-sample-FFT/m-p/1099822#M23797</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-12-06T08:16:05Z</dc:date>
    </item>
  </channel>
</rss>

