Skip to content

Reorganise tlr tests docs - #24

Closed
AkhilAkkapelli wants to merge 3 commits into
mxp-correctionsfrom
reorganise-tlr-tests-docs
Closed

AkhilAkkapelli wants to merge 3 commits into
mxp-correctionsfrom
reorganise-tlr-tests-docs

Conversation

@AkhilAkkapelli

Copy link
Copy Markdown
Collaborator

This PR builds on #23 (mxp-corrections) and is opened against that branch, so the diff shows only the new work. Once #23 is merged, the base will be changed to main.

Summary

Three commits, one per area:

  1. Code: src/ reorganised by family, the tile low-rank module added, and fixes for Julia nightly and for mixed precision on the GPU.
  2. Tests: one test environment run with ParallelTestRunner, with the test/ layout mirroring src/.
  3. Docs: README rewritten as the home page, and a full Documenter site.

1. Code (src/, ext/, Project.toml)

New layout. Files were moved, and include paths updated:

src/dense/{core,blas,lapack}   GEMM, TRSM/TRMM, SYRK, AXPY/GERC; Cholesky, LU, QR, rotations
src/mxp/{core,blas,lapack}     NextLA.MixedPrecision containers and routines
src/tlr/{core,blas}            NextLA.TileLowRank (new)
src/streams.jl                 GPU stream helpers

Tile low-rank (NextLA.TileLowRank). This is the TLR work from alecarraro-dev:

  • TLRMatrix and CompressedFTLRMatrix;
  • randomized compression (adaptive range finder) with maxrank / tol / rel;
  • TLR GEMM with dense or compressed accumulation (NextLA.gemm!, NextLA.gemm), with workspace helpers and tile queries (ranks, get_factors, residuals, …);
  • batched SVD on CUDA and AMDGPU in ext/*/svd.jl.

It runs on the CPU and on CUDA arrays. Two fixes on top of the branch:

  • compression no longer produces NaN on the GPU when a tile has zero singular values;
  • the rank truncation was improved, so far fewer tiles stop at maxrank in Float64.

Fixes:

  • Julia nightly: transpose(A) instead of Transpose(A) in the triangular kernels, and rmul! instead of an aliased mul! in larfb!.
  • larfb!: Base.unalias before the in-place multiplies (left-side branch).
  • Mixed-precision containers (SymmMixedPrec, TriMixedPrec, …) can now be built from GPU arrays. Their reconstruct_matrix also works on GPU blocks.

Removed:

  • lauu2! and lauum!, which nothing in src/ called;
  • the unused trapezoidal.jl (tral, trau, the *Trapezoidal types).

These names are no longer exported.

Project.toml:

  • julia = "1.10", raised from 1.9 (CI tests 1.10 and nightly, and ParallelTestRunner needs 1.10);
  • the test dependencies moved to test/Project.toml.

2. Tests (test/)

  • A single test environment (test/Project.toml). Tests are run by ParallelTestRunner, one process per file.
  • Test paths mirror the source (test/dense/blas/syrk/…), with shared helpers in test/setup/.
  • Individual tests can be selected, and the backend chosen with --backends. test/README.md explains how to run all or some of the tests, on the CPU or a GPU:
    julia --project -e 'using Pkg; Pkg.test(test_args=ARGS)' -- dense/blas/syrk
    
  • New tests:
    • every mixed-precision container: inputs, gaps, transposed and tiled forms, blocks;
    • the TLR module (7 files).

3. Documentation (docs/, root .md files)

  • README.md: rewritten (features, why Julia, install, quick start, citing, contributors). It is also the site's Home page, generated from the README so there is a single source.
  • Getting started: installation, plus four tested workflows:
    • dense Cholesky solve;
    • the same solve in mixed precision;
    • tile low-rank compress-and-multiply;
    • all of the above on a GPU.
  • Manual:
    • Backends and GPUs (what runs where, element types);
    • Mixed precision;
    • Tile low-rank;
    • Benchmarks (GB10 results against cuBLAS/cuSOLVER).
  • API reference: organised like src/. Every user-facing docstring has a tested # Examples block, and each page ends with longer usage examples (power-of-two sizes, 1024 and up).
  • Developer documentation: CONTRIBUTING.md (repository layout and modules), Running the tests (from test/README.md), and the TODO.
  • Citing: CITATION.md and CITATION.cff.
  • Assets: handout.png and the HPEC poster moved to docs/src/assets/.
  • Removed:
    • .travis.yml (CI is GitHub Actions);
    • docs/src/mixed_precision.md (replaced by the Manual page);
    • docs/src/index.md, which is now generated by make.jl and git-ignored.

The docs build passes with every doctest.

Testing

  • Julia 1.10.14, 1.13.4 and nightly (1.15.0-DEV), on the CPU and with CUDA (NVIDIA GB10), one thread per test process.

  • Results by area:

    • dense: 36 files, all pass;
    • mixed precision: 13 files, all pass;
    • TLR: 7 files, all pass.

    The runs were made on frozen copies of the tree as each part was finished.

  • A single full run on the final tree of this branch is still to do. I'll post its results here.

Not in this PR

  • Further mixed-precision corrections (lartg fix, threaded-routine synchronisation, src/mxp clean-ups) and the block-scaling variants. They will follow in separate PRs.
  • Known issues found while writing the examples (for example NextLA.trmm above 16 rows, the complex syrk! with 'C', and TLR rank over-estimation in Float32). They are tracked separately.

Credits

The TLR module is by Alessandro Carraro (alecarraro-dev), credited as co-author on the code commit.

AkhilAkkapelli and others added 3 commits November 24, 2026 23:28
…le; fixes for nightly, larfb! aliasing and the mixed-precision containers on the GPU

Co-authored-by: Alessandro <axelcar482@gmail.com>
…r src/, --backends option, tests for the mixed-precision containers and TLR
…ed precision, tile low-rank, benchmarks), API reference organised like src/, CONTRIBUTING, CITATION; move the poster and handout to docs/src/assets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant