Skip to content

Critical sections

Simon Moll edited this page Dec 13, 2017 · 4 revisions

RV natively supports critical sections. Outline the critical section in the region into a function and pass that function to rv::MarkAsCriticalSection(sectionFunc) (header rv/annotations.h). In the vectorized code, each SIMD thread that reaches the the call to sectionFunc will execute it sequentially.

Clone this wiki locally