import type { MatmulMethod } from './types' // libFLAME's LAPACK-compat dgemm_ backed by BLIS, compiled to WASM. Two // builds: single-threaded and pthreads (needs SharedArrayBuffer, i.e. // crossOriginIsolated). Both run through threadedClient's dedicated worker. export const blisStMatmul: MatmulMethod = { id: 'blis-st', label: 'libFLAME/BLIS (1 thread)', precision: 'f64', threadedKind: 'blis-st', available: () => typeof WebAssembly !== 'undefined', } export const blisMtMatmul: MatmulMethod = { id: 'blis-mt', label: 'libFLAME/BLIS (threaded)', precision: 'f64', threadedKind: 'blis-mt', note: 'WASM threads — needs cross-origin isolation (SharedArrayBuffer)', available: () => typeof WebAssembly !== 'undefined' && globalThis.crossOriginIsolated === true, }