Get started with gpu.js CDN
MIT licensed
GPU.js: Lightweight library for WebGL computing, bypassing browsers GPUs.
Tags:- gpgpu
- GPU
- webgl
- accelerate
Stable version
Copied!
How to start using gpu.js CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with gpu.js CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/gpu.js/2.16.0/gpu.min.js"></script>
</head>
<body>
<script>
async function main() {
const gpu = new GPU();
const mat1 = gpu.createMatrix(16, 16, () => Math.random());
const mat2 = gpu.createMatrix(16, 16, () => Math.random());
const result = gpu.createMatrix(16, 16, () => new Float32Array(16 * 16));
gpu.gemmNchw(mat1, mat2, 1, 1, 1, 1, result);
console.log("GPU Multiplication Result:");
console.log(result.toArray());
await gpu.destroy();
}
main();
</script>
</body>
</html>
All versions
1.0.0
1.0.0-rc.10
1.0.0-rc.2
1.0.0-rc.3
1.0.0-rc.4
1.0.0-rc.5
1.0.0-rc.6
1.0.0-rc.7
1.0.0-rc.8
1.0.0-rc.9
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.10.0
1.10.1
1.10.2
1.10.3
1.10.4
1.2.0
1.3.0
1.4.0
1.4.1
1.4.10
1.4.11
1.4.12
1.4.13
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8
1.4.9
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4
1.5.5
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.8.0
1.8.1
1.9.0
1.9.1
2.0.0
2.0.0-rc.1
2.0.0-rc.10
2.0.0-rc.11
2.0.0-rc.12
2.0.0-rc.13
2.0.0-rc.14
2.0.0-rc.15
2.0.0-rc.16
2.0.0-rc.17
2.0.0-rc.18
2.0.0-rc.19
2.0.0-rc.2
2.0.0-rc.20
2.0.0-rc.21
2.0.0-rc.22
2.0.0-rc.23
2.0.0-rc.24
2.0.0-rc.25
2.0.0-rc.26
2.0.0-rc.27
2.0.0-rc.3
2.0.0-rc.4
2.0.0-rc.5
2.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