0

I work with intel parallel studio 2011 and I included:

#include <cilk/cilk.h>

which seemed to be included just fine.

Then I tried using the command:

cilk_spawn (and also _Cilk_spawn)

and got the following error:

Error: identifier "_Cilk_spawn" is undefined.

Does anyone know how to solve this problem?

skaffman
  • 398,947
  • 96
  • 818
  • 769
N.M
  • 685
  • 1
  • 9
  • 22
  • It looks like this problem doesn't interest the world too much :) But for those of you interested, it turns out that the code compiles nicely and runs just fine - it is just some mysterious problem with the text view which makes look like it is a syntax error though it is not... – N.M Jul 23 '11 at 17:04
  • Is the library linked ? I have used the Cilk in linux, where i have the `cilkc` tool to make the executables, which accepts cilk's new keywords. – phoxis Jul 24 '11 at 10:08

1 Answers1

0

"Some mysterious problem with the text view which makes look like it is a syntax error" which you refer to in the comment probably means that Microsoft's Intellisense cannot recognize Cilk keywords, which are Intel's extension to C/C++.

I was unable to find any fix or workaround for that, so suggest you ask at Intel's Cilk Plus forum; maybe Intel Parallel Studio can take care of it. Also see a bug report to Microsoft.

Alexey Kukanov
  • 12,479
  • 2
  • 36
  • 55