Performance#

Optional torch.compile of the inner kernels and thread/process budgets for running torchspin on many cores. See also “Running on a workstation” on the torchspin page and the threads section of Pitfalls.

Compilation#

maybe_compile

Conditionally apply torch.compile to a function.

set_compile_enabled

Enable or disable torch.compile for torchspin kernels.

is_compile_available

Return True if torch.compile is available.

Threads and processes#

Thread and process budgets live in the torchspin.parallel submodule.