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

GPU Acceleration with gpu.js #245

Open
LoopControl opened this issue Jul 15, 2017 · 4 comments
Open

GPU Acceleration with gpu.js #245

LoopControl opened this issue Jul 15, 2017 · 4 comments

Comments

@LoopControl
Copy link

LoopControl commented Jul 15, 2017

There's a new library that seems to do matrix math on the GPU via webGL. Their benchmark on the homepage shows about an 18X speed increase compared to CPU. Maybe Synaptic could use it?

http://gpu.rocks/ (Github here: https://github.com/gpujs/gpu.js )

@Jabher
Copy link
Collaborator

Jabher commented Jul 15, 2017

There are several different implementations of gpgpu, this one is really pretty, but it has an issue - there's ton of overhead due to parsing of js and then wrapping it into a code. Cazala planned to use weblas (afaik)

@AlexisTM
Copy link

AlexisTM commented Aug 4, 2017

@LoopControl For me, it's only 4 times. (Yet, I'm cheating, the browser is running on the Intel GPU, not the NVidia one.)

@wagenaartje
Copy link
Contributor

GPU.js seems pretty awesome, but it's not always faster: https://jsfiddle.net/zkL3av3o/1/ (change matrixSize to your needs). The benchmark also runs without taking the time to initialise a kernel into account.

So it's definitely faster for larger vectors / matrices, but you'd need some kind of check to predict if running on GPU is faster.

@talvasconcelos
Copy link

And, as an example, onde would get Synaptic or Neataptic runing through GPU.js ? Any example would be great.

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

5 participants