3 ms·
Can someone who knows about the thing tell me how it's different from OpenMP? Their little example of accelerating a loop, at least, looks much like a standard
by lutorm 18y ago
Can someone who knows about the thing tell me how it's different from OpenMP? Their little example of accelerating a loop, at least, looks much like a standard OpenMP case.
- threadman 18y ago1. Cilk++ has nested parallelism that works and provides guaranteed speed-up. OpenMP has nested parallelism, but it is a memory hog and not reliable. 2. Cilk++ guarantees space bounds. On P processors, Cilk++ uses no more than P times the stack space of a serial execution. In OpenMP, not so. 3. Cilk++ has a race detector for debugging and software release. With OpenMP, you are on your own. 4. Cilk++ has serial semantics. With OpenMP, you do not have this benefit – only a subset of OpenMP supports serial semantics. 5. Cilk++ has a solution for global variables (a construct called "hyperobjects"). OpenMP does not.