[libcxx-commits] [PATCH] D70530: [pstl] OpenMP parallel back-end, WIP (Work in progress), just for discussion

Mikhail Dvorskiy via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 21 02:20:35 PST 2019


MikeDvorskiy created this revision.
MikeDvorskiy added reviewers: rodgert, ldionne.
MikeDvorskiy created this object with visibility "All Users".
Herald added subscribers: libcxx-commits, dexonsmith, guansong.
Herald added a reviewer: jdoerfert.
MikeDvorskiy added a comment.




OpenMP parallel back-end, prototype, just for discussion.

We have designed implementation of the all patterns of PSTL backend API and prototyped the first implementation for parallel_for, parallel_reduce.

“parallel_for” is based on OpenMP “task_loop”. (not parallel for to avoid oversubscription problem in case of nested parallelism)
“parallel_reduce” is based on OpenMP “task_loop” with “reduction” clause.

We would be very appreciate you (and the community in general) to get some feedback for that.


Repository:
  rPSTL pstl

https://reviews.llvm.org/D70530

Files:
  include/pstl/internal/parallel_backend.h
  include/pstl/internal/parallel_backend_omp.h
  include/pstl/internal/parallel_backend_serial.h
  include/pstl/internal/unseq_backend_simd.h
  include/pstl/internal/utils.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70530.230406.patch
Type: text/x-patch
Size: 21217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191121/0cab962d/attachment-0001.bin>


More information about the libcxx-commits mailing list