nested cilk_spawn functions

nested cilk_spawn functions

I believe that I know the answer to this, but I am going to ask anyway. Is it okay to nest cilk_spawns? In other words when I spawn a function and it calls/spawns a function can this be repeated in the spawned function?

I believe that the answer is yes, based on the code I had for a Cilk5 fibonacci progtram.

Newport_j

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Yes, you are correct! You are _encouraged_ to nest your parallelism in Cilk++.

Leave a Comment

Please sign in to add a comment. Not a member? Join today