~/talk

Exploit Parallelism for AI Workloads with WASM and OpenMP

Talkat Cloud Native Wasm Day NA 2023 · on Monday, 2023-11-06· [webassembly, machine-learning]
links:none on file
slides:none on file

Compiles the OpenMP runtime to WebAssembly (wasm32 with wasi-threads), runs binaries in wasmtime, and fixes porting issues like missing pthread_exit, unimplemented common symbols and varargs-induced deadlocks (adds a wasm backtrace to debug). Demonstrates matrix multiply: single-thread 14s → OpenMP 1.7s, larger case 17.6s → transpose+block 7.5s; SIMD flags cut 14s→9s. Shows blocking, OpenMP tile pragmas and SIMD get huge gains (native up to ~2000x vs naive, wasm ~785x); CNN kernel gets ~13.5x (native ~40x).

AI-written summary · about

  1. 0:00AI and WebAssembly intro
  2. 1:05Optimizing OpenMP for WASM
  3. 2:29Threads challenges in WASM
  4. 3:11OpenMP parallel framework
  5. 5:19Compiling OpenMP to WASM
  6. 6:03Problems compiling OpenMP to WASM
  7. 8:57Live demo: matrix multiply
  8. 13:20Matrix multiply performance
  9. 16:26Optimizing cache blocking & vectorization
  10. 18:12Optimizing convolutional networks
  11. 21:02Results and limitations
  12. 22:24Contact & resources
  13. 22:53Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.