Software Archive
Read-only legacy content
17061 Discussions

Cilk functions don't work

laligu
Beginner
531 Views

I work with intel parallel studio 2011 and I included:

#include 

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?

Thanks!!!
0 Kudos
2 Replies
Barry_T_Intel
Employee
531 Views
The Intel Cilk Plus extension to C++ is only supported by the Intel C/C++ compiler, soyou must convert your project to use the Intel C++ compiler. If you right-click on theproject, there should be an option in the context menu to let you do this. Something like "Intel C++ Composer XE 2011" -> "Use Intel C++..."

- Barry
0 Kudos
Nemanja_M_
Beginner
531 Views

I've done this, but i still have the same problem.

0 Kudos
Reply