raisr icon indicating copy to clipboard operation
raisr copied to clipboard

Tried to make it GPU optimized

Open Rabbey opened this issue 7 years ago • 3 comments

But I failed... Firstly, I rewrote the code with Cupy rather than Numpy. However some functions used in Raisr, like gradient (maybe we can replace it with other apis available in Cupy? ), have not been realized in Cupy. I also tried to mix Numpy and Cupy. It works, but doesn't perform well. Maybe the exchange of data between GPU and CPU costs too much time. Then, I tried Numba. Sadly its Cuda function does not support Numpy array methods. Beside, @jit does produce efficient machine code, but the promotion is limited. To parallelize those loops, maybe we have to rewrite the code. If anyone wants to make Raisr GPU optimized on Python, contact me and we can work together.

In addition, I suggest the author to add the retraining feature by saving Q&V and other parameters. It would be useful and efficent, while eaiser to realize than GPU optimization.

Rabbey avatar Apr 05 '18 16:04 Rabbey

Have you started optimization?

showengineer avatar Oct 11 '18 19:10 showengineer

does it work?

jtoy avatar Oct 19 '18 20:10 jtoy

Did you manage to get any further with this idea?

StephenJPereira avatar Jan 25 '19 15:01 StephenJPereira