Turbo.js – GPGPU made simple
turbo.github.io
turbo.github.io
> Ah snap! There was no error compiling the test kernel or running it, but the numbers don't check out. Please report your browser (+ version) and hardware configuration to us, so we can try to fix this. Deviation was 0.33731377391086426.
I'm on linux 4.7 + chromium 53 with Intel 4000 graphics
BTW: If you get the "Ah snap" error, there is some diagnostic data in the console. Please include that in any issue report. Cheers.
Thanks, I could tell when my fan spun up when I loaded the page and my browser lagged.
console:
Values are: 0.00900000031106174 and 1.0210000006482005
---------------------
Chrome on Ubuntu on Intel NUC
There are sections for "PURE JAVASCRIPT" and "JAVASCRIPT & TURBO.JS", but they only display a triangle/circle illustration.
testData is undefined on line 28 of benchmark.js.
> Ah snap! There was no error compiling the test kernel or running it, but the numbers don't check out. Please report your browser (+ version) and hardware configuration to us, so we can try to fix this. Deviation was 0.673000000262012.
Latest Chrome on a macbook air. Looks like at least one other person has had this issue, I'll report my experience as well. https://github.com/turbo/js/issues/1
Anyone got some example results they can share with us, including hardware/OS/software you're running and what kind of speed up was found?
Edit: It works on my windows PCs (even in a qemu KVM instance using the std vga, but of course the emulated GPU is slower). However, it doesn't seem to like any browser on linux.
It didn't work for at first, but I got it to show me the "Ah snap! There was no error compiling the test kernel or running it, but the numbers don't check out." message at least. By changing the deviation var to e.g. 0 in the debugger you can also force it show you the results (JS: 0.56, JS&Turbo.js: 1.74), but I don't know if those results mean anything.
Steps to maybe fix:
Does e.g. glxgears work?
On Chrome, check the following two pages:
chrome://flags/ <-- I enabled "Override software rendering list", "Experimental canvas features", "WebGL Draft Extensions" but don't know if all of those are necessary. Better change them back later.
chrome://settings <-- Advanced -> System -> Use hardware acceleration when available
chrome://gpu/ <-- Check if WebGL is enabled, etc. (also check log messages at the bottom)
My graphics hardware is a positively ancient Intel 965GM. (On Windows on a much faster CPU and using Intel HD Graphics 4000, I get JS: 1.28, JS&Turbo.js: 3.82.)
Edit: Actually, "(JS: 0.56, JS&Turbo.js: 1.74)" seems to be a valid result from what I've seen. May just be that the chosen deviation value is an unfortunate edge case.
if (!frameBufferStatus) throw new Error('ERROR: (fatal): ' + frameBufferStatus.message);
Chrome on Windows 10 + AMD R9/280.