Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.

problem with -clomp-sharable-propagation

psrivastava
Beginner
399 Views

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