Question

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?

Was it helpful?

Solution

"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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top