Which GPUs are supported?
My friend and I, on different devices, are both trying to run the basic test example on Node,js (thanks for fixing the require problem) and we both get the issue
Warning: gpu not supported, falling back to cpu support
And while he has integrated intel graphics in a laptop and I wouldn't be all that surprised by that not working, I have a desktop with a GeForce 1060 6GB installed, so I can't imagine why my GPU wouldn't be compatible.
If this is specifically in node, right now there isn't GPU support in v1. There is however some work to bring in opencl, which is the target for node. Currently you'd need webgl to get GPU acceleration. Too, I will add, that the CPU implementation actually does a fine job optimizing the function it is given, so there is some acceleration, just not break neck speed that will come with GPU.
So to be clear: currently to get the full on effects, just browserify your code from node, and run it in a browser
@robertleeplummerjr thanks, looking forward to the node update. I'd offer to help rather than be a moocher but tbh this project is a bit outside my skill set. We're using this in the web browser to compute neural networks lightning fast, GPU acceleration is so awesome, thanks for creating this for JS! A node implementation will probably be even faster.
Ty! Have you looked at brain.js.org? That is how I got started. I'd love to see the nets you are working with!
They all seem to work fairly similarly, I got started by watching this but a friend and I built our own from the ground up successfully, I'll share it with you when we finish polishing and release it on github. One I can recommend is SynapticJS, it looks a little more polished than the one at brain.js.org but I cant say for sure. All of us devs seem to be working with neural nets these days, cant wait to see what the future holds for all of this.
May be this does not apply to you at all, but nevertheless. You could also use electron, since this is a modified version of chrome with the advantage of being able to use all native node modules.
@t638403 yep, doing that already actually :)
Opencl will be in v2, but until with, whatever means works. You guys are awesome. We'd love links to see how gpu.js is being used in the wild!
Looking forward to it, will link you when project is public
Node.js support is absolutely critical. Has there been any progress on this issue?
Is there anything at all I can do to help get this working? Not sure how this works under the hood, I may not have the skillset.
Looks interesting: https://github.com/mikeseven/node-opencl
It's like you are in my head: https://github.com/mikeseven/node-opencl/issues/55
Any news on this? (Asking because Brain.js is dependent on GPU.js).
Any news on this working? I'd like to use this to calculate Vector cosine similarity on thousands of vectors on my server, and using the GPU would be perfect for this... Any news on it working with node yet?
Why does this project have the tag nodejs, when its obviously not working in nodejs? nice bait and a waste of time.
The project works ok in node, it just doesn't currently fall back to the GPU, it falls back to CPU. A lot of people have dedicated a lot of their time to this project, and to my knowledge there are none that perform the level of automation that are obtainable from it. GPU support is coming on node and has only recently been within our grasp.
@robertleeplummerjr do we have a target deadline for nodejs in gpu.js?
@WriteCodeEveryday sadly I do not have a specific deadline for this yet. Brain.js v2 will come out first then I'll shift focus onto this. Brain.js v2 is about 95% done, but I'm currently unit testing and correcting convolution layers and it is simply taking more time that I'd hoped. Help would be greatly appreciated, but not required.
Any update? :)
Would love the capability to more easily write executable code on the GPU, and this would be fantastic if it'd actually run server-side.
Nodejs compatibility will land around the first month of 2019.