JSFiddle - React, Tailwind, and code Playground
by TomWyllie
HTML
<script src="https://unpkg.com/[email protected]/dist/gpu-browser.js"></script>
JavaScript
const gpu = new GPU({ mode: 'gpu' });
const kernel = gpu.createKernel(function() {
return Math.max(0, 1, 2);
}).setOutput([1]);
kernel();
/*
Using:
GPU.js 2.9.4
GPU: NVIDIA GeForce GTX 1060 3GB
Nvidia Driver 446.14
Google Chrome Version 83.0.4103.97 (Official Build) (64-bit), but same issue in Firefox
Windows 10
Couldn't be replicated on Android Samsung Galaxy S9.
*/