GPU.js is a JavaScript Acceleration library for GPGPU (General purpose computing on GPUs) in JavaScript. GPU.js will automatically compile simple JavaScript functions into shader language and run them on the GPU. In case a GPU is not available, the functions will still run in regular JavaScript.
What is this sorcery?
Matrix multiplication written in GPU.js:
constgpu=newGPU()
// Create the GPU accelerated function from a kernel// function that computes a single element in the// 512 x 512 matrix (2D array). The kernel function// is run in a parallel manner in the GPU resulting// in very fast computations! (...sometimes)constmatMult=gpu.createKernel(function(a, b) {
var sum =0for (var i =0; i <512; i++) {
sum += a[this.thread.y][i]
Shout out for a personal project im involved in - gpu.rocks/ - running JS in the GPU (via hackerish webgl).
robertleeplummerjr (the current main maintainer) is always looking for more contribution of ideas, and usage of this crazy project. And possibly just more random cool stuff on pushing the very upper limit of what a web-application could do.
Oh whoops, I included the template in the last post and then copied and pasted this week without the template. Still not sure whether or not the template makes sense 😄
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
gpujs / gpu.js
GPU Accelerated JavaScript
GPU.js
GPU.js is a JavaScript Acceleration library for GPGPU (General purpose computing on GPUs) in JavaScript. GPU.js will automatically compile simple JavaScript functions into shader language and run them on the GPU. In case a GPU is not available, the functions will still run in regular JavaScript.
What is this sorcery?
Matrix multiplication written in GPU.js:
Shout out for a personal project im involved in - gpu.rocks/ - running JS in the GPU (via hackerish webgl).
robertleeplummerjr (the current main maintainer) is always looking for more contribution of ideas, and usage of this crazy project. And possibly just more random cool stuff on pushing the very upper limit of what a web-application could do.
PS: I dun see the comment templateThis is so cool.
Oh whoops, I included the template in the last post and then copied and pasted this week without the template. Still not sure whether or not the template makes sense 😄