[PATCH] [OPENMP] Codegen for the 'omp for' with static schedule (non-chunked).
alexander.musman at gmail.com
Mon Oct 20 01:02:59 PDT 2014
Hi doug.gregor, hfinkel, rjmccall, rsmith, fraggamuffin, ABataev,
Please review the first patch with codegen of the 'omp for' directive. It implements the simplest case, which is used when no chunk_size is specified in the schedule(static) or no 'schedule' clause is specified - the iteration space is divided by the library into chunks that are approximately equal in size, and at most one chunk is distributed to each thread. In this case, we do not need an outer loop in each thread - each thread requests once which iterations range it should handle (using __kmpc_for_static_init runtime call) and then runs the inner loop on this range.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 63907 bytes
Desc: not available
More information about the cfe-commits