Software Archive
Read-only legacy content
17061 Discussions

Shift functions in Cilk Plus

leifblaese
Beginner
434 Views

Hi,

it seems that the Shift-functions in Cilk Plus are missing. Or do i have to #include another file? __sec_shift, as well as __sec_rotate do not work.

[cpp]

test.cpp:32:35: error: ‘__sec_shift’ was not declared in this scope
b[0:5] = __sec_shift(a[0:5], 1, 9);

[/cpp]

0 Kudos
2 Replies
TimP
Honored Contributor III
434 Views
In my test case, with icc 13.0.079, introduction of __sec_shift or __sec_rotate produce ": internal error: backend signals In early versions of icc Cilk, you needed #include "cilk.h" to define __sec_ operators. They have been removed from the .h and built in to the compiler, but it looks like shift and rotate aren't adequately implemented. It's worth a problem report on premier.intel.com if you are interested in using the syntax or having documentation match function. I wouldn't expect these operators to perform well in comparison with current alternatives in my examples, even if they worked correctly. It took years to make the simplest case of Fortran cshift work efficiently, while the other cases still don't perform adequately with any compilers other than Oracle's.
0 Kudos
leifblaese
Beginner
434 Views
Thank you, i was just wondering whether shift and rotate are actually implemented or not, because they are mentioned in the documentation but not working.
0 Kudos
Reply