Skip to content

tenferro v0.9.0

Choose a tag to compare

@shinaoka shinaoka released this 02 Nov 03:35
· 275 commits to main since this release
4dca4ab

tenferro v0.9.0

v0.9.0 moves the CPU provider stack onto the strided 0.10 / threadteam 0.3
release train, so a fresh consumer resolves tenferro-cpu together with
tcontract 0.9.1 and tlinalg 0.8.1 from one threadteam line without a
committed Cargo.lock. It also retires the graph AD emitter in
tenferro-internal-ops, adds a public CpuEngine::with_exec entry,
n-dimensional FFTs, an in-place CUDA dot operand, and CUDA ownership fixes.

Breaking changes

The CPU stack moves to the threadteam 0.3 train

The provider stack moves to the line that carries threadteam 0.3 and
t4a-faer 0.28. A crate that accepts or passes threadteam::Exec,
threadteam::Pool, faer or strided types across a tenferro boundary
must move to the same line: the two lines resolve as two threadteam versions
and the build fails with expected threadteam::Exec, found strided_basic::Exec.

crate v0.8.0 v0.9.0
threadteam 0.2 0.3
strided-basic, -perm, -kernel, -fused, -nn 0.9 0.10
strided-view, strided-traits 0.7 0.7 (unchanged)
tcontract-exec 0.9.0 0.9.1
cpueinsum, cpueinsum-blas 0.9.0 0.9.1
tlinalg / tlinalg-blas 0.8.0 / 0.5.0 0.8.1 / 0.5.1
faer key (t4a-faer) 0.27 0.28

The strided 0.10 fan-out entries take the threadteam::Exec token as their
last parameter and decide their parallel width from it.
(#2366, background:
#2367)

The graph AD emitter is retired

Retire the unused graph AD emitter in tenferro-internal-ops (library
tenferro_ops): the core ad::linearize, ad::transpose_rule and
ad::transpose_input interfaces are removed. Callers of those interfaces
must use semantic-program AD in tenferro-ad instead. Linalg operations
continue to use their semantic extension rules.

Preserve the primitive-rule vocabulary at its existing tenferro_ops::ad::
paths, including context/shape metadata, support helpers, builder and error
types, transpose-input types and residual declarations. Existing semantic AD
and linalg consumers require no source migration. Core residual-retention
declarations are unchanged; the obsolete function-pointer rule registry is
no longer needed.

See the semantic AD architecture
and #2339.

Improvements

  • CpuEngine::with_exec lends the engine's full-budget Exec for the call
    only, with the engine's broken-engine and retention guarantees, so a
    downstream crate can schedule its own dense work on the caller's engine
    (#2357).
  • N-dimensional FFTs (fftn, ifftn, rfftn, irfftn) over multiple axes,
    with one optional requested length per axis, through the same single
    execution path as the one-axis transforms
    (#2365).
  • Sparse matmul plan construction visits only the entries a left entry pairs
    with instead of every left × right pair, and deduplicates the output
    coordinates once; construction is O(L + R + C log C) instead of
    O(L·R + C·P), with the contribution order unchanged
    (#2332).
  • A complex64 contraction prepared under a budget-one token uses
    FaerLimit::NONE, with the budget class in the plan-cache key, instead of
    tcontract's packed driver (#2324).
  • CUDA dot-general contracts a compact operand where it lies instead of
    staging a fresh compact copy first; only an offset, permuted, broadcast or
    reversed region keeps the copy
    (#2378).

Fixes

  • CUDA einsum materializes ownership copies on the executing engine instead of
    copying through the host (#2363).
  • CUDA copies into high-rank destination views directly
    (#2355), and real dot
    conjugation is accepted across the view rank ceiling
    (#2353).
  • The zero-order (ord = 0) norm counts NaN entries instead of dropping them
    (#2360).
  • AD rejects an absent backward gradient instead of falling through the
    retired semantic switch
    (#2354).
  • Unused XLA layout conversion helpers are removed
    (#2344).

Full comparison: v0.8.0...v0.9.0