Skip to content

Commit 4a569ce

Browse files
committed
GPU: flat defs compile to plain device functions
A def that only matches, binds, builds constructors, calls natives and other flat defs, and calls itself in tail position becomes KX_name: locals in registers, a loop for tail calls, no frames and no trips through the kernel's switch. A numeric leaf loop over 16384 lanes now runs 3.5x faster than on the 12 CPU threads.
1 parent 56628e1 commit 4a569ce

2 files changed

Lines changed: 12223 additions & 10583 deletions

File tree

0 commit comments

Comments
 (0)