I write this code for better performance but it didnt run and has many errors .can anybody help me?
const { GPU } = require('gpu.js');
const gpu = new GPU();
var randomHex = require("randomhex");
const settings = {
output: [1]
};
const exampleKernel = gpu.createKernel(function(x) {
var tt=randomHex(32)
return tt;
}, settings);
console.log(exampleKernel(25)[0]);
error:
throw this.astErrorOutput(`Markup type ${ type } not handled`, varDecNode);