Community
cancel
Showing results for 
Search instead for 
Did you mean: 
psrivastava
Beginner
63 Views

problem with -clomp-sharable-propagation

Hi all!

In my C code when I use -clomp-sharable-propagation option and make the few variables sharable over the cluster I get a error:

expression must have a constant value

the same compiles fine on -openmp

sample code is given below

#include

[cpp]typedef enum {N_I, N_P} vType;

#define NameI(x) {#x, &x, N_I, sizeof(x)/sizeof(int)}

int bondLen;

#pragma intel omp sharable(bondLen) typedef struct{ char *name; void *vPtr; VType vType; int vLen, vStatus; } NameList; NameList nameList [] = { NameI(bondLen); }[/cpp]

The error is at NameI(bondLen).

0 Kudos
0 Replies
Reply