Is it possible to check if the CPU supports SIMD at runtime? https://github.com/lapce/lapce/issues/1041
One solution that I found is to check the flags
in proc/cpuinfo
but I wonder if there's a better solution?
IMHO, the right solution here is to build fallbacks for CPUs that only have SSE2 -- https://github.com/bytecodealliance/wasmtime/issues/3810 tracks that
We could also build the plumbing in Wasmtime to check this at startup, as you suggest, but IMHO that's a little more surprising: it means that we accept different modules based on some property of the environment that we don't control
Last updated: Nov 22 2024 at 17:03 UTC