Skip to content

Multithreaded IPP gaussian blur#8828

Merged
opencv-pushbot merged 2 commits intoopencv:masterfrom
woodychow:multithreaded_gaussian
Jun 1, 2017
Merged

Multithreaded IPP gaussian blur#8828
opencv-pushbot merged 2 commits intoopencv:masterfrom
woodychow:multithreaded_gaussian

Conversation

@woodychow
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

@woodychow Thank you! Any thoughts about my comment below?

CV_INSTRUMENT_FUN_IPP(::ipp::iwiFilterGaussian, &iwSrc, &iwDst, ksize.width, (float)sigma1, ippBorder);
// IW 2017u2 has bug which doesn't allow use of partial inMem with tiling
if((((ippBorder.m_borderFlags)&ippBorderInMem) && ((ippBorder.m_borderFlags)&ippBorderInMem) != ippBorderInMem)) {
return false;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  1. Should we fallback to single-threaded version?
CV_INSTRUMENT_FUN_IPP(::ipp::iwiFilterGaussian, &iwSrc, &iwDst, ksize.width, (float)sigma1, ippBorder);
  1. Should we check version macro: IW_VERSION_COMPLEX <= 20170002 (in case of fix in the next release)?

  2. Should we add new macro for disabled IPP feature here?

#define IPP_DISABLE_FILTERING_INMEM_PARTIAL 1 // IW 2017u2 has bug which doesn't allow use of partial inMem with tiling

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree with 1. Actually I just copied that logic from ipp_bilateralFilter.

I am not sure about 2 as there is no guarantee that it will be fixed in the next version. Has anyone reported the bug to Intel yet? It seems to me that 3 is the way to go for now.

…filter when the mutlithreaded version cannot be called.
@woodychow
Copy link
Copy Markdown
Contributor Author

@alalek, how does the code look now?

@alalek
Copy link
Copy Markdown
Member

alalek commented Jun 1, 2017

@woodychow Looks good to me! Thank you 👍

@opencv-pushbot opencv-pushbot merged commit f743603 into opencv:master Jun 1, 2017
@woodychow
Copy link
Copy Markdown
Contributor Author

Thanks!

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.

3 participants