<?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 Yes, you are right. Gcc-5 is in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090562#M65159</link>
    <description>&lt;P&gt;Yes, you are right. Gcc-5 is compiling it without any problems. Thanks a lot.&lt;/P&gt;

&lt;P&gt;It's very confusing, so many bugs and errors. Btw, do i need to report these bugs and errors somewhere or it will be handled by someone now.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2015 15:26:15 GMT</pubDate>
    <dc:creator>Mehul_J_</dc:creator>
    <dc:date>2015-12-03T15:26:15Z</dc:date>
    <item>
      <title>pretty weird behaviour on using  cilk_for and built-in function of arrays</title>
      <link>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090558#M65155</link>
      <description>&lt;P&gt;I was trying to use built-in functions for arrays in cilkplus. Consider the following code as example:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;stdlib.h&amp;gt;
#include&amp;lt;cilk/cilk.h&amp;gt;


int main()
{
int a[10] = {10,3,14,7,9,5,65,12,6,52};

int t;

t = __sec_reduce_max(a[0:3]);


cilk_for(int i=0;i&amp;lt;11;i++)
{
printf("something\n");
}

return 0;
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;On compiling the above program i got "internal compiler error: Segmentation fault"&lt;/P&gt;

&lt;P&gt;But, if i replace the "cilk_for" with just "for" then the program is compiled and executed successfully. I observed that whenever i'm using cilk_for and the function __sec_reduce_max() within the same program, i get this error. Is this a bug&lt;/P&gt;

&lt;P&gt;I think the question is similar to this &lt;A href="https://software.intel.com/en-us/forums/intel-cilk-plus/topic/265797"&gt;one?&lt;/A&gt; But what's the solution? what should i do? I'm using cilkplus-4_8-branch in linux 64 bit system.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 06:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090558#M65155</guid>
      <dc:creator>Mehul_J_</dc:creator>
      <dc:date>2015-12-01T06:26:00Z</dc:date>
    </item>
    <item>
      <title>Yes, it looks like a bug in</title>
      <link>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090559#M65156</link>
      <description>&lt;P&gt;Yes, it looks like a bug in cilkplus-4_8-branch.&lt;/P&gt;

&lt;P&gt;If you don't have any specific reason to use cilkplus-4_8-branch, you can use the latest GCC version (gcc-5) instead. Your example code compiles fine with gcc-5, so I believe the bug was fixed in the latest version.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:43:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090559#M65156</guid>
      <dc:creator>Hansang_B_Intel</dc:creator>
      <dc:date>2015-12-01T16:43:10Z</dc:date>
    </item>
    <item>
      <title>Thanks for quick reply.</title>
      <link>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090560#M65157</link>
      <description>&lt;P&gt;Thanks for quick reply.&lt;/P&gt;

&lt;P&gt;This program is running fine with g++-5 but i got some other problems too.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;
	&lt;/P&gt;&lt;P&gt;1. On using __sec_reduce_max() inside the cilk_for loop giving me "internal compiler error: in gimplify_expr , at gimplify.c:8832". For instance consider the following code:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;stdlib.h&amp;gt;
#include&amp;lt;cilk/cilk.h&amp;gt;

int main()
{
int a[10] = {10,3,14,7,9,5,65,12,6,52};

int t;

cilk_for(int i = 0;i&amp;lt;4;i++)
{
t = __sec_reduce_max(a[0:i+1]);
}

return 0;
}&lt;/PRE&gt;

&lt;P&gt;I got following message:&lt;/P&gt;

&lt;P&gt;internal compiler error: in gimplify_expr, at gimplify.c:8832&lt;BR /&gt;
	&amp;nbsp;t = __sec_reduce_max(a[0:i+1]);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;BR /&gt;
	0x8f19fc gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:8832&lt;BR /&gt;
	0x8f5540 gimplify_call_expr&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:2477&lt;BR /&gt;
	0x8f1297 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:8071&lt;BR /&gt;
	0x8ee803 gimplify_modify_expr&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:4644&lt;BR /&gt;
	0x8effba gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:8100&lt;BR /&gt;
	0x8f27a6 gimplify_stmt(tree_node**, gimple_statement_base**)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:5519&lt;BR /&gt;
	0x8ef8ab gimplify_cleanup_point_expr&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:5295&lt;BR /&gt;
	0x8ef8ab gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:8463&lt;BR /&gt;
	0x8f27a6 gimplify_stmt(tree_node**, gimple_statement_base**)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:5519&lt;BR /&gt;
	0x8f82f7 gimplify_and_add(tree_node*, gimple_statement_base**)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:423&lt;BR /&gt;
	0x8f82f7 gimplify_omp_for&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:7413&lt;BR /&gt;
	0x8f0efc gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:8562&lt;BR /&gt;
	0x8f27a6 gimplify_stmt(tree_node**, gimple_statement_base**)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:5519&lt;BR /&gt;
	0x8f2fbf gimplify_bind_expr&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:1136&lt;BR /&gt;
	0x8f1279 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:8297&lt;BR /&gt;
	0x8f27a6 gimplify_stmt(tree_node**, gimple_statement_base**)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:5519&lt;BR /&gt;
	0x8f2063 gimplify_and_add(tree_node*, gimple_statement_base**)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:423&lt;BR /&gt;
	0x8f2063 gimplify_and_return_first&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:435&lt;BR /&gt;
	0x8f2063 gimplify_omp_parallel&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:6901&lt;BR /&gt;
	0x8f2063 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;../../src/gcc/gimplify.c:8547&lt;BR /&gt;
	Please submit a full bug report,&lt;BR /&gt;
	with preprocessed source if appropriate.&lt;BR /&gt;
	Please include the complete backtrace with any bug report.&lt;BR /&gt;
	See &amp;lt;file:///usr/share/doc/gcc-5/README.Bugs&amp;gt; for instructions.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2. It is not recognizing __sec_reduce_max_index function&lt;/P&gt;

&lt;P&gt;‘__sec_reduce_max_index’ was not declared in this scope&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 04:38:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090560#M65157</guid>
      <dc:creator>Mehul_J_</dc:creator>
      <dc:date>2015-12-02T04:38:00Z</dc:date>
    </item>
    <item>
      <title>1. The C compiler of GCC5</title>
      <link>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090561#M65158</link>
      <description>&lt;P&gt;1. The C compiler of GCC5 compiles your second example without any problems, but the C++ compiler is crashing as described in your posting, so it looks like a bug in g++.&lt;/P&gt;

&lt;P&gt;2. The correct function name is __sec_reduce_max_ind() as described in&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;A href="https://www.cilkplus.org/sites/default/files/open_specifications/Intel_Cilk_plus_lang_spec_1.2.htm"&gt;&amp;nbsp;https://www.cilkplus.org/sites/default/files/open_specifications/Intel_Cilk_plus_lang_spec_1.2.htm&lt;/A&gt;. I found that the tutorial page at cilkplus.org contains incorrect information about this function, so it needs correction.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 14:55:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090561#M65158</guid>
      <dc:creator>Hansang_B_Intel</dc:creator>
      <dc:date>2015-12-02T14:55:41Z</dc:date>
    </item>
    <item>
      <title>Yes, you are right. Gcc-5 is</title>
      <link>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090562#M65159</link>
      <description>&lt;P&gt;Yes, you are right. Gcc-5 is compiling it without any problems. Thanks a lot.&lt;/P&gt;

&lt;P&gt;It's very confusing, so many bugs and errors. Btw, do i need to report these bugs and errors somewhere or it will be handled by someone now.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 15:26:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090562#M65159</guid>
      <dc:creator>Mehul_J_</dc:creator>
      <dc:date>2015-12-03T15:26:15Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090563#M65160</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Somebody will be looking at the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 22:39:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/pretty-weird-behaviour-on-using-cilk-for-and-built-in-function/m-p/1090563#M65160</guid>
      <dc:creator>Hansang_B_Intel</dc:creator>
      <dc:date>2015-12-04T22:39:27Z</dc:date>
    </item>
  </channel>
</rss>

