- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page