<?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 For updata.... in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000816#M18548</link>
    <description>&lt;P&gt;For update....&lt;/P&gt;

&lt;P&gt;So I search a little more, and now I've got the point of using -Dmacro, which is #define macro 1;&lt;/P&gt;

&lt;P&gt;and I believe this macro is used in code and library building.&lt;/P&gt;

&lt;P&gt;But here are still some things:&lt;/P&gt;

&lt;P&gt;---&amp;gt; when working with LP64 interface, I didn't define MKL_LP64, but such kind of problem is not arising; why is this?&lt;/P&gt;

&lt;P&gt;---&amp;gt; is this saying that the corresponding 32-bit version of the two interface is the default usage? (this is not unreasonable, though)&lt;/P&gt;

&lt;P&gt;Is these understanding ok?&lt;/P&gt;

&lt;P&gt;Do I miss any point? if so, please tell me&lt;/P&gt;

&lt;P&gt;Thank you very much, appreciate your help!&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2014 03:25:00 GMT</pubDate>
    <dc:creator>Yung-Chieh_C_</dc:creator>
    <dc:date>2014-04-25T03:25:00Z</dc:date>
    <item>
      <title>compiling with GCC using ilp64 interface, keep getting seg-fault</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000813#M18545</link>
      <description>&lt;P&gt;Here is my source file(gm.c) in C, multiplying two n by n matrix, A and B, using dgemm() within Inel MKL:&lt;/P&gt;

&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;
	#include &amp;lt;stdlib.h&amp;gt;&lt;/P&gt;

&lt;P&gt;#include "mkl.h"&lt;/P&gt;

&lt;P&gt;int main(){&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;int n = 500;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; double *a = (double*)mkl_malloc(sizeof(double) *n*n, 64);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int i;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for(i = 0;i&amp;lt;n;i++){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;int j;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for(j = 0;j&amp;lt;n;j++){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;a[n*i+j] = (double)(rand()%10);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp; double *b = (double*)mkl_malloc(sizeof(double)*n*n, 64);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for(i = 0;i&amp;lt;n;i++){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;int j;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for(j = 0;j&amp;lt;n;j++){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;b[n*i+j] = (double)(rand()%10);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;double *c = (double*)mkl_malloc(sizeof(double)*n*n, 64);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for(i = 0;i&amp;lt;n;i++){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;int j;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for(j = 0;j&amp;lt;n;j++)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;c[n*i+j] = (double)0;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, n, n, n, 1, a, n, b, n, 1, c, n);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;double alpha = 1.0;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;double belta = 0.0;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;dgemm("N", "N", &amp;amp;n, &amp;amp;n, &amp;amp;n, &amp;amp;alpha, a, &amp;amp;n, b, &amp;amp;n, &amp;amp;belta, c, &amp;amp;n);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;//c; row-major&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;//C = alpha AB + belta C&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return 0;&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;Also, you can see that I also tried cblas api.&lt;/P&gt;

&lt;P&gt;The problem here is that, if I use the following compiling&amp;amp;linking line, though it can pass, the execution ALWAYS get segmentation fault:&lt;/P&gt;

&lt;P&gt;gcc -m64 -L$(MKLROOT)/lib/intel64 gm.c $(MKLROOT)/lib/intel64/libmkl_intel_ilp64.so -lmkl_intel_thread &amp;nbsp;-lmkl_core -liomp5 &amp;nbsp;-lm&lt;/P&gt;

&lt;P&gt;this is just the one suggested in that beginning suite of MKL&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;One point is that, if I substitute "ilp64" in the line with "lp64", then it executes well.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;What can the bug be?&lt;/P&gt;

&lt;P&gt;The source code of this library is not open, so I really don't know how to debug;&lt;/P&gt;

&lt;P&gt;I've test for a while, and I'm sure the fault occurs when running (cblas_)dgemm()...&lt;/P&gt;

&lt;P&gt;I've tried to use things like MKL_INT, MKL_malloc()...etc, but don't help at all !!!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So Technical help needed here...&lt;/P&gt;

&lt;P&gt;Thank you so much for helping...this is kinda frustrating&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 06:21:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000813#M18545</guid>
      <dc:creator>Yung-Chieh_C_</dc:creator>
      <dc:date>2014-04-24T06:21:36Z</dc:date>
    </item>
    <item>
      <title>check in mkl_userguide</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000814#M18546</link>
      <description>&lt;P&gt;check in mkl_userguide compiling with ILP64 Libraries- use &amp;nbsp;-&lt;SPAN style="color: rgb(51, 51, 51); font-family: 'Courier New', Courier, monospace; font-size: 13.600000381469727px; line-height: 16px;"&gt;DMKL_ILP64 compiler options&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 13:23:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000814#M18546</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-04-24T13:23:52Z</dc:date>
    </item>
    <item>
      <title>Thank you very much for</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000815#M18547</link>
      <description>&lt;P&gt;Thank you very much for reminding me that!!&lt;/P&gt;

&lt;P&gt;Actually I've surfed lots of topics here at this forum, seeing many compiling &amp;amp; linking line and options,&lt;/P&gt;

&lt;P&gt;and definitely I've seem the -DMKL_ILP64 option;&lt;/P&gt;

&lt;P&gt;But I am not sure what this means??&lt;/P&gt;

&lt;P&gt;Is -D an GCC compile option, or a linking option?? &amp;nbsp;Because in fact I have problem looking for this option in piles of document...&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;And what does it want to specify or do?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Sorry for further bothering and asking&lt;/P&gt;

&lt;P&gt;Again thank you so much for helping.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 02:58:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000815#M18547</guid>
      <dc:creator>Yung-Chieh_C_</dc:creator>
      <dc:date>2014-04-25T02:58:00Z</dc:date>
    </item>
    <item>
      <title>For updata....</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000816#M18548</link>
      <description>&lt;P&gt;For update....&lt;/P&gt;

&lt;P&gt;So I search a little more, and now I've got the point of using -Dmacro, which is #define macro 1;&lt;/P&gt;

&lt;P&gt;and I believe this macro is used in code and library building.&lt;/P&gt;

&lt;P&gt;But here are still some things:&lt;/P&gt;

&lt;P&gt;---&amp;gt; when working with LP64 interface, I didn't define MKL_LP64, but such kind of problem is not arising; why is this?&lt;/P&gt;

&lt;P&gt;---&amp;gt; is this saying that the corresponding 32-bit version of the two interface is the default usage? (this is not unreasonable, though)&lt;/P&gt;

&lt;P&gt;Is these understanding ok?&lt;/P&gt;

&lt;P&gt;Do I miss any point? if so, please tell me&lt;/P&gt;

&lt;P&gt;Thank you very much, appreciate your help!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 03:25:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000816#M18548</guid>
      <dc:creator>Yung-Chieh_C_</dc:creator>
      <dc:date>2014-04-25T03:25:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Yung-Chieh C. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000817#M18549</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Yung-Chieh C. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Is -D an GCC compile option, or a linking option?? &amp;nbsp;Because in fact I have problem looking for this option in piles of document...&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The -D "define" option has been used for the pre-processor phase of practically every C compiler since the late 1970s. See, for example,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Preprocessor-Options.html#Preprocessor-Options&amp;nbsp;" target="_blank"&gt;http://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Preprocessor-Options.html#Preprocessor-Options&amp;nbsp;&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 12:19:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000817#M18549</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-04-25T12:19:32Z</dc:date>
    </item>
    <item>
      <title>Thank you mecej4, finally I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000818#M18550</link>
      <description>&lt;P&gt;Thank you mecej4, finally I can have the official document about this option&lt;/P&gt;

&lt;P&gt;Appreciate your help!!&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Btw, the doubt about whether the LP64 interface is applied by default still remains questioned...&lt;/P&gt;

&lt;P&gt;But I think the answer should be positive, cuz that seems to make fairly sense, at least to me...&lt;/P&gt;

&lt;P&gt;Anyone doubting that should assume this...or until some usage/testing result disagree with mine above.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 12:56:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000818#M18550</guid>
      <dc:creator>Yung-Chieh_C_</dc:creator>
      <dc:date>2014-04-25T12:56:00Z</dc:date>
    </item>
    <item>
      <title>lp64 corresponds with default</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000819#M18551</link>
      <description>&lt;P&gt;lp64 corresponds with default (plain) int. When linking using gcc, you must specify either ilp64 or lp64 library.&amp;nbsp; There is a simplified -mkl link option for icc, which implies lp64.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 16:51:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000819#M18551</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-04-25T16:51:41Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000820#M18552</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.399999618530273px;"&gt;&amp;gt;&amp;gt;&amp;gt;The problem here is that, if I use the following compiling&amp;amp;linking line, though it can pass, the execution ALWAYS get segmentation fault:&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.399999618530273px;"&gt;Do you have an option to execute your program under GDB?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 17:35:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000820#M18552</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-04-25T17:35:51Z</dc:date>
    </item>
    <item>
      <title>@Prince: Thanks for offering</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000821#M18553</link>
      <description>&lt;P&gt;@Prince: Thanks for offering that information; that would be helpful to my and others' further &amp;amp; future using of MKL !!&lt;/P&gt;

&lt;P&gt;@illyapolak: That sounds great!&lt;/P&gt;

&lt;P&gt;So, I GDBed the original executable without -DMKL_ILP64; the result may be able give some information about where the seg-fault takes place:&lt;/P&gt;

&lt;P&gt;Program received signal SIGSEGV, Segmentation fault.&lt;BR /&gt;
	[Switching to Thread 0x7fffa7fff700 (LWP 26682)]&lt;BR /&gt;
	0x00007fffce956bcf in &lt;STRONG&gt;mkl_blas_avx_dgemm_mscale&lt;/STRONG&gt; ()&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;from $(MKLROOT)/lib/intel64/l&lt;EM&gt;ibmkl_avx.so&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;[backttracking]:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;#0 &lt;/STRONG&gt;&amp;nbsp;0x00007fffce956bcf in &lt;STRONG&gt;mkl_blas_avx_dgemm_mscale ()&lt;/STRONG&gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;from /tmp2/b99902074/intel/composer_xe_2013_sp1.0.080/composer_xe_2013_sp1.0.080/mkl/lib/intel64/&lt;EM&gt;libmkl_avx.so&lt;/EM&gt;&lt;BR /&gt;
	&lt;STRONG&gt;#1&lt;/STRONG&gt; &amp;nbsp;0x00007ffff677a987 in gemm_host ()&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;from /tmp2/b99902074/intel/composer_xe_2013_sp1.0.080/composer_xe_2013_sp1.0.080/mkl/lib/intel64/libmkl_intel_thread.so&lt;BR /&gt;
	&lt;STRONG&gt;#2&lt;/STRONG&gt; &amp;nbsp;0x00007ffff4e6d603 in L_kmp_invoke_pass_parms ()&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;from /tmp2/b99902074/intel/composer_xe_2013_sp1.0.080/composer_xe_2013_sp1.0.080/compiler/lib/intel64/libiomp5.so&lt;BR /&gt;
	&lt;STRONG&gt;#3&lt;/STRONG&gt; &amp;nbsp;0x00007fffffffca60 in ?? ()&lt;BR /&gt;
	&lt;STRONG&gt;#4 &lt;/STRONG&gt;&amp;nbsp;0x00007fffffffca68 in ?? ()&lt;BR /&gt;
	&lt;STRONG&gt;#5&lt;/STRONG&gt; &amp;nbsp;0x00007fffffffca70 in ?? ()&lt;BR /&gt;
	&lt;STRONG&gt;#6 &lt;/STRONG&gt;&amp;nbsp;0x00007fffffffc7c8 in ?? ()&lt;BR /&gt;
	&lt;STRONG&gt;#7&lt;/STRONG&gt; &amp;nbsp;0x00007fffffffc9a8 in ?? ()&lt;BR /&gt;
	&lt;STRONG&gt;#8&lt;/STRONG&gt; &amp;nbsp;0x00007fffffffc998 in ?? ()&lt;BR /&gt;
	&lt;STRONG&gt;#9 &lt;/STRONG&gt;&amp;nbsp;0x00007fffffffc9d8 in ?? ()&lt;BR /&gt;
	&lt;STRONG&gt;#10&lt;/STRONG&gt; 0x00007fffffffc990 in ?? ()&lt;BR /&gt;
	&lt;STRONG&gt;#11&lt;/STRONG&gt; 0x00007fffa7ffeb10 in ?? ()&lt;BR /&gt;
	&lt;STRONG&gt;#12&lt;/STRONG&gt; 0x00007ffff7dead37 in _dl_fixup (l=&amp;lt;optimized out&amp;gt;, reloc_arg=&amp;lt;optimized out&amp;gt;) at ../elf/dl-runtime.c:111&lt;BR /&gt;
	&lt;STRONG&gt;#13&lt;/STRONG&gt; 0x00007ffff7df1275 in _dl_runtime_resolve () at ../sysdeps/x86_64/dl-trampoline.S:45&lt;BR /&gt;
	&lt;STRONG&gt;#14&lt;/STRONG&gt; 0x00007ffff4e49594 in __kmp_invoke_task_func (gtid=-633748272) at ../../src/kmp_runtime.c:8494&lt;BR /&gt;
	&lt;STRONG&gt;#15&lt;/STRONG&gt; 0x00007ffff4e484a1 in __kmp_launch_thread (this_thr=0x410bfde7da39c4d0) at ../../src/kmp_runtime.c:7081&lt;BR /&gt;
	&lt;STRONG&gt;#16&lt;/STRONG&gt; 0x00007ffff4e6d996 in __kmp_launch_worker (thr=0x410bfde7da39c4d0) at ../../src/z_Linux_util.c:746&lt;BR /&gt;
	&lt;STRONG&gt;#17&lt;/STRONG&gt; 0x00007ffff48d0062 in start_thread (arg=0x7fffa7fff700) at pthread_create.c:312&lt;BR /&gt;
	&lt;STRONG&gt;#18&lt;/STRONG&gt; 0x00007ffff4604a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111&lt;/P&gt;

&lt;P&gt;It seems to me that the fault is generated when executing code of &lt;STRONG&gt;that&amp;nbsp;&lt;/STRONG&gt;function archived within &lt;EM&gt;that&lt;/EM&gt; shared library...&lt;/P&gt;

&lt;P&gt;Noticing that shared library should still be linked once the program is entered, &lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;also, I use list command in gdb, and it shows JUST&amp;nbsp;the up&amp;amp;downward five lines FROM INT MAIN{,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;my guess is that just when LOADING &lt;EM&gt;the library &lt;/EM&gt;along with &lt;STRONG&gt;the function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 700; font-size: 1em; line-height: 1.5;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;fault is caused by not involving -DMK_ILP64 option;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;But this is a wholly guess by me and may need to be confirmed; so just for reference at this point.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Apr 2014 02:05:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000821#M18553</guid>
      <dc:creator>Yung-Chieh_C_</dc:creator>
      <dc:date>2014-04-26T02:05:00Z</dc:date>
    </item>
    <item>
      <title>GDB output seems quite</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000822#M18554</link>
      <description>&lt;P&gt;GDB output seems quite unsufficient to effectively pinpoint the problem.Is there any option to display register context,faulting IP and called functions arguments?&lt;/P&gt;

&lt;P&gt;I think that segfault occurred in this function call &amp;nbsp;&lt;SPAN style="font-weight: 700; font-size: 12px; line-height: 14.399999618530273px;"&gt;#0&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 14.399999618530273px;"&gt;&amp;nbsp;0x00007fffce956bcf in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 700; font-size: 12px; line-height: 14.399999618530273px;"&gt;mkl_blas_avx_dgemm_mscale ().&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The parameters probably were passed by calling this function&amp;nbsp;&lt;SPAN style="font-weight: 700; font-size: 12px; line-height: 14.399999618530273px;"&gt;#2&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 14.399999618530273px;"&gt;&amp;nbsp;&amp;nbsp;0x00007ffff4e6d603 in &lt;STRONG&gt;L_kmp_invoke_pass_parms ()&lt;/STRONG&gt;.Now if we could look at the arguments being passed and resolved validity of their addresses.Maybe it could shed some light on the root cause of that segfault.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Apr 2014 07:15:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000822#M18554</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-04-26T07:15:34Z</dc:date>
    </item>
    <item>
      <title>Now, here is another testing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000823#M18555</link>
      <description>&lt;P&gt;Now, here is another testing problem I've found:&lt;/P&gt;

&lt;P&gt;In the compiling line above, I link the application with&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;$(MKLROOT)/lib/intel64/libmkl_intel_ilp64.so, the shared library,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;with help of -L$(MKLROOT)/lib/intel64 option;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;In my knowledge, if -static is not particularly used, then the shared version is priorly linked if existing; and I check this by&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;substituting&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;$(MKLROOT)/lib/intel64/libmkl_intel_ilp64.so with -lmkl_intel_ilp64; things go as expected, working fine.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Now, when I try to alternatively use the static version of the library, i.e.,&amp;nbsp;$(MKLROOT)/lib/intel64/libmkl_intel_ilp64.a, by adding -static option, like this:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;-L$(MKLROOT)/lib/intel64 &amp;nbsp;&lt;SPAN style="font-weight: 700;"&gt;-static&lt;/SPAN&gt;&amp;nbsp;-lmkl_intel_ilp64(or specifically:&amp;nbsp;$(MKLROOT)/lib/intel64/libmkl_intel_ilp64.a),&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;problem arises: the compiling can't even pass, and undefined&amp;nbsp;reference to cblas_dgemm() is used.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Is this normal or not? Is this saying that only the shared version of the library can satisfy the use of CBLAS api ??&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;But if so, why is the static version also generated? This seems somehow unreasonable to me..&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;I'm wondering if I'm doing something in a wrong way here...anyone recognizing such situation?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Really, so much appreciation and thankfulness for help!!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Apr 2014 07:16:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000823#M18555</guid>
      <dc:creator>Yung-Chieh_C_</dc:creator>
      <dc:date>2014-04-26T07:16:27Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;&gt;Is this normal or not? Is</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000824#M18556</link>
      <description>&lt;P style="font-size: 12px;"&gt;&amp;gt;&amp;gt;&amp;gt;Is this normal or not? Is this saying that only the shared version of the library can satisfy the use of CBLAS api ??&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;But if so, why is the static version also generated? This seems somehow unreasonable to me..&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;Sorry I do not have any answer.&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;If you would like to investigate deeper that segfault and provide more output from GDB I could offer you more help.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Apr 2014 07:37:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000824#M18556</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-04-26T07:37:38Z</dc:date>
    </item>
    <item>
      <title>When you switch to MKL static</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000825#M18557</link>
      <description>When you switch to MKL static libraries, you must follow the specific advice generated by link advisor
&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;
I doubt that you can mix MKL .a and .so objects.  You must take into account the circular references, preferably by the method shown in link advisor.</description>
      <pubDate>Sat, 26 Apr 2014 11:23:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-GCC-using-ilp64-interface-keep-getting-seg-fault/m-p/1000825#M18557</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-04-26T11:23:08Z</dc:date>
    </item>
  </channel>
</rss>

