<?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 Segmentation fault when using lapacke_dsyev_row with more than  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829459#M5421</link>
    <description>Original test works and gives the following results&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;LAPACKE_dsyev (row-major, high-level) Example Program Results&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Eigenvalues&lt;BR /&gt;-11.07 -6.23 0.86 8.87 16.09&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Eigenvectors (stored columnwise)&lt;BR /&gt; -0.30 -0.61 0.40 -0.37 0.49&lt;BR /&gt; -0.51 -0.29 -0.41 -0.36 -0.61&lt;BR /&gt; -0.08 -0.38 -0.66 0.50 0.40&lt;BR /&gt; -0.00 -0.45 0.46 0.62 -0.46&lt;BR /&gt; -0.80 0.45 0.17 0.31 0.16&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;What changes were done in the test by you?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2011 13:26:38 GMT</pubDate>
    <dc:creator>barragan_villanueva_</dc:creator>
    <dc:date>2011-09-16T13:26:38Z</dc:date>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than 1300x1300 elements on 64-bit system</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829458#M5420</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have installed MKL package on 64-bit linux and try to calculate eigenvalues of a matrix consisting of more than 1300x1300 elements (actually I need 12kx12k elements). When I compile with the latest version of icc (make libintel64 function=lapacke_dsyev_row) Im always getting segmentation fault if N and LDA number exceed or are equal to 1300. &lt;BR /&gt;&lt;BR /&gt;here's the output:&lt;BR /&gt;:/home/myuser/intel/composerxe-2011.5.220/mkl/examples/lapacke&amp;gt; uname -a&lt;BR /&gt;Linux chassagne.simap.grenoble-inp.fr 2.6.18-238.19.1.el5 #1 SMP Fri Jul 15 07:31:24 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux&lt;BR /&gt;Chassagne:/home/myuser/intel/composerxe-2011.5.220/mkl/examples/lapacke&amp;gt; make libintel64 function=lapacke_dsyev_row&lt;BR /&gt;&lt;BR /&gt;----- Compiling intel_lp64_parallel_intel64_lib ----- lapacke_dsyev_row&lt;BR /&gt;icc -03 -shared-intel -mcmodel=large -w -I"/home/myuser/intel/composer_xe_2011_sp1.6.233/mkl/include" \\&lt;BR /&gt; ./source/lapacke_dsyev_row.c -Wl,--start-group \\&lt;BR /&gt; "/home/myuser/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_intel_lp64.a" \\&lt;BR /&gt; "/home/myuser/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_intel_thread.a" \\&lt;BR /&gt; "/home/myuser/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_core.a" \\&lt;BR /&gt; -Wl,--end-group -L"/home/myuser/intel/composer_xe_2011_sp1.6.233/mkl/../compiler/lib/intel64" -liomp5 -lpthread -lm -o _results/intel_lp64_parallel_intel64_lib/lapacke_dsyev_row.out&lt;BR /&gt;----- Execution intel_lp64_parallel_intel64_lib ----- lapacke_dsyev_row&lt;BR /&gt;export LD_LIBRARY_PATH="/home/myuser/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64":/home/myuser/intel/composer_xe_2011_sp1.6.233/compiler/lib/intel64:/home/myuser/intel/composer_xe_2011_sp1.6.233/ipp/../compiler/lib/intel64:/home/myuser/intel/composer_xe_2011_sp1.6.233/ipp/lib/intel64:/home/myuser/intel/composer_xe_2011_sp1.6.233/compiler/lib/intel64:/home/myuser/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64:/home/myuser/intel/composer_xe_2011_sp1.6.233/tbb/lib/intel64//cc4.1.0_libc2.4_kernel2.6.16.21:/opt/intel/fce/10.0.025/lib:/home/myuser/intel/composer_xe_2011_sp1.6.233/mpirt/lib/intel64:/home/myuser/intel/composer_xe_2011_sp1.6.233/mkl/../compiler/lib/intel64; \\&lt;BR /&gt; _results/intel_lp64_parallel_intel64_lib/lapacke_dsyev_row.out &amp;gt; _results/intel_lp64_parallel_intel64_lib/lapacke_dsyev_row.res&lt;BR /&gt;/bin/sh: line 1: 28206 Erreur de segmentation _results/intel_lp64_parallel_intel64_lib/lapacke_dsyev_row.out &amp;gt; _results/intel_lp64_parallel_intel64_lib/lapacke_dsyev_row.res&lt;BR /&gt;make[1]: *** [lapacke_dsyev_row] Erreur 139&lt;BR /&gt;make: *** [libintel64] Erreur 2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;could you please tell me what is going on?&lt;BR /&gt;thanks in advance</description>
      <pubDate>Fri, 16 Sep 2011 10:46:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829458#M5420</guid>
      <dc:creator>arthur_dent</dc:creator>
      <dc:date>2011-09-16T10:46:13Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829459#M5421</link>
      <description>Original test works and gives the following results&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;LAPACKE_dsyev (row-major, high-level) Example Program Results&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Eigenvalues&lt;BR /&gt;-11.07 -6.23 0.86 8.87 16.09&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Eigenvectors (stored columnwise)&lt;BR /&gt; -0.30 -0.61 0.40 -0.37 0.49&lt;BR /&gt; -0.51 -0.29 -0.41 -0.36 -0.61&lt;BR /&gt; -0.08 -0.38 -0.66 0.50 0.40&lt;BR /&gt; -0.00 -0.45 0.46 0.62 -0.46&lt;BR /&gt; -0.80 0.45 0.17 0.31 0.16&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;What changes were done in the test by you?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2011 13:26:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829459#M5421</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2011-09-16T13:26:38Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829460#M5422</link>
      <description>I just changed N value to 1300, the matrix was completed with zero values.&lt;BR /&gt;&lt;BR /&gt;in other example of the same function I read values from a file but it only works for N &amp;lt; 1300.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Sep 2011 13:38:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829460#M5422</guid>
      <dc:creator>arthur_dent</dc:creator>
      <dc:date>2011-09-16T13:38:32Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829461#M5423</link>
      <description>how do you allacate the working array? it might caused the segmentation if you just allocate like&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;N = 1300&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;double a[N*N] .&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;--Gennady&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2011 14:46:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829461#M5423</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-09-16T14:46:06Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829462#M5424</link>
      <description>&lt;P&gt;yes, it is exactly like in the lapacke example c file. I just changed #define N 5 to #define N 1300. The array is then double a[N*LDA], where LDA = N. How should I allocate it?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2011 15:28:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829462#M5424</guid>
      <dc:creator>arthur_dent</dc:creator>
      <dc:date>2011-09-16T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829463#M5425</link>
      <description>Well it shouldn't be exactly like the definition of the example, because the example allocates it by defining it explicitly with some data provided. You would need allocate enough space. &lt;BR /&gt;&lt;BR /&gt;If you attach your source we may be able to provide you more advice.&lt;BR /&gt;&lt;BR /&gt;Todd</description>
      <pubDate>Fri, 16 Sep 2011 23:53:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829463#M5425</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2011-09-16T23:53:07Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829464#M5426</link>
      <description>&lt;DIV&gt;&lt;SPAN style="line-height: 16px;"&gt;it would help you if you dynamically allocate
the working array:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;double* a = (double*)malloc( LDA*N*sizeof(double));&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 17 Sep 2011 03:34:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829464#M5426</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-09-17T03:34:36Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829465#M5427</link>
      <description>&lt;P&gt;Here's my .c file. The DYNAMICAL_MATRIX.dat file consists of one column with 2250000 lines (matrix elements for 500-atom system). thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include "mkl_lapacke.h"&lt;BR /&gt;&lt;BR /&gt;/* Auxiliary routines prototypes */&lt;BR /&gt;extern void print_matrix( char* desc, MKL_INT m, MKL_INT n, double* a, MKL_INT lda );&lt;BR /&gt;&lt;BR /&gt;/* Parameters */&lt;BR /&gt;#define N 1500&lt;BR /&gt;#define LDA N&lt;BR /&gt;&lt;BR /&gt;/* Main program */&lt;BR /&gt;int main() {&lt;BR /&gt;         /* Locals */&lt;BR /&gt;         int i = 0;&lt;BR /&gt;         MKL_INT n = N, lda = LDA, info;&lt;BR /&gt;	 FILE *fp= fopen("DYNAMICAL_MATRIX.dat", "r");&lt;BR /&gt;        &lt;BR /&gt;         /* Local arrays */&lt;BR /&gt;         double w&lt;N&gt;;&lt;BR /&gt;         double a[LDA*N];&lt;BR /&gt;     &lt;BR /&gt;         if(!fp)&lt;BR /&gt;         {&lt;BR /&gt;           puts("File not found.");&lt;BR /&gt;           return EXIT_FAILURE;&lt;BR /&gt;         }&lt;BR /&gt;         while (feof(fp) == 0)&lt;BR /&gt;         {&lt;BR /&gt;           fscanf(fp, "%lf\n", &amp;amp;a&lt;I&gt;);&lt;BR /&gt;           ++i;&lt;BR /&gt;         }&lt;BR /&gt;         fclose(fp);&lt;BR /&gt;&lt;BR /&gt;         /* Executable statements */&lt;BR /&gt;         printf( "LAPACKE_dsyev (row-major, high-level) Example Program Results\n" );&lt;BR /&gt;         /* Solve eigenproblem */&lt;BR /&gt;         info = LAPACKE_dsyev( LAPACK_ROW_MAJOR, 'V', 'U', n, a, lda, w );&lt;BR /&gt;         /* Check for convergence */&lt;BR /&gt;         if( info &amp;gt; 0 ) {&lt;BR /&gt;                 printf( "The algorithm failed to compute eigenvalues.\n" );&lt;BR /&gt;                 exit( 1 );&lt;BR /&gt;         }&lt;BR /&gt;         /* Print eigenvalues */&lt;BR /&gt;         print_matrix( "Eigenvalues", 1, n, w, 1 );&lt;BR /&gt;         /* Print eigenvectors */&lt;BR /&gt;         print_matrix( "Eigenvectors (stored columnwise)", n, n, a, lda );&lt;BR /&gt;         exit( 0 );&lt;BR /&gt; } /* End of LAPACKE_dsyev Example */&lt;BR /&gt;&lt;BR /&gt;/* Auxiliary routine: printing a matrix */&lt;BR /&gt;void print_matrix( char* desc, MKL_INT m, MKL_INT n, double* a, MKL_INT lda ) {&lt;BR /&gt;         MKL_INT i, j;&lt;BR /&gt;         printf( "\n %s\n", desc );&lt;BR /&gt;         for( i = 0; i &amp;lt; m; i++ ) {&lt;BR /&gt;                 for( j = 0; j &amp;lt; n; j++ ) printf( " %6.2f", a[i*lda+j] );&lt;BR /&gt;                 printf( "\n" );&lt;BR /&gt;         }&lt;BR /&gt; }&lt;/I&gt;&lt;/N&gt;&lt;/STDIO.H&gt;&lt;/STDLIB.H&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2011 10:02:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829465#M5427</guid>
      <dc:creator>arthur_dent</dc:creator>
      <dc:date>2011-09-17T10:02:04Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829466#M5428</link>
      <description>The local array a[] would attempt to consume 9 MB on the stack. If your default stack limit is, say, 8 MB, or if your data file contains more lines of data than N*N, your program would crash. &lt;BR /&gt;&lt;BR /&gt; 1. As Gennady suggested, allocate the array on the heap, instead, using malloc() or calloc(). &lt;BR /&gt;&lt;BR /&gt; 2. Make sure that the number of items read from the file is exactly N&lt;SUP&gt;2&lt;/SUP&gt;, for example, by checking that the loop counter &lt;B&gt;i &lt;/B&gt;has this value when end-of-file occurs. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 17 Sep 2011 12:06:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829466#M5428</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-09-17T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829467#M5429</link>
      <description>the number of lines is 2250000 when I do wc -l on this file so it seems like there is no empty line. I will allocate the array on the heap. thank you. I will let you know if it worked. Thank you guys.</description>
      <pubDate>Sat, 17 Sep 2011 21:09:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829467#M5429</guid>
      <dc:creator>arthur_dent</dc:creator>
      <dc:date>2011-09-17T21:09:54Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault when using lapacke_dsyev_row with more than</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829468#M5430</link>
      <description>It worked. Thank you!</description>
      <pubDate>Mon, 19 Sep 2011 06:58:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-when-using-lapacke-dsyev-row-with-more-than/m-p/829468#M5430</guid>
      <dc:creator>arthur_dent</dc:creator>
      <dc:date>2011-09-19T06:58:15Z</dc:date>
    </item>
  </channel>
</rss>

