<?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 Could you try to allocate in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/core-dumped-when-using-DftiCreateDescriptor-desc-prec-domain-dim/m-p/1128400#M25441</link>
    <description>&lt;P&gt;Could you try to allocate working array dynamically, remove all opencv calls?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 17:00:28 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2019-04-15T17:00:28Z</dc:date>
    <item>
      <title>core dumped when using DftiCreateDescriptor(desc,prec,domain,dim,sizes) with dim=2 and sizes more than {1000, 1000}</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/core-dumped-when-using-DftiCreateDescriptor-desc-prec-domain-dim/m-p/1128399#M25440</link>
      <description>&lt;P&gt;I'm trying to perform fft on linux system(specifically cent OS 7) by Intel MKL. After writing a successfully running code sample on windows i moved it to linux and met with segmentation fault(core dumped). I carefully checked the code and found&amp;nbsp;that it is the sizes parameter specified in&amp;nbsp;DftiCreateDescriptor(desc,prec,domain,dim,sizes) causes this bug. Once any number in sizes is larger than 1000 with&amp;nbsp;dims=2 will cause this bug. I shifted different versions of MKl but it remains.&lt;/P&gt;&lt;P&gt;Does anyone have any idea about this bug?&lt;/P&gt;&lt;P&gt;the compile arg:&amp;nbsp;g++ comparison.cpp `pkg-config opencv --cflags --libs` -I/opt/intel/vtune/compilers_and_libraries_2018.3.222/linux/mkl/include/ &amp;nbsp;-L/opt/intel/compilers_and_libraries_2019/linux/mkl/lib/intel64/ -lmkl_rt -g&lt;/P&gt;&lt;P&gt;Here is my code&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;#include &amp;lt;opencv2/core/core.hpp&amp;gt;
#include &amp;lt;opencv2/opencv.hpp&amp;gt;
#include &amp;lt;opencv2/highgui/highgui.hpp&amp;gt;
#include &amp;lt;iostream&amp;gt;
#include &amp;lt;omp.h&amp;gt;

#include "mkl_dfti.h"


int main() {
	MKL_LONG len[2] = { 1080, 1920 }, status;
	float x_in[1080][1920];
	DFTI_DESCRIPTOR_HANDLE fft;
	status = DftiCreateDescriptor(&amp;amp;fft, DFTI_SINGLE, DFTI_REAL, 2, len);
	status = DftiSetValue(fft, DFTI_PLACEMENT, DFTI_NOT_INPLACE);
	status = DftiCommitDescriptor(fft);

	//float x[100* 100];
	float x_out[1080][1920];
	for (int i = 0; i &amp;lt; 10; i++) {
		double totalcputime = (double)cv::getTickCount();
		//std::cout &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;
		status = DftiComputeForward(fft, x_in, x_out);
		//std::cout &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;
		totalcputime = ((double)cv::getTickCount() - totalcputime) / cv::getTickFrequency();
		std::cout &amp;lt;&amp;lt; "MKL-DFT Time: " &amp;lt;&amp;lt; totalcputime &amp;lt;&amp;lt; std::endl;
	}
	cv::Mat sizedimage = cv::Mat::zeros(1080, 1920, CV_32FC1);
	cv::Mat opencvtransform = cv::Mat(1080, 1920 / 2 + 1, CV_32FC1);
	for (int i = 0; i &amp;lt; 10; i++) {
		double totalcputime = (double)cv::getTickCount();
		cv::dft(sizedimage, opencvtransform);
		totalcputime = ((double)cv::getTickCount() - totalcputime) / cv::getTickFrequency();
		std::cout &amp;lt;&amp;lt; "opencv-DFT Time: " &amp;lt;&amp;lt; totalcputime &amp;lt;&amp;lt; std::endl;
	}
	
	return 0;
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 08:33:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/core-dumped-when-using-DftiCreateDescriptor-desc-prec-domain-dim/m-p/1128399#M25440</guid>
      <dc:creator>Guoyao_X_Intel</dc:creator>
      <dc:date>2019-04-15T08:33:14Z</dc:date>
    </item>
    <item>
      <title>Could you try to allocate</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/core-dumped-when-using-DftiCreateDescriptor-desc-prec-domain-dim/m-p/1128400#M25441</link>
      <description>&lt;P&gt;Could you try to allocate working array dynamically, remove all opencv calls?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 17:00:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/core-dumped-when-using-DftiCreateDescriptor-desc-prec-domain-dim/m-p/1128400#M25441</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-04-15T17:00:28Z</dc:date>
    </item>
  </channel>
</rss>

