Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Issue 2526733002: Add AVX2 version of ConvolveVertically (Closed)

Created:
4 years ago by xiangze.zhang
Modified:
4 years ago
Reviewers:
rmistry, mtklein_C
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add AVX2 version of ConvolveVertically ConvolveVertically time is reduced about 60% using haswell cpu. Nanobench results: before after bitmap_scale_filter_64_256 611us 302us bitmap_scale_filter_80_90 101us 64.9us bitmap_scale_filter_30_90 82.3us 51.4us bitmap_scale_filter_10_90 73.6us 42.4us BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2526733002 CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD Committed: https://skia.googlesource.com/skia/+/4adac2e32a99b9e266b41b356c7bbc2ea2c8dd31

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -4 lines) Patch
M src/core/SkConvolver.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/opts/SkBitmapFilter_opts.h View 1 1 chunk +106 lines, -2 lines 0 comments Download
M src/opts/SkOpts_hsw.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
xiangze.zhang
4 years ago (2016-11-23 06:28:50 UTC) #3
xiangze.zhang
PTAL.
4 years ago (2016-11-29 08:02:35 UTC) #4
mtklein_C
Hi! I'm sorry I haven't responded on these two CLs yet. They're important to me ...
4 years ago (2016-11-29 20:53:51 UTC) #5
mtklein_C
https://codereview.chromium.org/2526733002/diff/1/src/opts/SkBitmapFilter_opts.h File src/opts/SkBitmapFilter_opts.h (right): https://codereview.chromium.org/2526733002/diff/1/src/opts/SkBitmapFilter_opts.h#newcode14 src/opts/SkBitmapFilter_opts.h:14: #include <immintrin.h> I think we can just use immintrin.h ...
4 years ago (2016-12-05 18:42:46 UTC) #6
xiangze.zhang
Thanks for your review and I have addressed most of the comments. I also merged ...
4 years ago (2016-12-07 11:17:01 UTC) #7
mtklein_C
Thanks for the updates. lgtm! Good call on merging the tail code into the main ...
4 years ago (2016-12-07 17:36:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2526733002/20001
4 years ago (2016-12-07 17:36:16 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot on master.client.skia (JOB_FAILED, no build URL)
4 years ago (2016-12-07 17:36:47 UTC) #12
mtklein_C
Ah, the bot name has changed a little since you uploaded this. I'll fix it...
4 years ago (2016-12-07 17:43:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2526733002/20001
4 years ago (2016-12-07 17:43:57 UTC) #16
commit-bot: I haz the power
Failed to apply patch for src/opts/SkOpts_hsw.cpp: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-07 18:05:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2526733002/40001
4 years ago (2016-12-08 01:26:48 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/4adac2e32a99b9e266b41b356c7bbc2ea2c8dd31
4 years ago (2016-12-08 01:54:08 UTC) #24
mtklein_C
On 2016/12/08 at 01:54:08, commit-bot wrote: > Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/4adac2e32a99b9e266b41b356c7bbc2ea2c8dd31 Very weird ...
4 years ago (2016-12-08 01:58:51 UTC) #25
xiangze.zhang
On 2016/12/08 01:58:51, mtklein_C wrote: > On 2016/12/08 at 01:54:08, commit-bot wrote: > > Committed ...
4 years ago (2016-12-08 02:23:12 UTC) #26
mtklein_C
Hmm. When I have Gerrit problems I always run to Ravi (rmistry@google.com) to ask for ...
4 years ago (2016-12-08 02:27:32 UTC) #28
rmistry
On 2016/12/08 02:23:12, xiangze.zhang wrote: > On 2016/12/08 01:58:51, mtklein_C wrote: > > On 2016/12/08 ...
4 years ago (2016-12-08 12:40:24 UTC) #29
xiangze.zhang
4 years ago (2016-12-09 07:31:37 UTC) #30
Message was sent while issue was closed.
On 2016/12/08 12:40:24, rmistry wrote:
> On 2016/12/08 02:23:12, xiangze.zhang wrote:
> > On 2016/12/08 01:58:51, mtklein_C wrote:
> > > On 2016/12/08 at 01:54:08, commit-bot wrote:
> > > > Committed patchset #3 (id:40001) as
> > >
> https://skia.googlesource.com/skia/+/4adac2e32a99b9e266b41b356c7bbc2ea2c8dd31
> > > 
> > > Very weird that the first round of bots passed but the patch couldn't land
> > > without a rebase.  I think our new Gerrit code review system is a lot
better
> > > about figuring out how to rebase / merge as needed when there are no real
> > > conflicts... future CLs should be easier on
> > http://skia-review.googlesource.com.
> > 
> > I tried Gerrit before and failed to upload cl completely because of network
> > issues. 
> > 
> > My environment needs proxy to connect to Internet. Git cl upload timed out
at 
> > somewhere about adding reviewers. Seems the script did not respect
http_proxy
> at
> > some point.
> 
> Can you please file a bug at https://bugs.chromium.org/p/chromium/issues/entry
> and link it here?
> If uploading to Rietveld works for you then we need to make sure it works for
> Gerrit as well.

I have filed a bug: https://bugs.chromium.org/p/chromium/issues/detail?id=672729
Thanks for your help!

Powered by Google App Engine
This is Rietveld 408576698