benrayfield

Results 10 comments of benrayfield

GPU doesnt use javascript vars, Float32Arrays, etc. Those are whats copied into GPU, then it does alot of work, then copied from GPU to CPU as those. It probably would...

GPU only makes things faster if you have more calculations to do than IO. You are outputting a dense 3d array, so that would probably be around the same speed...

If the .cl file is a string of opencl code, you can just copy it into any other opencl system such as lwjgl2's opencl API or Lazycl which uses that.

This attached html (and dependency js) file, used with gpu-browser.min.js in brave, chrome, and firefox, in win10pro, with a Nvidia Geforce RTX 2080 SUPER GPU, gets these dt=seconds times for...

This html file https://github.com/benrayfield/jsutils/blob/master/src/arvox/arvox.html uses gpujs_browser_mitLicense_2.11.0.js but does not use that for canvas or webcam. It just interacts with gpujs thru Float32Arrays and accesses webcam and canvas on its own....

const gpu = new GPU(); let doMins = gpu.createKernel(function(array){ let id = this.thread.x; let min = 10000000000000.0; for(let i=0; i

You can use 24 bits of a float as an int24, or less if carrying digits during multiply or add etc. You can use 4 of those at once, which...

The basics seem to work, so I'm planning to use it as a compile target for my new programming language at https://github.com/benrayfield/wikibinator203 As long as its useful, as-is, I wouldnt...

Theres already a data format for a merkle pointer. The multiformats header then whichever possible suffix that type allows. If theres no implementations of it, why not define the content...

In epoch_676.txt and https://cs.stanford.edu/people/karpathy/recurrentjs/lstm_100_model.json I see no "solver" json key, but this code in loadModel func tries to read it then throws: solver.decay_rate = j.solver.decay_rate;