Community
cancel
Showing results for 
Search instead for 
Did you mean: 
amit_l_
Beginner
106 Views

I'm getting symbol _cilk_spawn could not be resolved when compiling with icpc

Hi,

Im using Ubuntu 14.04 & eclipse & intel compiler v 15

I have 2 same cilk programs (one with as c program and the other as cpp program).

I can compile it with icc (without any problem) 

But when I'm using icpc (cpp program) I'm getting errors: symbol _cilk_spawn could not be resolved 

In those same 2 programs Im not using any flags.

What is the different with cpp program, which I cant compile

0 Kudos
3 Replies
TimP
Black Belt
106 Views

If you're getting a run time error associated with not finding cilk runtime shared object, the suspicion would be that you neglected to source the compilervars script to set up LD_LIBRARY_PATH or take some alternative action.

amit_l_
Beginner
106 Views

Why do I need to update  LD_LIBRARY_PATH is I cant compile it via icc without any change ?

TimP
Black Belt
106 Views

Supposing that you built with -static-intel or -static, cilk runtime may be the only shared object you require from the icc library, so you would require it only to support those cilk functions.  Parallel runtime libraries are the main exception to the rule of icc providing both static and dynamic versions of its libraries.

Reply