3 ms·
Isn't the idea of webassembly to compile native C/C++/Rust/Whatever code to be able to run in the browser? Why not just compile OpenBLAS or another computer nu
by ginko 5y ago
Isn't the idea of webassembly to compile native C/C++/Rust/Whatever code to be able to run in the browser?
Why not just compile OpenBLAS or another computer numerics library like that to WA?
- remus 5y agoI'm by no means an expert but my understanding is that a lot of the performance from libraries like openBLAS comes from targeting specific architectures (e.g. particular instruction sets on a series of processors). You can probably milk some more performance by targeting the web assembly architecture specifically (assuming openBLAS hasn't started doing similar themselves).
- brrrrrm 5y agothat's exactly how TF.js does it: https://github.com/google/XNNPACK/blob/master/src/f32-gemm/MRx2c4-wasmsimd.c.in https://github.com/google/XNNPACK/blob/master/src/f32-gemm/M...