<?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 FFT Compilation Error in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-Compilation-Error/m-p/1106851#M24184</link>
    <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Hi .&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I am trying to run benchfft with linking Intel-mkl but I am getting error with ” undefined reference to `zfft1d_'&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Details:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;OS: Ubuntu 16.04&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;GCC: gcc version 5.4.0 20160609&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;ICC: icc version 17.0.0&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Note: File&amp;nbsp;benchfftw_test_mkl.c is attached with this report&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;source /opt/intel/mkl/bin/mklvars.sh intel64&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;gcc -lmkl_core&amp;nbsp; -ldl -lpthread -lm benchfftw_test_mkl.c&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Error:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;/tmp/ccsL8FHu.o: In function `main':&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;benchfftw_test_mkl.c:(.text+0xa): undefined reference to `zfft1d_'&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Contents of benchfftw_test_mkl.c is as follows&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;#line 10867 "configure"&lt;BR /&gt;
	/* confdefs.h. &amp;nbsp;*/&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;#define PACKAGE_NAME ""&lt;BR /&gt;
	#define PACKAGE_TARNAME ""&lt;BR /&gt;
	#define PACKAGE_VERSION ""&lt;BR /&gt;
	#define PACKAGE_STRING ""&lt;BR /&gt;
	#define PACKAGE_BUGREPORT ""&lt;BR /&gt;
	#define PACKAGE "benchfft"&lt;BR /&gt;
	#define VERSION "3.1"&lt;BR /&gt;
	#ifdef __cplusplus&lt;BR /&gt;
	#include &amp;lt;stdlib.h&amp;gt;&lt;BR /&gt;
	#endif&lt;BR /&gt;
	#define F77_FUNC(name,NAME) name ## _&lt;BR /&gt;
	#define F77_FUNC_(name,NAME) name ## _&lt;BR /&gt;
	#define STDC_HEADERS 1&lt;BR /&gt;
	#define HAVE_SYS_TYPES_H 1&lt;BR /&gt;
	#define HAVE_SYS_STAT_H 1&lt;BR /&gt;
	#define HAVE_STDLIB_H 1&lt;BR /&gt;
	#define HAVE_STRING_H 1&lt;BR /&gt;
	#define HAVE_MEMORY_H 1&lt;BR /&gt;
	#define HAVE_STRINGS_H 1&lt;BR /&gt;
	#define HAVE_INTTYPES_H 1&lt;BR /&gt;
	#define HAVE_STDINT_H 1&lt;BR /&gt;
	#define HAVE_UNISTD_H 1&lt;BR /&gt;
	#define HAVE_MALLOC_H 1&lt;BR /&gt;
	#define HAVE_SYS_TIME_H 1&lt;BR /&gt;
	#define HAVE_UNISTD_H 1&lt;BR /&gt;
	#define HAVE_STRING_H 1&lt;BR /&gt;
	#define HAVE_ALLOCA_H 1&lt;BR /&gt;
	#define HAVE_STDDEF_H 1&lt;BR /&gt;
	#define HAVE_LIBINTL_H 1&lt;BR /&gt;
	#define TIME_WITH_SYS_TIME 1&lt;BR /&gt;
	#define HAVE_ALLOCA_H 1&lt;BR /&gt;
	#define HAVE_ALLOCA 1&lt;BR /&gt;
	#define HAVE_STDLIB_H 1&lt;BR /&gt;
	#define HAVE_MALLOC 1&lt;BR /&gt;
	#define HAVE_VPRINTF 1&lt;BR /&gt;
	#define HAVE_LIBM 1&lt;BR /&gt;
	#define HAVE_GETTIMEOFDAY 1&lt;BR /&gt;
	#define HAVE_DRAND48 1&lt;BR /&gt;
	#define HAVE_HYPOT 1&lt;BR /&gt;
	#define HAVE_SQRT 1&lt;BR /&gt;
	#define HAVE_STRTOD 1&lt;BR /&gt;
	#define HAVE_MEMSET 1&lt;BR /&gt;
	#define HAVE_MEMALIGN 1&lt;BR /&gt;
	#define HAVE_DECL_DRAND48 1&lt;BR /&gt;
	#define HAVE_DECL_HYPOT 1&lt;BR /&gt;
	#define HAVE_LIBPTHREAD 1&lt;BR /&gt;
	#define HAVE_LIBDL 1&lt;BR /&gt;
	#define HAVE_FFTW3_H 1&lt;BR /&gt;
	/* end confdefs.h. &amp;nbsp;*/&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;/* Override any gcc2 internal prototype to avoid an error. &amp;nbsp;*/&lt;BR /&gt;
	#ifdef __cplusplus&lt;BR /&gt;
	extern "C"&lt;BR /&gt;
	#endif&lt;BR /&gt;
	/* We use char because int might match the return type of a gcc2&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;builtin and then its argument prototype would still apply. &amp;nbsp;*/&lt;BR /&gt;
	char zfft1d_ ();&lt;BR /&gt;
	#ifdef F77_DUMMY_MAIN&lt;BR /&gt;
	# &amp;nbsp;ifdef __cplusplus&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;extern "C"&lt;BR /&gt;
	# &amp;nbsp;endif&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;int F77_DUMMY_MAIN() { return 1; }&lt;BR /&gt;
	#endif&lt;BR /&gt;
	int&lt;BR /&gt;
	main ()&lt;BR /&gt;
	{&lt;BR /&gt;
	zfft1d_ ();&lt;BR /&gt;
	&amp;nbsp; ;&lt;BR /&gt;
	&amp;nbsp; return 0;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;}&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2016 11:29:38 GMT</pubDate>
    <dc:creator>chetan_p_</dc:creator>
    <dc:date>2016-12-06T11:29:38Z</dc:date>
    <item>
      <title>FFT Compilation Error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-Compilation-Error/m-p/1106851#M24184</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Hi .&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I am trying to run benchfft with linking Intel-mkl but I am getting error with ” undefined reference to `zfft1d_'&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Details:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;OS: Ubuntu 16.04&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;GCC: gcc version 5.4.0 20160609&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;ICC: icc version 17.0.0&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Note: File&amp;nbsp;benchfftw_test_mkl.c is attached with this report&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;source /opt/intel/mkl/bin/mklvars.sh intel64&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;gcc -lmkl_core&amp;nbsp; -ldl -lpthread -lm benchfftw_test_mkl.c&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Error:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;/tmp/ccsL8FHu.o: In function `main':&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;benchfftw_test_mkl.c:(.text+0xa): undefined reference to `zfft1d_'&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;collect2: error: ld returned 1 exit status&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Contents of benchfftw_test_mkl.c is as follows&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;#line 10867 "configure"&lt;BR /&gt;
	/* confdefs.h. &amp;nbsp;*/&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;#define PACKAGE_NAME ""&lt;BR /&gt;
	#define PACKAGE_TARNAME ""&lt;BR /&gt;
	#define PACKAGE_VERSION ""&lt;BR /&gt;
	#define PACKAGE_STRING ""&lt;BR /&gt;
	#define PACKAGE_BUGREPORT ""&lt;BR /&gt;
	#define PACKAGE "benchfft"&lt;BR /&gt;
	#define VERSION "3.1"&lt;BR /&gt;
	#ifdef __cplusplus&lt;BR /&gt;
	#include &amp;lt;stdlib.h&amp;gt;&lt;BR /&gt;
	#endif&lt;BR /&gt;
	#define F77_FUNC(name,NAME) name ## _&lt;BR /&gt;
	#define F77_FUNC_(name,NAME) name ## _&lt;BR /&gt;
	#define STDC_HEADERS 1&lt;BR /&gt;
	#define HAVE_SYS_TYPES_H 1&lt;BR /&gt;
	#define HAVE_SYS_STAT_H 1&lt;BR /&gt;
	#define HAVE_STDLIB_H 1&lt;BR /&gt;
	#define HAVE_STRING_H 1&lt;BR /&gt;
	#define HAVE_MEMORY_H 1&lt;BR /&gt;
	#define HAVE_STRINGS_H 1&lt;BR /&gt;
	#define HAVE_INTTYPES_H 1&lt;BR /&gt;
	#define HAVE_STDINT_H 1&lt;BR /&gt;
	#define HAVE_UNISTD_H 1&lt;BR /&gt;
	#define HAVE_MALLOC_H 1&lt;BR /&gt;
	#define HAVE_SYS_TIME_H 1&lt;BR /&gt;
	#define HAVE_UNISTD_H 1&lt;BR /&gt;
	#define HAVE_STRING_H 1&lt;BR /&gt;
	#define HAVE_ALLOCA_H 1&lt;BR /&gt;
	#define HAVE_STDDEF_H 1&lt;BR /&gt;
	#define HAVE_LIBINTL_H 1&lt;BR /&gt;
	#define TIME_WITH_SYS_TIME 1&lt;BR /&gt;
	#define HAVE_ALLOCA_H 1&lt;BR /&gt;
	#define HAVE_ALLOCA 1&lt;BR /&gt;
	#define HAVE_STDLIB_H 1&lt;BR /&gt;
	#define HAVE_MALLOC 1&lt;BR /&gt;
	#define HAVE_VPRINTF 1&lt;BR /&gt;
	#define HAVE_LIBM 1&lt;BR /&gt;
	#define HAVE_GETTIMEOFDAY 1&lt;BR /&gt;
	#define HAVE_DRAND48 1&lt;BR /&gt;
	#define HAVE_HYPOT 1&lt;BR /&gt;
	#define HAVE_SQRT 1&lt;BR /&gt;
	#define HAVE_STRTOD 1&lt;BR /&gt;
	#define HAVE_MEMSET 1&lt;BR /&gt;
	#define HAVE_MEMALIGN 1&lt;BR /&gt;
	#define HAVE_DECL_DRAND48 1&lt;BR /&gt;
	#define HAVE_DECL_HYPOT 1&lt;BR /&gt;
	#define HAVE_LIBPTHREAD 1&lt;BR /&gt;
	#define HAVE_LIBDL 1&lt;BR /&gt;
	#define HAVE_FFTW3_H 1&lt;BR /&gt;
	/* end confdefs.h. &amp;nbsp;*/&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;/* Override any gcc2 internal prototype to avoid an error. &amp;nbsp;*/&lt;BR /&gt;
	#ifdef __cplusplus&lt;BR /&gt;
	extern "C"&lt;BR /&gt;
	#endif&lt;BR /&gt;
	/* We use char because int might match the return type of a gcc2&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;builtin and then its argument prototype would still apply. &amp;nbsp;*/&lt;BR /&gt;
	char zfft1d_ ();&lt;BR /&gt;
	#ifdef F77_DUMMY_MAIN&lt;BR /&gt;
	# &amp;nbsp;ifdef __cplusplus&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;extern "C"&lt;BR /&gt;
	# &amp;nbsp;endif&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;int F77_DUMMY_MAIN() { return 1; }&lt;BR /&gt;
	#endif&lt;BR /&gt;
	int&lt;BR /&gt;
	main ()&lt;BR /&gt;
	{&lt;BR /&gt;
	zfft1d_ ();&lt;BR /&gt;
	&amp;nbsp; ;&lt;BR /&gt;
	&amp;nbsp; return 0;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 11:29:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-Compilation-Error/m-p/1106851#M24184</guid>
      <dc:creator>chetan_p_</dc:creator>
      <dc:date>2016-12-06T11:29:38Z</dc:date>
    </item>
    <item>
      <title>Hi, Chetan</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-Compilation-Error/m-p/1106852#M24185</link>
      <description>&lt;P&gt;Hi, Chetan&lt;/P&gt;

&lt;P&gt;This does not look like an icc specific problem. I'm transferring this to Intel MKL forum where you will get MKL experts' help.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 06:39:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-Compilation-Error/m-p/1106852#M24185</guid>
      <dc:creator>Yuan_C_Intel</dc:creator>
      <dc:date>2016-12-12T06:39:51Z</dc:date>
    </item>
    <item>
      <title>Hi Chetan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-Compilation-Error/m-p/1106853#M24186</link>
      <description>&lt;P&gt;Hi Chetan,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;The benchffw_test_mkl.c&amp;nbsp;&amp;nbsp;seem out of date as the zfft1d_ inferface was removed from MKL for a while.&amp;nbsp;&amp;nbsp;But MKL have FFTW interface support in latest version.&amp;nbsp;&amp;nbsp;So maybe&amp;nbsp; you&amp;nbsp;can try&amp;nbsp;the example fftw fortran sample&amp;nbsp;under MKL install folder : /opt/intel/mkl/examples directly.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;please use MKL link advisor &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; to find wanted MKL library.&lt;/P&gt;

&lt;P&gt;for example,&amp;nbsp; &amp;gt;gcc&amp;nbsp; test.c -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 08:46:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/FFT-Compilation-Error/m-p/1106853#M24186</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-12-12T08:46:54Z</dc:date>
    </item>
  </channel>
</rss>

