Skip to content

G-API: Fluid Internal Parallelism - #15091

Merged
opencv-pushbot merged 1 commit into
opencv:masterfrom
anton-potapov:fluid_internal_parallellism_custom_pfor
Jul 24, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:masterfrom
anton-potapov:fluid_internal_parallellism_custom_pfor

Conversation

@anton-potapov

@anton-potapov anton-potapov commented Jul 18, 2019 •

Copy link
Copy Markdown
Contributor

This pullrequest adds:

  • ability to use custom implementation of "parallel for" function for Fluid internal parallelism
build_gapi_standalone:Linux x64=ade-0.1.1d
build_gapi_standalone:Win64=ade-0.1.1d
build_gapi_standalone:Mac=ade-0.1.1d
build_gapi_standalone:Linux x64 Debug=ade-0.1.1d

@anton-potapov

Copy link
Copy Markdown
Contributor Author

@rgarnov please welcome :)

 - added ability to use custom implementation of "parallel for" function
@anton-potapov
anton-potapov force-pushed the fluid_internal_parallellism_custom_pfor branch from d2010cd to 8936d55 Compare July 19, 2019 09:19
@anton-potapov

anton-potapov commented Jul 19, 2019 •

Copy link
Copy Markdown
Contributor Author

@dmatveev please take a look, the patch is relatively small

@dmatveev dmatveev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please attach a performance diff to ensure there's no regressions


struct GFluidParallelFor
{
std::function<void(std::size_t, std::function<void(std::size_t)>)> parallel_for;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put a comment here what internal lambda argument (std::size_t is about)

for (std::size_t i = 0; i < count; ++i){
f(i);
}
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

y not cv::parallel_for?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

serial version could be used for standalone-build fallback

@dmatveev

Copy link
Copy Markdown
Contributor

Filed a follow-up task to clean-up comments as @anton-potapov returns from vacation.

@alalek I think now it can be merged in this form

@dmatveev dmatveev self-assigned this Jul 23, 2019

@dmatveev dmatveev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with comments, thanks

@opencv-pushbot
opencv-pushbot merged commit 8936d55 into opencv:master Jul 24, 2019
opencv-pushbot pushed a commit that referenced this pull request Jul 24, 2019
@dmatveev

Copy link
Copy Markdown
Contributor

Thanks!

SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants