<?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 Chao,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071888#M22304</link>
    <description>&lt;P&gt;Hi Chao,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You can&lt;/P&gt;

&lt;P&gt;&amp;gt;export MKL_VERBOSE=1&lt;/P&gt;

&lt;P&gt;&amp;gt;a.out&lt;/P&gt;

&lt;P&gt;and let us know the result.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2016 03:20:53 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2016-07-27T03:20:53Z</dc:date>
    <item>
      <title>Deal with huge matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071885#M22301</link>
      <description>&lt;P&gt;I have written some codes with MKL library, but recently these codes do not work. They can be complied well and do not report any error when I run it. However, they did not work for some huge matrix operations. They keep running, but no results return. Here is an example code. When the variable nID exceed 31, the program will keep running forever.&lt;/P&gt;

&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;

&lt;P&gt;#include &amp;lt;mkl.h&amp;gt;&lt;/P&gt;

&lt;P&gt;int main(){&lt;/P&gt;

&lt;P&gt;int nID=31;&lt;/P&gt;

&lt;P&gt;int nSNP=33;&lt;/P&gt;

&lt;P&gt;double *mMatrix = (double*) calloc(nID*nSNP,sizeof(double));&lt;/P&gt;

&lt;P&gt;double *AGmatrix = (double*) calloc(nID*nID,sizeof(double));&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; const CBLAS_LAYOUT Layout=CblasRowMajor;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; double alpha=1;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; double beta=0;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; cblas_dgemm (Layout, CblasTrans, CblasNoTrans, nID, nID, nSNP, alpha, mMatrix,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;nID, mMatrix, nID, beta, AGmatrix, nID);&lt;/P&gt;

&lt;P&gt;}&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 08:38:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071885#M22301</guid>
      <dc:creator>chao_n_</dc:creator>
      <dc:date>2016-07-26T08:38:15Z</dc:date>
    </item>
    <item>
      <title>I suppose you had in mind</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071886#M22302</link>
      <description>&lt;P&gt;I suppose you had in mind some other compiler, but I tried to make a VS gui project with a recent Intel C++ for Intel64, hoping to run under debug. I had several issues with source code format and line terminators. I wasn't able to get the mkl include path working.&amp;nbsp; At command line, I was able to build, but I got immediate return to command prompt when running.&lt;/P&gt;

&lt;P&gt;It doesn't appear that you should be approaching default limits for stack or (if in 32-bit mode) heap space, but you leave us guessing.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 13:50:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071886#M22302</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-07-26T13:50:25Z</dc:date>
    </item>
    <item>
      <title>Hi Chao, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071887#M22303</link>
      <description>&lt;P&gt;Hi Chao,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Could you please tell some details like the OS, 32bit or 64bit, how do you compile the mkl program?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;for example, we run it in Red Hat Enterprise Linux Server release 6.3 on machine with16 core &amp;nbsp;. with command line&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;$&amp;nbsp;&lt;/SPAN&gt;source /opt/intel/mkl/bin/mklvars.sh &amp;nbsp;intel64&lt;/P&gt;

&lt;P&gt;$ g++ main.cpp -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lm&lt;BR /&gt;
	$ ./a.out&lt;/P&gt;

&lt;P&gt;it just run fine.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 02:06:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071887#M22303</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-07-27T02:06:06Z</dc:date>
    </item>
    <item>
      <title>Hi Chao, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071888#M22304</link>
      <description>&lt;P&gt;Hi Chao,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You can&lt;/P&gt;

&lt;P&gt;&amp;gt;export MKL_VERBOSE=1&lt;/P&gt;

&lt;P&gt;&amp;gt;a.out&lt;/P&gt;

&lt;P&gt;and let us know the result.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 03:20:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071888#M22304</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-07-27T03:20:53Z</dc:date>
    </item>
    <item>
      <title>Quote:Ying H. (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071889#M22305</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Ying H. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Chao,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You can&lt;/P&gt;

&lt;P&gt;&amp;gt;export MKL_VERBOSE=1&lt;/P&gt;

&lt;P&gt;&amp;gt;a.out&lt;/P&gt;

&lt;P&gt;and let us know the result.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I'm sorry. I still keep running.&lt;/P&gt;

&lt;DIV&gt;[ningc@localhost sig]$ gcc -lmkl_intel_lp64 -lmkl_intel_thread -liomp5 -lmkl_core\&lt;/DIV&gt;

&lt;DIV&gt;&amp;gt; &amp;nbsp;-lpthread -lm test.c&lt;/DIV&gt;

&lt;DIV&gt;[ningc@localhost sig]$ export MKL_VERBOSE=1&lt;/DIV&gt;

&lt;DIV&gt;[ningc@localhost sig]$ ./a.out&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jul 2016 03:30:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071889#M22305</guid>
      <dc:creator>chao_n_</dc:creator>
      <dc:date>2016-07-27T03:30:23Z</dc:date>
    </item>
    <item>
      <title>Quote:chao n. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071890#M22306</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;chao n. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG class="quote-header"&gt;Quote:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE class="quote-msg quote-nest-1 odd"&gt;
	&lt;DIV class="quote-author"&gt;&lt;EM class="placeholder"&gt;Ying H. (Intel)&lt;/EM&gt; wrote:&lt;/DIV&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;

	&lt;P&gt;Hi Chao,&amp;nbsp;&lt;/P&gt;

	&lt;P&gt;You can&lt;/P&gt;

	&lt;P&gt;&amp;gt;export MKL_VERBOSE=1&lt;/P&gt;

	&lt;P&gt;&amp;gt;a.out&lt;/P&gt;

	&lt;P&gt;and let us know the result.&amp;nbsp;&lt;/P&gt;

	&lt;P&gt;Best Regards,&lt;BR /&gt;
		Ying&amp;nbsp;&lt;/P&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm sorry. It still keep running.&lt;/P&gt;

&lt;P&gt;[&lt;A href="mailto:ningc@localhost"&gt;ningc@localhost&lt;/A&gt; sig]$ gcc -lmkl_intel_lp64 -lmkl_intel_thread -liomp5 -lmkl_core\&lt;/P&gt;

&lt;P&gt;&amp;gt; &amp;nbsp;-lpthread -lm test.c&lt;/P&gt;

&lt;P&gt;[&lt;A href="mailto:ningc@localhost"&gt;ningc@localhost&lt;/A&gt; sig]$ export MKL_VERBOSE=1&lt;/P&gt;

&lt;P&gt;[&lt;A href="mailto:ningc@localhost"&gt;ningc@localhost&lt;/A&gt; sig]$ ./a.out&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;When I set nID=31&lt;/P&gt;

&lt;DIV&gt;[ningc@localhost sig]$ ./a.out&lt;/DIV&gt;

&lt;DIV&gt;MKL_VERBOSE Intel(R) MKL 11.3 Update 3 Product build 20160413 for Intel(R) 64 architecture Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled processors, Lnx 2.00GHz lp64 intel_thread NMICDev:0&lt;/DIV&gt;

&lt;DIV&gt;MKL_VERBOSE DGEMM(N,T,31,31,33,0x7fffdf46b9d0,0x20ed010,31,0x20ed010,31,0x7fffdf46b9d8,0x20ef010,31) 80.88ms CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:32 WDiv:HOST:+0.000&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:21:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071890#M22306</guid>
      <dc:creator>chao_n_</dc:creator>
      <dc:date>2016-07-27T07:21:41Z</dc:date>
    </item>
    <item>
      <title>Hi </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071891#M22307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;

&lt;P&gt;When&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;set nID=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;32,32,33, my output is like below&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;[yhu5@snb04 mkl_issue]$ ./a.out&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Error getting SCIF driver version&lt;BR /&gt;
	MKL_VERBOSE Intel(R) MKL 11.3 Update 3 Product build 20160413 for Intel(R) 64 architecture Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled processors, Lnx 2.70GHz lp64 intel_thread NMICDev:0&lt;BR /&gt;
	MKL_VERBOSE DGEMM(N,T,32,32,33,0x7fffa3280650,0x165e010,32,0x165e010,32,0x7fffa3280658,0x1660120,32) 3.61ms CNR:SSE4_2 Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:16 WDiv:HOST:+0.000&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;The &amp;nbsp;notable places is maybe the machine type be&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;" &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled processors. and thread number".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Do you have other machine to test the code? &amp;nbsp; and for thread number , how about if you&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;gt;export MKL_NUM_THREADS=1&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;gt;a.out?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Best Regards,&lt;BR /&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>Thu, 28 Jul 2016 02:57:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071891#M22307</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-07-28T02:57:05Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071892#M22308</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;When set&amp;nbsp;export MKL_NUM_THREADS=1, it work well.&lt;/P&gt;

&lt;P&gt;However, I can not set more than one threads. How can I solve the problem?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Ying H. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;

&lt;P&gt;When&amp;nbsp;set nID=32,32,33, my output is like below&amp;nbsp;&lt;/P&gt;

&lt;P&gt;[yhu5@snb04 mkl_issue]$ ./a.out&lt;/P&gt;

&lt;P&gt;Error getting SCIF driver version&lt;BR /&gt;
	MKL_VERBOSE Intel(R) MKL 11.3 Update 3 Product build 20160413 for Intel(R) 64 architecture Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled processors, Lnx 2.70GHz lp64 intel_thread NMICDev:0&lt;BR /&gt;
	MKL_VERBOSE DGEMM(N,T,32,32,33,0x7fffa3280650,0x165e010,32,0x165e010,32,0x7fffa3280658,0x1660120,32) 3.61ms CNR:SSE4_2 Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:16 WDiv:HOST:+0.000&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The &amp;nbsp;notable places is maybe the machine type be&amp;nbsp;" &amp;nbsp;&amp;nbsp;Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled processors. and thread number".&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Do you have other machine to test the code? &amp;nbsp; and for thread number , how about if you&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;gt;export MKL_NUM_THREADS=1&lt;/P&gt;

&lt;P&gt;&amp;gt;a.out?&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:32:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Deal-with-huge-matrix/m-p/1071892#M22308</guid>
      <dc:creator>chao_n_</dc:creator>
      <dc:date>2016-07-29T08:32:35Z</dc:date>
    </item>
  </channel>
</rss>

