MCPcopy Create free account
hub / github.com/UCSC-VLAA/OpenVision / sync

Function sync

src/helpers/utils.py:756–760  ·  view source on GitHub ↗

Syncs hosts and empties async computation queue.

()

Source from the content-addressed store, hash-verified

754
755
756def sync():
757 """Syncs hosts and empties async computation queue."""
758 x = jnp.ones([jax.local_device_count()])
759 x = jax.device_get(jax.pmap(_sync, "i")(x))
760 assert x[0] == jax.device_count()
761
762
763def check_and_compile_patterns(patterns):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected