<?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 -clomp-sharable-propagation in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-with-clomp-sharable-propagation/m-p/900162#M4194</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;In my C code when I use -clomp-sharable-propagation option and make the few variables sharable over the cluster I get a error:&lt;/P&gt;
&lt;P&gt;expression must have a constant value&lt;/P&gt;
&lt;P&gt;the same compiles fine on -openmp&lt;/P&gt;
&lt;P&gt;sample code is given below&lt;/P&gt;
&lt;P&gt;#include &lt;OMP.H&gt;&lt;/OMP.H&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;PRE&gt;[cpp]typedef enum {N_I, N_P} vType;

#define NameI(x) {#x, &amp;amp;x, N_I, sizeof(x)/sizeof(int)}

int bondLen;
&lt;BR /&gt;#pragma intel omp sharable(bondLen)
typedef struct{

         char *name;

         void *vPtr;

         VType vType;

         int vLen, vStatus;

       } NameList;

NameList nameList [] =

                {

                    NameI(bondLen);

                 }[/cpp]&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The error is at NameI(bondLen).&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2008 08:48:47 GMT</pubDate>
    <dc:creator>psrivastava</dc:creator>
    <dc:date>2008-11-20T08:48:47Z</dc:date>
    <item>
      <title>problem with -clomp-sharable-propagation</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-with-clomp-sharable-propagation/m-p/900162#M4194</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;In my C code when I use -clomp-sharable-propagation option and make the few variables sharable over the cluster I get a error:&lt;/P&gt;
&lt;P&gt;expression must have a constant value&lt;/P&gt;
&lt;P&gt;the same compiles fine on -openmp&lt;/P&gt;
&lt;P&gt;sample code is given below&lt;/P&gt;
&lt;P&gt;#include &lt;OMP.H&gt;&lt;/OMP.H&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;PRE&gt;[cpp]typedef enum {N_I, N_P} vType;

#define NameI(x) {#x, &amp;amp;x, N_I, sizeof(x)/sizeof(int)}

int bondLen;
&lt;BR /&gt;#pragma intel omp sharable(bondLen)
typedef struct{

         char *name;

         void *vPtr;

         VType vType;

         int vLen, vStatus;

       } NameList;

NameList nameList [] =

                {

                    NameI(bondLen);

                 }[/cpp]&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The error is at NameI(bondLen).&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2008 08:48:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-with-clomp-sharable-propagation/m-p/900162#M4194</guid>
      <dc:creator>psrivastava</dc:creator>
      <dc:date>2008-11-20T08:48:47Z</dc:date>
    </item>
  </channel>
</rss>

