Parallel Execution Model (10)

Runtime probes for the optional acceleration tiers:

getComputePool
The arithmetic functions (add, subtract, multiply, divide, the unary ops of typed/arithmetic.ts, norm, min, max, dot) are synchronous on Float64Array input, as are the trigonometry, bitwise, special-function and distribution overloads. Only the parallel* exports (parallelStat*,…
Syntax
getComputePool(…)
initializePool
The arithmetic functions (add, subtract, multiply, divide, the unary ops of typed/arithmetic.ts, norm, min, max, dot) are synchronous on Float64Array input, as are the trigonometry, bitwise, special-function and distribution overloads. Only the parallel* exports (parallelStat*,…
Syntax
initializePool(…)
initializeSignal
Listed in the export index; see the source for details.
Syntax
initializeSignal(…)
initializeStatistics
Listed in the export index; see the source for details.
Syntax
initializeStatistics(…)
isGpuChainSupported
Type guard: true when every op name in a fused elementwise chain has a GPU kernel (the chain still needs enableGpu() and a large enough input to dispatch)
Syntax
isGpuChainSupported(ops)
Typesstring[]AccelGPU
isWasmLoaded
Whether loadWasm() has loaded the AssemblyScript module; until it has, every call stays on the JS path
Syntax
isWasmLoaded()
TypesnoneAccelWASM
shouldParallelize
parallel — ComputePool may dispatch to worker threads when the typed path passes an op name and length meets that op's DEFAULT_THRESHOLD_BY_OP entry (for example matmul at 4,096 via poolOptions(..., 'matmul')). When the path calls shouldParallelize(n) without an op name, only the…
Syntax
shouldParallelize(…)
terminatePool
The arithmetic functions (add, subtract, multiply, divide, the unary ops of typed/arithmetic.ts, norm, min, max, dot) are synchronous on Float64Array input, as are the trigonometry, bitwise, special-function and distribution overloads. Only the parallel* exports (parallelStat*,…
Syntax
terminatePool(…)
terminateSignal
Listed in the export index; see the source for details.
Syntax
terminateSignal(…)
terminateStatistics
Listed in the export index; see the source for details.
Syntax
terminateStatistics(…)