Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
5fc5244
mxp: Float32 scales, fixes for wrong results and crashes, and cleanups
AkhilAkkapelli Nov 16, 2026
d345bd7
Reorganise src into dense/, mxp/ and tlr/; add the tile low-rank modu…
AkhilAkkapelli Nov 24, 2026
8459038
Tests: one environment with ParallelTestRunner, test paths that mirro…
AkhilAkkapelli Nov 24, 2026
0db8d98
Docs: README as the home page, Getting started, Manual (backends, mix…
AkhilAkkapelli Nov 24, 2026
2b5fc16
Final source: fixes and tests, TLR removed, docs and a benchmark runner
AkhilAkkapelli Nov 29, 2026
90679eb
Merge main (PR #26: larfb rmul) into mxp-corrections
Nov 29, 2026
2ccdeeb
Docs: Benchmarks page with every point filled in, compared with the W…
AkhilAkkapelli Nov 29, 2026
bc22f12
benchmark/: split run.jl into run.jl, routines.jl and harness.jl
AkhilAkkapelli Nov 29, 2026
55737a0
CI: test job timeout 60 -> 120 minutes
AkhilAkkapelli Nov 29, 2026
0210ff8
Fixes from Testing (B50, C18, Testing C19–C21, T51), CI coverage and …
AkhilAkkapelli Nov 29, 2026
9b87f07
Mixed precision: faster Float64-leaf SYRK update and container build …
AkhilAkkapelli Nov 30, 2026
9b34576
Docs: Benchmarks page from the final mixed-precision comparison with …
AkhilAkkapelli Nov 30, 2026
8048623
Docs: Benchmarks page without the points still being rerun
AkhilAkkapelli Nov 30, 2026
765ad64
Docs: Benchmarks page shows NextLA's mixed-precision routines against…
AkhilAkkapelli Nov 30, 2026
6eea853
CUDA: TRSM/TRMM recurse, direct cuBLAS trsm! in Cholesky, BLAS calls …
AkhilAkkapelli Dec 3, 2026
1091941
Docs: benchmark README names no GPU in the Float64 note
AkhilAkkapelli Dec 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
timeout-minutes: 60 # 1.10 and nightly with coverage take 21-37 min on GitHub runners; Julia 1 runs without it
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
Expand All @@ -24,6 +24,7 @@ jobs:
matrix:
version:
- '1.10'
- '1'
- 'nightly'
os:
- ubuntu-latest
Expand All @@ -38,8 +39,12 @@ jobs:
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
coverage: ${{ matrix.version != '1' }} # coverage on Julia 1.13 makes scalar loops 45-1400x slower; 1.10 and nightly report it
- uses: julia-actions/julia-processcoverage@v1
if: matrix.version != '1'
- uses: codecov/codecov-action@v4
if: matrix.version != '1'
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
*.jl.cov
*.jl.mem
/Manifest.toml
/test/Manifest.toml
/docs/Manifest.toml
/benchmark/Manifest.toml
/docs/build/
/docs/src/citing.md
/docs/src/dev/contributing.md
/docs/src/dev/testing.md
/docs/src/dev/benchmarks.md
/docs/src/index.md
/docs/src/assets/assistant-config.js
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

125 changes: 125 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
cff-version: 1.2.0
message: "If you use NextLA.jl in your research, please cite it as below."
title: "NextLA.jl"
abstract: >-
Hardware-agnostic, datatype-flexible dense linear algebra in pure Julia:
recursive GEMM, TRSM, SYRK, Cholesky and LU, tiled QR kernels, GPU backends
through package extensions, and mixed-precision factorizations.
type: software
license: MIT
repository-code: "https://github.com/NextLinearAlgebra/NextLA.jl"
url: "https://nextlinearalgebra.github.io/NextLA.jl"
keywords:
- julia
- linear algebra
- GPU
- mixed precision
- BLAS
- LAPACK
authors:
- given-names: Rabab
family-names: Alomairy
- given-names: Evelyne
family-names: Ringoot
- given-names: Sophie
family-names: Xuan
- given-names: Vicki
family-names: Carrica
- given-names: Maxwell
family-names: Onyango
- given-names: Julian
family-names: Samaroo
- given-names: Felipe
family-names: Tome
preferred-citation:
type: conference-paper
title: "Synthesizing Numerical Linear Algebra using Julia"
authors:
- given-names: Sophie
family-names: Xuan
- given-names: Evelyne
family-names: Ringoot
- given-names: Rabab
family-names: Alomairy
- given-names: Felipe
family-names: Tome
- given-names: Julian
family-names: Samaroo
- given-names: Alan
family-names: Edelman
collection-title: "2024 IEEE High Performance Extreme Computing Conference (HPEC)"
publisher:
name: IEEE
year: 2024
url: "https://ieee-hpec.org/wp-content/uploads/2025/01/161.pdf"
references:
- type: conference-paper
title: "Toward Portable GPU Performance: Julia Recursive Implementation of TRMM and TRSM"
authors:
- given-names: Vicki
family-names: Carrica
- given-names: Maxwell
family-names: Onyango
- given-names: Rabab
family-names: Alomairy
- given-names: Evelyne
family-names: Ringoot
- given-names: James
family-names: Schloss
- given-names: Alan
family-names: Edelman
collection-title: "Asynchronous Many-Task Systems and Applications (WAMTA)"
publisher:
name: Springer Nature
year: 2025
doi: "10.1007/978-3-031-97196-9_13"
- type: conference-paper
title: "Hierarchical Recursive Precision for Accelerating Symmetric Linear Solves on MXUs"
authors:
- given-names: Vicki
family-names: Carrica
- given-names: Rabab
family-names: Alomairy
- given-names: Evelyne
family-names: Ringoot
- given-names: Alan
family-names: Edelman
collection-title: "Euro-Par 2026: Parallel Processing"
publisher:
name: Springer Nature
start: 451
end: 465
year: 2026
doi: "10.1007/978-3-032-35248-4_31"
- type: conference-paper
title: "Performant Unified GPU Kernels for Portable Singular Value Computation Across Hardware and Precision"
authors:
- given-names: Evelyne
family-names: Ringoot
- given-names: Rabab
family-names: Alomairy
- given-names: Valentin
family-names: Churavy
- given-names: Alan
family-names: Edelman
collection-title: "Proceedings of the 54th International Conference on Parallel Processing (ICPP '25)"
publisher:
name: ACM
year: 2025
doi: "10.1145/3754598.3754667"
- type: conference-paper
title: "Accelerating Bidiagonalization of Banded Matrices through Memory-Aware Bulge-Chasing on GPUs"
authors:
- given-names: Evelyne
family-names: Ringoot
- given-names: Rabab
family-names: Alomairy
- given-names: Alan
family-names: Edelman
collection-title: "ISC High Performance 2026 Research Paper Proceedings (41st International Conference)"
publisher:
name: IEEE
start: 1
end: 14
year: 2026
doi: "10.23919/isc.2026.11520476"
107 changes: 107 additions & 0 deletions CITATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Citing NextLA

If you use NextLA.jl in your research, please cite:

> **[1]** S. Xuan, E. Ringoot, R. Alomairy, F. Tome, J. Samaroo, and A. Edelman, "Synthesizing Numerical
> Linear Algebra using Julia," in *2024 IEEE High Performance Extreme Computing Conference (HPEC)*,
> IEEE, 2024.
>
> Available: <https://ieee-hpec.org/wp-content/uploads/2025/01/161.pdf>

```bibtex
@inproceedings{nextla1,
title={{Synthesizing Numerical Linear Algebra using Julia}},
author={Xuan, Sophie and Ringoot, Evelyne and Alomairy, Rabab and Tome, Felipe and Samaroo, Julian and Edelman, Alan},
booktitle={2024 IEEE High Performance Extreme Computing Conference (HPEC)},
year={2024},
publisher={IEEE},
url={https://ieee-hpec.org/wp-content/uploads/2025/01/161.pdf}
}
```

Poster, IEEE HPEC 2024:

[![Synthesizing Numerical Linear Algebra using Julia, poster](docs/src/assets/ieee_hpec_poster.png)](docs/src/assets/ieee_hpec_poster.pdf)

> **[2]** V. Carrica, M. Onyango, R. Alomairy, E. Ringoot, J. Schloss, and A. Edelman, "Toward Portable
> GPU Performance: Julia Recursive Implementation of TRMM and TRSM," in *Asynchronous Many-Task Systems
> and Applications (WAMTA)*, Springer Nature, 2025.
>
> doi: [10.1007/978-3-031-97196-9_13](https://doi.org/10.1007/978-3-031-97196-9_13)

```bibtex
@inproceedings{nextla2,
title={{Toward Portable GPU Performance: Julia Recursive Implementation of TRMM and TRSM}},
author={Carrica, Vicki and Onyango, Maxwell and Alomairy, Rabab and Ringoot, Evelyne and Schloss, James and Edelman, Alan},
booktitle={Asynchronous Many-Task Systems and Applications (WAMTA)},
year={2025},
publisher={Springer Nature},
doi={10.1007/978-3-031-97196-9_13}
}
```

## Related publications

Work by the NextLA authors on algorithms that NextLA implements.

> **[3]** V. Carrica, R. Alomairy, E. Ringoot, and A. Edelman, "Hierarchical Recursive Precision for
> Accelerating Symmetric Linear Solves on MXUs," in *Euro-Par 2026: Parallel Processing*, Lecture Notes in
> Computer Science, Springer Nature, 2026, pp. 451–465.
>
> doi: [10.1007/978-3-032-35248-4_31](https://doi.org/10.1007/978-3-032-35248-4_31)
>
> Also available as [arXiv:2601.08082](https://arxiv.org/abs/2601.08082)

Poster, WHPC at ISC 2026:

[![Hierarchical Recursive Precision for Accelerating Symmetric Linear Solves on MXUs, poster](docs/src/assets/whpc_isc_poster.png)](docs/src/assets/whpc_isc_poster.pdf)

```bibtex
@inproceedings{carrica2026hierarchical,
title={{Hierarchical Recursive Precision for Accelerating Symmetric Linear Solves on MXUs}},
author={Carrica, Vicki and Alomairy, Rabab and Ringoot, Evelyne and Edelman, Alan},
booktitle={Euro-Par 2026: Parallel Processing},
series={Lecture Notes in Computer Science},
pages={451--465},
year={2026},
publisher={Springer Nature},
doi={10.1007/978-3-032-35248-4_31}
}
```

> **[4]** E. Ringoot, R. Alomairy, V. Churavy, and A. Edelman, "Performant Unified GPU Kernels for
> Portable Singular Value Computation Across Hardware and Precision," in *Proceedings of the 54th
> International Conference on Parallel Processing (ICPP '25)*, ACM, 2025.
>
> doi: [10.1145/3754598.3754667](https://doi.org/10.1145/3754598.3754667)

```bibtex
@inproceedings{ringoot2025performant,
title={{Performant Unified GPU Kernels for Portable Singular Value Computation Across Hardware and Precision}},
author={Ringoot, Evelyne and Alomairy, Rabab and Churavy, Valentin and Edelman, Alan},
booktitle={Proceedings of the 54th International Conference on Parallel Processing (ICPP '25)},
year={2025},
publisher={ACM},
doi={10.1145/3754598.3754667}
}
```

> **[5]** E. Ringoot, R. Alomairy, and A. Edelman, "Accelerating Bidiagonalization of Banded Matrices
> through Memory-Aware Bulge-Chasing on GPUs," in *ISC High Performance 2026 Research Paper Proceedings
> (41st International Conference)*, IEEE, 2026, pp. 1–14.
>
> doi: [10.23919/isc.2026.11520476](https://doi.org/10.23919/isc.2026.11520476)
>
> Also available as [arXiv:2510.12705](https://arxiv.org/abs/2510.12705)

```bibtex
@inproceedings{ringoot2026accelerating,
title={{Accelerating Bidiagonalization of Banded Matrices through Memory-Aware Bulge-Chasing on GPUs}},
author={Ringoot, Evelyne and Alomairy, Rabab and Edelman, Alan},
booktitle={ISC High Performance 2026 Research Paper Proceedings (41st International Conference)},
pages={1--14},
year={2026},
publisher={IEEE},
doi={10.23919/isc.2026.11520476}
}
```
81 changes: 81 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Contributing

Contributions are welcome through pull requests on
[GitHub](https://github.com/NextLinearAlgebra/NextLA.jl).

## Modules

| Module | Folder | Depends on | Loaded with |
|:------------------------|:------------|:----------------------|:--------------------------------|
| `NextLA` | `src/dense` | nothing in the others | `using NextLA` |
| `NextLA.MixedPrecision` | `src/mxp` | `NextLA` | `using NextLA.MixedPrecision` |

`MixedPrecision` is a submodule: it lives inside `NextLA`, can use anything from it through
`..NextLA`, and is not re-exported by it. The dependency runs one way only. Code in `src/dense`
never refers to the submodule, so `NextLA` builds and works with its `include` line removed.

## Repository layout

```
src/
├── NextLA.jl module entry point, includes every feature
├── dense/ dense matrices in one precision
│ ├── core/ NextLAMatrix.jl (wrapper type routing LinearAlgebra calls to NextLA)
│ ├── blas/
│ │ ├── gemm/ GEMM: extended, batched, grouped, recursive
│ │ ├── trsm/ TRSM/TRMM kernels, unified_rectrxm!, batched TRSM
│ │ ├── syrk/ SYRK: dispatch, batched, portable kernel, recursive
│ │ └── axpy.jl, gerc.jl (BLAS level 1 and 2)
│ └── lapack/
│ ├── cholesky/ potrf!, recursive, blocked and batched Cholesky
│ ├── lu/ pivoted LU (lu_pivot.jl), recursive and tiled unpivoted LU
│ ├── qr/ Householder reflectors, tile QR kernels and their PLASMA
│ │ helpers parfb, pamm, pemv (one per file)
│ └── rotations/ Givens rotations
└── mxp/ submodule NextLA.MixedPrecision
├── core/ mxp.jl (module definition), the mixed-precision containers,
│ adaptive precision selection and quantization
├── blas/ gemm/, trsm/, syrk/
└── lapack/ cholesky/, lu/
ext/
├── NextLACUDAExt.jl + ext/cuda/ cuBLAS / cuSOLVER methods
├── NextLAAMDGPUExt.jl + ext/amdgpu/ rocBLAS / rocSOLVER methods
├── NextLAoneAPIExt.jl + ext/oneapi/ oneMKL methods
└── NextLAMetalExt.jl + ext/metal/ MPS methods
test/ mirrors src/ (dense/, mxp/): the test for src/<path>.jl is
test/<path>.jl; shared helpers in test/setup/
docs/ this documentation (Documenter.jl)
```

Each of `dense/` and `mxp/` has the same three folders: `core/` for the types, data
structures and module definition the rest builds on, `blas/` for BLAS-style routines and `lapack/`
for factorizations and LAPACK-style routines. In `dense/`, each routine-group folder has one entry
file named after the folder (`gemm/gemm.jl`, `trsm/trsm.jl`, `qr/qr.jl`, ...) that includes every
other file in it and nothing else. `src/NextLA.jl` includes those entry files and a few single files
(`dense/core/NextLAMatrix.jl`, `dense/blas/axpy.jl`, `dense/blas/gerc.jl`). The submodule is
included as a whole: `src/NextLA.jl` includes `mxp/core/mxp.jl`, which includes its own files from
`core/`, `blas/` and `lapack/`. Exports stay in the file that defines the symbol.

How to run all or some of the tests, on the CPU or a GPU: [`test/README.md`](test/README.md).

## Adding a routine to this repository structure

1. Put the code in the matching folder, for example `src/dense/blas/syrk/`, and include it from that
folder's entry file (`syrk/syrk.jl`). In `mxp/`, include it from `mxp/core/mxp.jl`.
2. Export the new name in the file that defines it.
3. Add its test at the same path under `test/`, for example `test/dense/blas/syrk/<file>.jl`. The
test runner finds it automatically.
4. Give it a docstring with a short `# Examples` block.
5. Add the file to the `Pages = [...]` list of its API page in `docs/src/api/`, for example
`docs/src/api/dense/blas/syrk.md`. API pages show only the files they list, and the documentation
build fails if an exported, documented name appears on no page.
6. For GPU support through a vendor library, add a method for that backend's array type
(`CuArray`, `ROCArray`, `oneArray` or `MtlArray`) in `ext/<backend>/`, one file per routine group
(`ext/cuda/syrk.jl`, `ext/cuda/potrf.jl`, ...), included from `ext/NextLA<Backend>Ext.jl`. Arrays
without such a method use the portable KernelAbstractions code.

## Reporting a bug

Open an [issue](https://github.com/NextLinearAlgebra/NextLA.jl/issues) with a short example that
reproduces the problem and the output of `versioninfo()` and `Pkg.status()`. For a GPU problem, also
include the GPU package's version information, such as `CUDA.versioninfo()`.
Loading
Loading