Skip to content

Commit

Permalink
disclaimer on parallel_for
Browse files Browse the repository at this point in the history
  • Loading branch information
mlivesu committed May 3, 2021
1 parent e712df6 commit 95057b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/cinolib/parallel_for.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ namespace cinolib
/* OpenMP-like parallel for loop realized in plain C++11
* Thanks to Jeremy Dumas for his code (https://ideone.com/Z7zldb)
*
* DISCLAIMER: this routine is as good as OpenMP with STATIC scheduling.
* That is, it works best when computational cost is equally distributed
* across all threads. In case of unbalanced distribution, performances
* may degrade, and using the DYNAMIC scheduling of a library such as OpenMP
* will greatly benefit performances.
*
* PARALLEL_FOR has three arguments
*
* beg,end : define a range of indices
Expand Down

0 comments on commit 95057b5

Please sign in to comment.