<?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 Quote:Balaji Iyer (Intel) in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Errors-about-g-CilkPlus/m-p/971964#M24192</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Balaji Iyer (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello Xia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please try using __attribute__ ((vector))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Balaji V. Iyer.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I got it, in gcc, you need not to specify vecotr, and use it as normal, &amp;nbsp;a[:] = Function_array(), it can be compied in my environment&lt;/P&gt;</description>
    <pubDate>Sat, 25 May 2013 15:28:51 GMT</pubDate>
    <dc:creator>Xia_Z_</dc:creator>
    <dc:date>2013-05-25T15:28:51Z</dc:date>
    <item>
      <title>Errors about g++_CilkPlus</title>
      <link>https://community.intel.com/t5/Software-Archive/Errors-about-g-CilkPlus/m-p/971962#M24190</link>
      <description>&lt;P&gt;Hi, everyone, I installed CilkPlus gcc on my fedora as the following&amp;nbsp;&lt;A href="http://cilkplus.org/build-gcc-cilkplus"&gt;http://cilkplus.org/build-gcc-cilkplus&lt;/A&gt;, after I installed it&lt;/P&gt;
&lt;P&gt;I compile&amp;nbsp;BlackScholes-ArrayNotations.cpp BlackScholes-CilkPlus.cpp BlackScholes-Main.cpp BlackScholes-Serial.cpp using commands&lt;/P&gt;
&lt;P&gt;"/home/kain/Software/cilk/gcc-cilk/bin/g++ -ldl -fcilkplus -lcilkrts BlackScholes-ArrayNotations.cpp BlackScholes-CilkPlus.cpp BlackScholes-Main.cpp BlackScholes-Serial.cpp -o cilk"&lt;/P&gt;
&lt;P&gt;But some compile errors happened&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;BlackScholes-ArrayNotations.cpp:25:13: error: expected constructor, destructor, or type conversion before ‘(’ token&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; __declspec(vector) static double N(const double&amp;amp; z) {&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;below is the definition of this function&amp;nbsp;&lt;/P&gt;
&lt;P&gt;25 __declspec(vector) static double N(const double&amp;amp; z) {&lt;BR /&gt; 26 &lt;BR /&gt; 27 &amp;nbsp; &amp;nbsp; if(z &amp;gt; 6.0) { return 1.0; }; //guards against overflow&lt;BR /&gt; 28 &amp;nbsp; &amp;nbsp; if(z &amp;lt; -6.0) { return 0.0; };&lt;BR /&gt; 29 &amp;nbsp; &amp;nbsp; double b1 = 0.31938153;&lt;BR /&gt; 30 &amp;nbsp; &amp;nbsp; double b2 = -0.356563782;&lt;BR /&gt; 31 &amp;nbsp; &amp;nbsp; double b3 = 1.781477937;&lt;BR /&gt; 32 &amp;nbsp; &amp;nbsp; double b4 = -1.821255978;&lt;BR /&gt; 33 &amp;nbsp; &amp;nbsp; double b5 = 1.330274429;&lt;BR /&gt; 34 &amp;nbsp; &amp;nbsp; double p = 0.2316419;&lt;BR /&gt; 35 &amp;nbsp; &amp;nbsp; double c2 = 0.3989423;&lt;BR /&gt; 36 &amp;nbsp; &amp;nbsp; double a = fabs(z);&lt;BR /&gt; 37 &amp;nbsp; &amp;nbsp; double t = 1.0/(1.0 + a*p);&lt;BR /&gt; 38 &amp;nbsp; &amp;nbsp; double b = c2*exp((-z)*(z/2.0));&lt;BR /&gt; 39 &amp;nbsp; &amp;nbsp; double n = ((((b5*t+b4)*t+b3)*t+b2)*t+b1)*t;&lt;BR /&gt; 40 &amp;nbsp; &amp;nbsp; n = 1.0 - b*n;&lt;BR /&gt; 41 &amp;nbsp; &amp;nbsp; if(z &amp;lt; 0.0 )&lt;BR /&gt; 42 &amp;nbsp; &amp;nbsp; n = 1.0 - n;&lt;BR /&gt; 43 &amp;nbsp; &amp;nbsp; return n;&lt;BR /&gt; 44 }&lt;/P&gt;
&lt;P&gt;I guess "__declspec(vector)" &amp;nbsp;could only be identified by &lt;A href="http://www.microsoft.com/visualstudio/eng"&gt;&lt;EM&gt;Visual Studio&lt;/EM&gt;&amp;nbsp;&lt;/A&gt;, but how can I use it in Linux?&lt;/P&gt;
&lt;P&gt;Thank you for your help!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2013 08:33:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Errors-about-g-CilkPlus/m-p/971962#M24190</guid>
      <dc:creator>Xia_Z_</dc:creator>
      <dc:date>2013-05-25T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Hello Xia,</title>
      <link>https://community.intel.com/t5/Software-Archive/Errors-about-g-CilkPlus/m-p/971963#M24191</link>
      <description>&lt;P&gt;Hello Xia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please try using __attribute__ ((vector))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Balaji V. Iyer.&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2013 13:07:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Errors-about-g-CilkPlus/m-p/971963#M24191</guid>
      <dc:creator>Balaji_I_Intel</dc:creator>
      <dc:date>2013-05-25T13:07:48Z</dc:date>
    </item>
    <item>
      <title>Quote:Balaji Iyer (Intel)</title>
      <link>https://community.intel.com/t5/Software-Archive/Errors-about-g-CilkPlus/m-p/971964#M24192</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Balaji Iyer (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello Xia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please try using __attribute__ ((vector))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Balaji V. Iyer.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I got it, in gcc, you need not to specify vecotr, and use it as normal, &amp;nbsp;a[:] = Function_array(), it can be compied in my environment&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2013 15:28:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Errors-about-g-CilkPlus/m-p/971964#M24192</guid>
      <dc:creator>Xia_Z_</dc:creator>
      <dc:date>2013-05-25T15:28:51Z</dc:date>
    </item>
  </channel>
</rss>

