MCPcopy Index your code
hub / github.com/gpujs/gpu.js / getOnKernel

Function getOnKernel

test/internal/mixed-memory-optimize.js:16–24  ·  view source on GitHub ↗
(gpu)

Source from the content-addressed store, hash-verified

14}
15
16function getOnKernel(gpu) {
17 return gpu.createKernel(function(value) {
18 return value[this.thread.x];
19 }) // getMemoryOptimized32
20 .setPrecision('single')
21 .setOutput([10])
22 .setPipeline(true)
23 .setOptimizeFloatMemory(true);
24}
25
26function offOnOff(mode) {
27 const gpu = new GPU({ mode });

Callers 2

offOnOffFunction · 0.85
onOffOnFunction · 0.85

Calls 5

setPipelineMethod · 0.80
createKernelMethod · 0.80
setOutputMethod · 0.45
setPrecisionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…