Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csc opencl performance has regressed #926

Closed
totaam opened this issue Jul 28, 2015 · 12 comments
Closed

csc opencl performance has regressed #926

totaam opened this issue Jul 28, 2015 · 12 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Jul 28, 2015

Issue migrated from trac ticket # 926

component: encodings | priority: critical | resolution: wontfix

2015-07-28 04:49:18: antoine created the issue


See CSC Performance where I have added results for trunk.
swscale has improved a lot since we last ran the tests, but the cython version has regressed.

@totaam
Copy link
Collaborator Author

totaam commented Jul 28, 2015

2015-07-28 07:52:57: antoine changed owner from antoine to smo

@totaam
Copy link
Collaborator Author

totaam commented Jul 28, 2015

2015-07-28 07:52:57: antoine commented


First problem is that you have to select the correct device... r10084 fixes that code, r10085 backports it.

Then after updating the wiki performance page above, it seems that the regression is not new: it happened between 0.14.x and 0.15.x (halved).

The other problem is our calls to memoryview_to_bytes (new related ticket: #927), which is a nice utility function, but too coarse: in some cases we can handle the data without converting it to bytes, and we should. r10087 + r10089 fix that for the opencl csc, backport in 10088 + 10090.

@smo: re-assigning to you so you can take a look at the performance data which might interest you, in particular just how fast swscale has become - but opencl isn't bad either...

@totaam
Copy link
Collaborator Author

totaam commented Sep 17, 2015

2015-09-17 18:56:26: smo commented


There has been many updates over this time period to Cython do you think this might be the regression we are seeing or is that totally unrelated?

@totaam
Copy link
Collaborator Author

totaam commented Sep 18, 2015

2015-09-18 05:57:22: antoine commented


@smo: regression? csc_opencl is pure python...

And with the fixes above, the csc_opencl performance is as good as it was before.

@totaam
Copy link
Collaborator Author

totaam commented Sep 24, 2015

2015-09-24 23:03:03: smo commented


Sorry I misunderstood. Ignore my last comment.

I will run some more of these tests to make sure its still about the same as your tests.

Should I update that table with my test data as well?

@totaam
Copy link
Collaborator Author

totaam commented Oct 23, 2015

2015-10-23 07:28:26: antoine commented


@smo: we should be recording as much data as we can, so that if a regression is introduced like the one above, we catch it before the release... not 2 releases later! (it wasn't too bad because we don't use csc_opencl, but a similar issue with csc_swscale would be costly!)

@totaam
Copy link
Collaborator Author

totaam commented Jan 11, 2016

2016-01-11 13:47:05: antoine changed priority from major to critical

@totaam
Copy link
Collaborator Author

totaam commented Jan 11, 2016

2016-01-11 13:47:05: antoine commented


Raising: see #973#comment:2

@totaam
Copy link
Collaborator Author

totaam commented Apr 10, 2016

2016-04-10 07:13:05: antoine commented


9 months... please just make some quick measurements and close.

@totaam
Copy link
Collaborator Author

totaam commented Apr 14, 2016

2016-04-14 19:10:55: smo changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Apr 14, 2016

2016-04-14 19:10:55: smo set resolution to wontfix

@totaam
Copy link
Collaborator Author

totaam commented Apr 14, 2016

2016-04-14 19:10:55: smo commented


When I talked to you we agreed we weren't concerned with this module anymore as libyuv works very well.

Closing this for now without measurements. Will reopen if you find it absolutely necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant