<?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 I had already gone through it in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917211#M12831</link>
    <description>&lt;P&gt;I had already gone through it but the problem retained. Also this problem is a combination of restrict keyword for pointers in function along with&lt;/P&gt;

&lt;P&gt;#pragma vector aligned . Eliminating any one of them resolves the issues.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2014 08:03:55 GMT</pubDate>
    <dc:creator>chavhan__hitesh</dc:creator>
    <dc:date>2014-02-18T08:03:55Z</dc:date>
    <item>
      <title>segmentation fault</title>
      <link>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917209#M12829</link>
      <description>&lt;P&gt;I am working on a openmp enabled code . whenever I make a native run there is segmentation fault on MIC but code runs fine on XEON .&lt;/P&gt;

&lt;P&gt;Arrays are 64 byte aligned and using #pragma vector aligned in a for loop interestingly this pragma causes seg fault .&lt;/P&gt;

&lt;P&gt;Removing the pragma resolves the problem but want to know why is it happening ,I an also using __assume_aligned inside function containg the for loop and memory is allocated using _mm_malloc .&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:53:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917209#M12829</guid>
      <dc:creator>chavhan__hitesh</dc:creator>
      <dc:date>2014-02-17T11:53:07Z</dc:date>
    </item>
    <item>
      <title>You're probably aware of the</title>
      <link>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917210#M12830</link>
      <description>&lt;P&gt;You're probably aware of the idz article on segfaults in general and that the most common MIC causes are low stack limit or too many threads.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/determining-root-cause-of-sigsegv-or-sigbus-errors" target="_blank"&gt;http://software.intel.com/en-us/articles/determining-root-cause-of-sigsegv-or-sigbus-errors&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;several of the sections apply equally well to c or c++.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2014 12:22:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917210#M12830</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-02-17T12:22:00Z</dc:date>
    </item>
    <item>
      <title>I had already gone through it</title>
      <link>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917211#M12831</link>
      <description>&lt;P&gt;I had already gone through it but the problem retained. Also this problem is a combination of restrict keyword for pointers in function along with&lt;/P&gt;

&lt;P&gt;#pragma vector aligned . Eliminating any one of them resolves the issues.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 08:03:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917211#M12831</guid>
      <dc:creator>chavhan__hitesh</dc:creator>
      <dc:date>2014-02-18T08:03:55Z</dc:date>
    </item>
    <item>
      <title>Pragma vector aligned asserts</title>
      <link>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917212#M12832</link>
      <description>Pragma vector aligned asserts that the first element of each array accessed in the for begins a new cache line. Segfault is expected  on mic when you promise this but don't deliver.  Compile without the pragma with -vec-report6 to see which references the compiler provides for unaligned. __assume_aligned assertions provide for individual alignments.</description>
      <pubDate>Tue, 18 Feb 2014 12:09:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917212#M12832</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-02-18T12:09:40Z</dc:date>
    </item>
    <item>
      <title>Thanks for the reply</title>
      <link>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917213#M12833</link>
      <description>&lt;P&gt;Thanks for the reply&lt;/P&gt;

&lt;P&gt;I worked out as you suggested by removing the pragma vector aligned and going through the vec report . Vec report suggests that all the refrences inside that particular loop are somehow now unaligned .&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;FD_Scheme_block.c(148): (col. 10) remark: vectorization support: reference (unknown) has unaligned access&lt;BR /&gt;
	FD_Scheme_block.c(148): (col. 10) remark: vectorization support: reference (unknown) has unaligned access&lt;BR /&gt;
	FD_Scheme_block.c(148): (col. 10) remark: vectorization support: reference (unknown) has unaligned access&lt;BR /&gt;
	FD_Scheme_block.c(148): (col. 10) remark: vectorization support: reference (unknown) has unaligned access&lt;BR /&gt;
	FD_Scheme_block.c(148): (col. 10) remark: vectorization support: reference (unknown) has unaligned access&lt;BR /&gt;
	FD_Scheme_block.c(148): (col. 10) remark: vectorization support: reference (unknown) has unaligned access&lt;BR /&gt;
	FD_Scheme_block.c(148): (col. 10) remark: vectorization support: reference (unknown) has unaligned access&lt;BR /&gt;
	FD_Scheme_block.c(148): (col. 10) remark: vectorization support: reference (unknown) has aligned access&lt;BR /&gt;
	FD_Scheme_block.c(148): (col. 10) remark: vectorization support: unaligned access used inside loop body&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 06:37:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917213#M12833</guid>
      <dc:creator>chavhan__hitesh</dc:creator>
      <dc:date>2014-02-19T06:37:42Z</dc:date>
    </item>
    <item>
      <title>The compiler must assume</title>
      <link>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917214#M12834</link>
      <description>&lt;P&gt;The compiler must assume unaligned where it doesn't have information to the contrary. I don't know whether adding debug symbols would help to resolve the (unknown) notations. &amp;nbsp;The compiler can align one reference by peeling the loop for alignment, probably so that a stored array section is aligned (unless you set #pragma vector unaligned). &amp;nbsp;&lt;/P&gt;

&lt;P&gt;If you believe the arrays are aligned, you could add __assume aligned() assertions one at a time to find out which one is failing alignment at run time.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/segmentation-fault/m-p/917214#M12834</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-02-19T16:26:00Z</dc:date>
    </item>
  </channel>
</rss>

