<?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 Problem with DGEMM - ILP interface in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-DGEMM-ILP-interface/m-p/773162#M791</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;The probelm has been resolved! &lt;BR /&gt;C wrappers with MKL_INT variable declarations was a quick fix. Now the code runs for both LP and ILP interface.</description>
    <pubDate>Tue, 07 Aug 2012 03:54:56 GMT</pubDate>
    <dc:creator>kaushik</dc:creator>
    <dc:date>2012-08-07T03:54:56Z</dc:date>
    <item>
      <title>Problem with DGEMM - ILP interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-DGEMM-ILP-interface/m-p/773161#M790</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am getting a SIGSEGV Segmentation fault with dgemm. &lt;BR /&gt;Here`s a snippet of my code:&lt;BR /&gt;&lt;BR /&gt;subroutine hostgemm(M,LD, A,B,C,alpha)&lt;BR /&gt;&lt;BR /&gt; Implicit none&lt;BR /&gt; integer sizeof_real,sizeof_real8&lt;BR /&gt; parameter (sizeof_real=4)&lt;BR /&gt; parameter (sizeof_real8=8)&lt;BR /&gt; Real*8 A(*),B(*),C(*)&lt;BR /&gt; Real*8 alpha,beta, one&lt;BR /&gt; Integer :: M, LD, MM&lt;BR /&gt;#ifdef LAPACK_I4&lt;BR /&gt; Integer*4 :: MI,LDI&lt;BR /&gt;#else &lt;BR /&gt; Integer*8 :: MI,LDI&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt; MI = M&lt;BR /&gt; LDI = LD&lt;BR /&gt; LD=M&lt;BR /&gt; one =1.0d0&lt;BR /&gt; !alpha =1.0d0&lt;BR /&gt; beta = 0.0d0&lt;BR /&gt; MM=M*M&lt;BR /&gt;&lt;BR /&gt;write(*,*)'Into dgemm'&lt;BR /&gt;call dgemm('n','n',MI,MI,MI,1.0d0,A,LDI,B,LDI,0.0d0,C,LDI)&lt;BR /&gt;c call dgemm('n','n',M,M,M,1.0d0,A,LD,B,LD,0.0d0,C,LD)&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;Makefile:&lt;BR /&gt;&lt;BR /&gt;$(FC0) $(DEBUGFLAGS) -DMKL_ILP64 -fdefault-integer-8 -m64 -I$(MKLROOT)/include -o lvnopt.exe $(OBJLVN) $(NUTIL) $(BLAS) liblvn.a -L$(MKLROOT)/lib/intel64 -lmkl_gf_ilp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -L$(CUDADIR)/lib64 -lcublas -lcuda -lcudart -lm&lt;BR /&gt;&lt;BR /&gt;I have tried both 32 and 64 bit integer with LP and ILP interfaces and get the same segmentation fault. &lt;BR /&gt;Here`s the result from debugger &lt;BR /&gt;&lt;BR /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;BR /&gt;&lt;BR /&gt;[Switching to Thread 0x4160a940 (LWP 24254)]&lt;BR /&gt;0x00002aaab3b9c3a0 in mkl_blas_dgemm_mscale () from /opt/intel/composer_xe_2011_sp1.8.273/mkl/lib/intel64/libmkl_mc3.so&lt;BR /&gt;(gdb) info s&lt;BR /&gt;#0 0x00002aaab3b9c3a0 in mkl_blas_dgemm_mscale () from /opt/intel/composer_xe_2011_sp1.8.273/mkl/lib/intel64/libmkl_mc3.so&lt;BR /&gt;#1 0x00002aaaabda6995 in mkl_blas_dgemm_mscale () from /opt/intel/composer_xe_2011_sp1.8.273/mkl/lib/intel64/libmkl_core.so&lt;BR /&gt;#2 0x00002aaaab324242 in mkl_blas_dgemm.omp_fn.0 () from /opt/intel/composer_xe_2011_sp1.8.273/mkl/lib/intel64/libmkl_gnu_thread.so&lt;BR /&gt;#3 0x00002aaab363af52 in ?? () from /usr/lib64/libgomp.so.1&lt;BR /&gt;#4 0x0000003ea580673d in start_thread () from /lib64/libpthread.so.0&lt;BR /&gt;#5 0x0000003ea4cd44bd in clone () from /lib64/libc.so.6&lt;BR /&gt;&lt;BR /&gt;Note: I have to use ILP interface as I have matrices more than 2^31 - 1, the largest that can be run with LP interface. &lt;BR /&gt;Any help wil be really appreciated. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Aug 2012 01:43:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-DGEMM-ILP-interface/m-p/773161#M790</guid>
      <dc:creator>kaushik</dc:creator>
      <dc:date>2012-08-06T01:43:26Z</dc:date>
    </item>
    <item>
      <title>Problem with DGEMM - ILP interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-DGEMM-ILP-interface/m-p/773162#M791</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;The probelm has been resolved! &lt;BR /&gt;C wrappers with MKL_INT variable declarations was a quick fix. Now the code runs for both LP and ILP interface.</description>
      <pubDate>Tue, 07 Aug 2012 03:54:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-DGEMM-ILP-interface/m-p/773162#M791</guid>
      <dc:creator>kaushik</dc:creator>
      <dc:date>2012-08-07T03:54:56Z</dc:date>
    </item>
  </channel>
</rss>

