jax
29662ec3 - Fetch executable local devices lazily for effect runtime tokens.

Commit
14 days ago
Fetch executable local devices lazily for effect runtime tokens. Creating a replicated execution wrapper previously queried and wrapped every addressable device up front, even though the resulting device list is only used to pass and record runtime tokens for effectful calls and host callbacks. On large meshes, that paid unnecessary per-device Python work under the GIL on the first call of every newly compiled executable. Defer querying the executable's local devices until an execution actually handles runtime tokens, and cache the list on first use. PiperOrigin-RevId: 1026722484
Parents
Loading