WorksComputer Science
Accurate Products, Inaccurate Inverse: Emulated FP64 BLAS in Blocked Triangular Inversion
Abstract
FP64 emulation on integer tensor units now ships in cuBLAS and GEMMul8, and each emulated matrix product can be checked against an accuracy grade. We ask if a routine built from such products inherits their accuracy, and show that blocked triangular inversion, the core of LAPACK's inverse of a symmetric positive definite matrix, does not. Under fixed-precision emulation every product passes the grade-B error bound of Demmel et al., yet the inverse errs at 7.1e-2, against 2.0e-15 natively. The matrices are well conditioned after diagonal scaling, but the scaling spans 64 binades. The cause is one product, T = X22 L21, whose summed index carries both the diagonal scaling and its inverse, which a grade-B bound does not absorb. Computing those products natively restores native accuracy; leaving any one of them emulated does not. The pattern holds on four GPUs, and on real covariance matrices the fixed-precision routes lose up to about four orders of accuracy. Equilibration, a solve-based association and cuBLAS's automatic dynamic precision avoid the loss, and an exact error recurrence audits a completed run. On an RTX 4090 the fastest accurate emulated inversion takes 0.40 of cuSOLVER's time. Where each product's scaling falls decides if per-product accuracy carries over to a composite routine, and that is what builders of emulated libraries need to check.
Introduction
Since CUDA 13, cuBLAS can run DGEMM, TRMM and TRSM on integer tensor units by emulating FP64 arithmetic [1], [2]. A guard, automatic dynamic precision (ADP), estimates per call how many bits a product needs. GEMMul8 offers fixed-precision emulation [3], [4], and emulation has been proposed as a default algorithm for a wide range of applications [5]. Demmel et al. grade each emulated product by the error bound it attains [6]. LAPACK-level libraries such as cuSOLVER, MAGMA and SLATE will call these products, so their accuracy is the accuracy that matters.
A composite routine combines many products. Demmel et al. proved that grade-B products keep tiled Cholesky componentwise accurate. LAPACK’s inverse of a symmetric positive definite matrix has a second half: triangular inversion (TRTRI), then the product of the inverse factor with its transpose (LAUUM). Whether it inherits the products’ accuracy has not been asked.
It does not. On an H100 at , every product of the blocked inversion meets the row-and-column-scaled (B-type) error test with room to spare; the largest ratio, 0.12 of the allowance, is a native product’s. Yet through fixed-precision emulation the inverse is wrong in its second digit: relative error , against for native FP64 on the same well-conditioned input. The cause is not a defective product but which index of a product the diagonal scaling falls on Figure 1.
Figure 1. Every product passes; the inverse does not (H100, ). (a) Worst TRTRI product error over its grade-B bound; (b) the inverse’s error; (c) at , native restores it, native does not, and three repairs restore it with every product emulated.
Users meet such matrices whenever variables carry different units, as covariances do. They use explicit inverses where many inverse entries are needed, as in kriging variances [7]. A covariance with unit factors from to loses accuracy the same way (14 modulo), RTX 4090, : against , Appendix D).
The contributions are four.
Mechanism (Section III): a three-by-three example proving that grade B permits the loss, an exact error recurrence with a posteriori enclosure, and a provably scale-equivariant association.
Diagnosis (Sections V-A, V-B and V-E): on four GPUs and two libraries, every product passes while the inverse fails; a causal test needs every inner-index product.
Repairs and cost (Sections V-C–V-G): three repairs that keep every product emulated, an enclosure that certifies every accurate run, and complete device-resident timings.
Application (Section V-H): the loss reaches cokriging predictions on census data, within a certified bound at the model’s nugget.
Background and Related Work
FP64 emulation and its precision demand
The Ozaki scheme [8], [9] computes an FP64 product on integer units. It scales each row of and each column of by a power of two, so that the largest entry of each has a fixed exponent. It splits the scaled entries into INT8 slices and multiplies slice pairs exactly with integer accumulation on tensor cores. The partial products are summed in FP64. Ozaki-II replaces the slices by residues modulo coprime moduli and reconstructs the product by the Chinese remainder theorem [3]. More slices or moduli buy more bits at more cost.
In both, the bits available to are set relative to , with and the largest entries of row of and column of $|B| [4], [9], [10]. An entry much smaller than loses about bits, its scale excess, so a fixed count suffices only when every entry’s excess is small. Fasi, Mary and Mikaitis bound the fixed-point width needed for a target precision and show that ADP’s bit estimate can be very pessimistic [11]. cuBLAS runs either ADP or FIXED, a set number of bits [2]. ADP estimates the bits a call needs, then emulates with that many bits or dispatches to native DGEMM; its strategy, DEFAULT or EAGER, sets how readily emulation is chosen. GEMMul8 takes the number of moduli . All of this is stated for one product; this paper asks what happens when a routine combines many.
Accuracy grades
Demmel et al. [6] grade a GEMM by the bound it attains:
grade A, componentwise, the bound of classical multiplication;
grade B, , the natural model of row- and column-scaled emulation;
grade C, the normwise bound that suffices for LU and QR [12], [13].
Grade B is invariant under row scaling of and column scaling of , not under scaling of the summed index. This paper uses one normalization, : with the largest ratio of a product’s error to times the grade- right-hand side, the product passes the A-type or B-type test when . Since , the two tests are not nested. The test is stricter than Demmel et al.’s own benchmark threshold . A quantity is certified when a bound with every rounding enclosed proves it.
Blocked triangular inversion and LAUUM
LAPACK inverts a symmetric positive definite by Cholesky (potrf, ), triangular inversion (trtri, ) and LAUUM (), together potri. Recursive blocked TRTRI splits , inverts the diagonal blocks, , and forms
We call the inner-index product and the outer-index product. In Du Croz and Higham’s terms [14], (1) is Method 2B. Method 2C forms and then solves with (the reference dtrtri); Method 1B forms and solves with , . In ordinary arithmetic 1B and 2C keep a componentwise residual bound and 2B does not.
Related work
Mixed-precision solvers are judged by solver-level outcomes, often with iterative refinement as the remedy [15, 16, 17]; LU and HPL on INT8 emulation fail the residual check at too few splits [18]. Block algorithms on fast level-3 BLAS stay normwise backward stable but may lose componentwise accuracy and invariance under power-of-radix scaling [12]. Carson and Ma analyse block LU with an Ozaki trailing update and a row- and column-norm bound [19]; they do not treat inversion or diagonal scaling. Diagonal scaling of a single product’s operands is studied for fast multiplication [20], and equilibration is classical [21], [22]. Known, then, are that operand scaling consumes a fixed-precision product’s bits [9], [11], that equilibration helps, and that the association of a block inversion matters in ordinary arithmetic [14]. To Demmel et al., whose theorem concerns Cholesky, this paper adds a composite in which grade-B products do not suffice. To Du Croz and Higham it adds an exposure of that a diagonal scaling creates and native FP64 does not see. To the single-product evaluations of ADP [1] and the width bounds of Fasi et al. [11] it adds the behaviour inside a complete shipped routine and the cost of each repair.
Why per-product checks do not compose
Where the scaling falls
Let with , , and . Then and . Figure 2 shows which scaling each product’s row, summed and column index carries. In the summed index carries on the columns , so (rows ) and (columns )
Figure 2. Only sums over a scaled index (red); grade B absorbs the scaling on row and column (green).
| product | row | sum | col. | grade-B bound |
| 1 | 1 | error grows with the spread of | ||
| 1 | 1 | absorbed | ||
| LAUUM | 1 | absorbed | ||
| 1B: | 1 | absorbed |
of and on the rows of . itself does not depend on , but a row of or a column of spans as many binades as the exponents in the contracted block. The span is only if both extremes fall in one block, so it depends on the order of the . and LAUUM’s carry on outer indices only; Method 1B forms no product that sums over a scaled index. Native FP64 is unaffected: native inversion by (1) is bit-for-bit scale equivariant in every test here, that is, its computed inverse of equals times its computed inverse of times exactly. The loss needs a product bound that sees the inner scaling.
b) A grade-B bound does not secure the inverse: An admissible evaluation of the recursion returns, for each product, any value whose error meets the stated bound, and evaluates every other operation exactly.
Proposition 1: Let be the lower-triangular matrix of ones, and , split after the first row and column. For every with there is an admissible evaluation of the blocked inverse under grade B in which , while for every .
Proof: , and , so , whose second entry is the cancellation . For it the row maximum of is 1, the column maximum of is and , so meets grade B. With every other operation exact, differs from only in entry , by , and . ▪
With the bound admits a relative error of about , 2,048 at , while grade A admits only on the same entry (Appendix B). The example applies verbatim to Method 2C, since solving with changes nothing. Tiled Cholesky escapes this because the right-hand sides of its grade-B TRSM and SYRK are bounded through the factor’s row norms, at most , which carry the scaling on outer indices [6]. The inversion product has no such protection: its grade-B allowance grows with the spread of the contracted block.
c) How product errors reach the inverse: is the stored factor; and are exact, and the factorization’s error is outside the statement. At a split with column block and row block , write the computed products as , , and let , and the error of leaf ’s inverse. LAUUM returns with output error and , one rounded addition per entry.
Theorem 1. Let the negations and block copies be exact and every addition and halving of the symmetrization finite (round to nearest; underflow allowed).
(a) At every split
and over the splits and leaves , with , , and (a leaf’s block is both and ).
(b) If , , and , then for assembled from the leaves upward by
and .
(c) Let , , and write , (M’s frame). If every meets grade A with , the other products meet grade B, and and do not depend on , then (3) for and the resulting bound on are one function of the run’s , , , and for every power-of-two , except that the absolute term becomes $2^{-1074}dd^T$ ( the diagonal of ). If meets grade B only, carries at most the spread of $D over the contracted block. No error is assumed small, and no exact or high-precision inverse enters: the enclosure is computed from , the computed and , and per-product allowances. Part (c) is the mechanism in one line: grade A on keeps the bound free of , grade B lets it grow with , and Proposition 1 attains that growth. The proof is in Appendix B.
d) An association that keeps the scaling outside: Method 1B forms and solves recursively down to native TRSM leaves, so no product contracts a scale; per split of order it spends flops against the product form’s . Call a GEMM outer-equivariant if exactly for power-of-two diagonal .
Proposition 2. Under hypotheses (i) to (v) of Appendix B, the solve-based inverse of equals times that of times , bit for bit.
Equivariance transports the error with the result; it does not imply accuracy, which is measured. The product form has no such property, and neither has LAPACK’s Method 2C on a
lower factor, which forms the same : on a transparent CPU emulator (8 slices, ) with only that product emulated, its error grows from at to at , as the product form’s does (Appendix § 1.1.4).
Experimental Setup
Table I lists the design. Two implementations run the same split rule and call structure, form every product with and perform each update as a separate operation. The numerical harness takes LAPACK’s host factor, inverts the leaves on the host and sends every GEMM to the device; all accuracy results and grades use it. Grades cover every output entry of every product, against a long-double reference product whose own error is bounded entry by entry (Appendix § 1.1.3). The device-resident implementation factors with cuSOLVER and solves the leaves with cublasDtrsm; all times use it. Each timed route runs from the uploaded matrix to the inverse, including potrf and any equilibration, 10 times interleaved with the other routes in a rotating order, in several sessions per GPU. Its products are not graded; an audit regrades the products of the timed routes on the RTX 4090 and ties the two implementations together (Appendix § 1.1.1). CUBLAS_EMULATION_STRATEGY was unset, so DEFAULT is the library’s own default.
The reference for is , with LAPACK’s inverse of , checked against high-precision inverses (Appendix § 1.1.1). The error of an inverse is ; for the real matrices it is measured in the equilibrated frame ( scaled by on both sides), where the normwise error cannot hide the small-diagonal block. The slope is the number of bits of lost per unit of . Routes are named by their GEMM back end (Table I); “eq.” marks the power-of-two equilibrated input, and unless a row says otherwise every GEMM of the blocked inversion runs on that back end. For a group of matrices a table gives the worst in the group.
| factor | values |
| synthetic inputs | , , standard normal (); uniform on , ; , breadth runs at 16384; seeds 0–4 |
| controls | exponents sorted or in contiguous chunks; , with uniform diagonal; Gaussian-process kernel; unit factors to (diagonal span ) |
| real matrices | 16 SuiteSparse SPD matrices and 8 raw-unit covariances (census, air quality), 1074 to 8190, diagonal spans to |
| application | cokriging, California housing, , nugget |
| GPUs and libraries | FP64-scare: RTX 4090, L40S; FP64-rich: H100, A100. cuBLAS 13.8.1, cuSOLVER 12.3.5, GEMMul8 v3.5.4; ten releases, cuBLAS 13.0 to cuBLAS 13.10, on H100, L40S and A100 |
| GEMM back ends | native FP64 DGEMM; ADP with DEFAULT or EAGER; F55, F79, F111: FIXED with that many bits; , 16, 20: GEMMul8 moduli |
| routes | cuSOLVER potri; blocked product form; hybrids with every or every native; solve-based (Method 1B); each also equilibrated; LAAUM as one GEMM or blocked; leaves of width 256 |
Table I. Experimental design.
Results
Does the inverse fail although every product passes?
Grading every output entry of every TRTRI product of ten routes at three spreads answers this. Every product of every route passes the B-type test (Figure 1(a)), yet the inverses of the fixed-precision routes fail (Figure 1(b)). A product-level check therefore cannot tell these routes from accurate ones. A normwise audit and a reference-free residual agree, so the failure is not an artifact of the grading or the reference (Appendix § 1.1.4).
Is the inner index the cause?
If the mechanism is right, the inner-index products carry the loss and the outer-index products do not. Rerunning 14 moduli and FIXED at with chosen TRTRI products computed by native DGEMM tests this (Figure 1(c)). Computing every natively restores native accuracy, at a cost in speed (Appendix § 12); computing every natively changes nothing, and leaving a single emulated still leaves at least .
Over every replacement plan tested (Appendix § 1.1.4), the 64 that leave seven or more emulated err at or more, and the 10 that compute every natively at or less. Each contributes through its own contracted block, so the repair needs every one of them.
What repairs it?
Anything that moves the scaling off the summed index should repair the inverse. Power-of-two equilibration does: inverting , with the power-of-two diagonal that brings every diagonal entry into , and scaling the result by again removes up to a factor of two per entry, exactly. Every equilibrated fixed route keeps its accuracy at every (Table II). It needs only the diagonal, which every SPD inversion has, and no change to the library.
| input | native | F55 | F55 | ||
| H100 | |||||
| A100 | |||||
| RTX 4090 | |||||
| L40S | |||||
| census | |||||
| SuiteSparse |
Table II. at , (real: L40S, worst per group). Fixed routes fail; equilibration repairs all but BCSS TK23.
The solve-based association repairs the inverse without touching the input. It is bit-for-bit scale equivariant in every tested case, as Proposition 2 predicts, and its error on the raw input never exceeds (Appendix § 1.1.4).
ADP avoids the loss with no change to the input or the algorithm: every guarded route stays within a factor 1.05 of native over every GPU’s synthetic grid. Under DEFAULT the choice depends on the GPU: inside cuSOLVER’s potri it emulates no call on the FP64-rich GPUs and some on the FP64-scarce ones (Appendix § 11).
Why do the repairs work?
Theorem 1(c) names the links: the size of ’s miss of grade A, the spread behind it, and the bits is given. Four measurements test them.
a) The miss on sets the error: At every has a 99th-percentile scale excess of 69.5 to 71.5 bits, against at most 8.7 for , so a fixed budget leaves short and nothing else. The A-type test sees this (Table III): only the fixed routes miss it on , by a factor that grows with , and where that factor is large the inverse’s error follows times it to within about one order of magnitude (Appendix § 1.1.4). The size of the miss, not the miss itself, decides: at the fixed routes miss grade A and still invert accurately.
| route | |||
| native | |||
| EAGER | |||
| F55 | |||
| , eq. | |||
| F55, eq. |
Table III. Only the fixed routes miss the A-type test on by a factor that grows with (H100, ).
b) The spread that matters is per block: Reordering the same exponents changes and nothing else. With the exponents sorted, so that each contracted block spans few binades, 16 moduli give at , , against in random order (contiguous chunks: Appendix § 1.1.4).
c) Equilibration removes the spread: After equilibration the diagonal spans less than a factor of four at every , so no block carries a spread that grows with . The equilibrated routes’ miss on at stays at its size (Table III), and ADP’s estimates on the equilibrated input stay at most 75 bits.
d) ADP gives the bits it consumes: ADP’s estimate tracks (least-squares slope 1.00, Figure 3). Single products with a dialled-in inner-index span show what follows (Figure 4): every output size switches to an FP64 path at about the same estimate, outputs between 103 and 107 bits. That path is not free: it still computes the estimate, and on the H100 it is an FP64 GEMM of the emulation library, so it takes longer than native DGEMM, most on small outputs (Appendix § 11). Each thus gets the bits it needs or runs in FP64, while the outer-index products keep emulating.
Figure 3. ADP’s estimate tracks , so it asks for the bits the inner-index scaling consumes; above the switch the call runs in FP64.
Figure 4. Every output size of a single EAGER product switches path at the same reported estimate (shaded).
Does it hold on other GPUs and on real matrices?
The same grid ran on all four GPUs at , and every route on 24 real SPD matrices (Table II shows two of the three groups). Every route reaches the same error at on every GPU, to two digits, and loses bits at the same rate in : the loss is a property of the arithmetic, not of one chip. It persists at and over seeds. At , 14 and 16 moduli and FIXED 55 all reach about , so their error there is saturated; 20 moduli and FIXED 79 lower it by three to four orders, and FIXED 111 to within a small factor of native (Appendix § 1.1.4).
On the real matrices the raw fixed routes lose most on the census covariances (Table II). ADP brings every matrix within a factor 1.8 of native, and equilibrated 14 moduli every matrix but bcsstk23 within 10. On bcsstk23 the dynamic range within rows survives diagonal scaling ( after equilibration), equilibrated 14 moduli stay 108 times native, and the guarded and solve-based routes are the repairs to use (Appendix § 1.1.4).
In every one of the 9 tested cuBLAS releases with FP64 emulation (cuBLAS 13.0 has none), the guarded routes stay at native level and the fixed routes fail. cuSOLVER’s own potri, set to FIXED 55 through its emulation control, fails the same way, at , and in the pinned release equilibration repairs it, so the shipped routine shows the loss under the same setting.
What does the enclosure certify?
Can a run be audited without a reference inverse? Theorem 1 is evaluated on each run’s own operands, with every product’s error bounded by its graded ratios and every rounding enclosed. It gives a certified bound on the error relative to for the stored , and a run is certified when that bound is below 1. On every GPU and size run it certifies at least 26 of the 30 route–spread pairs (Table IV); on the H100 at these are all 21 accurate pairs and 5 moderately failing ones, with no bound only for the runs with the largest errors. The bound exceeds the measured error by one to five orders of magnitude, more at larger , as worst-case bounds do. The enclosure is therefore a usable audit of a completed run, needing neither a reference inverse nor more precision than the run itself (Appendix C).
| GPU | |||
| H100 | 27 | 26 | – |
| A100 | 27 | 26 | 26 |
| RTX 4090 | 27 | 26 | 26 |
| L40S | 27 | 26 | 26 |
Table IV. The enclosure certifies every accurate pair (route–spread pairs certified, of 30; –: not run).
The evaluator itself was checked in exact arithmetic, against an independent second evaluator and by rebuilding stored runs on a CPU (Appendix C).
What does accuracy cost?
Is an accurate emulated inversion faster than native? Comparing complete device-resident routes that differ in one factor answers this (Table V, blocked LAUUM throughout; rows 2 and 3 multiply to row 4). Equilibration is nearly free, which makes it the cheapest repair. Where FP64 is scarce, emulation pays: 16 moduli take 0.30 of native’s time on the RTX 4090, more than recovering the blocked algorithm’s deficit against cuSOLVER, so the emulated route takes 0.40 of cuSOLVER’s time. On the H100 the emulated route’s gain over cuSOLVER (0.64) comes from the blocked algorithm, not from emulation: native blocked inversion alone takes 0.44 of cuSOLVER’s time, and native FP64 is fastest. Absolute times, transfers, workspace and the cost of the other repairs are in Appendix F.
| time ratio | FP64-rich H100 | FP64-rich A100 | FP64-scarce RTX 4090 | FP64-scarce L40S |
| native: equilibrated vs raw | 1.06 | 1.05 | 1.01 | 1.01 |
| native, eq., vs cuSOLVER | 0.44 | 0.69 | 1.31 | 1.29 |
| native, both eq. | 1.46 | 1.26 | 0.30 | 0.30 |
| , eq., vs cuSOLVER | 0.64 | 0.88 | 0.40 | 0.39 |
Table V. Time ratios (, ): emulation wins where FP64 is scarce, the blocked algorithm where it is plentiful.
Does the loss reach an application?
Does a loss in the inverse reach a quantity a user reads? Cokriging predicts one spatial variable from several correlated ones and uses the inverse covariance for every prediction
and its variance [7]. Five variables of the California housing data [23], in the units of the file, give a covariance whose diagonal spans many binades, with a squared-exponential kernel on location. The nugget is the model, a sensitivity case and a stress case. The measure is the RMS distance of held-out predictions from a certified long-double reference, as a fraction of the predictor’s own held-out RMSE (Appendix G).
The weakest fixed routes move predictions 120 to 33,000 times as far from the reference as native cuSOLVER does, over both sizes and all three nuggets (Table VI shows ). ADP stays at native level, and equilibration stays within a small factor of it. The loss is damped, because each prediction sees the inverse’s error only through a projection onto its covariance vector, and the realised share of the worst case falls as the inverse’s error grows (Appendix G). At the model’s nugget a certified bound keeps the loss below of the prediction error. An application with a smaller nugget, or one that reads the inverse’s entries directly, as kriging variances do, sees more of it.
| route | |||
| native, cuSOLVER | |||
| EAGER, cuSOLVER | |||
| F55 | |||
| , eq. | |||
| F55, eq. | |||
| certified bound, worst fixed | — |
Table VI. Raw fixed routes move cokriging predictions; equilibration and ADP do not (H100, ).
Lessons and limits
a) For library builders: Three rules follow. Check, for each product of a composite routine, which index its operand scaling falls on, not only how large its error is. Prefer associations that keep the scaling on outer indices, such as Method 1B, or equilibrate before emulated products. LAPACK’s reference dtrtri already does so for an upper factor: its upper branch on is the transpose of Method 1B on , and in the emulator model of Section III it is bit-for-bit scale equivariant at every (5 of 5), with errors at most , while its lower branch is Method 2C. Rely on a per-call guard such as ADP only where its estimate sees the scale excess, as it does here. A guard that looked only at the outer scaling of each product, or a fixed bit budget tuned on well-scaled inputs, would pass every per-product test and still fail here.
b) Limitations: All four GPUs are NVIDIA’s; Blackwell GPUs were not available to us, and cuBLAS’s ADP is the only shipped emulation guard we know of. Equilibration repairs FIXED 55 to native level only from cuBLAS 13.7 (13.8 on the H100). The closed libraries do not document Proposition 2’s hypotheses; they are checked on outputs only. A precision selector built on the enclosure is future work. The application uses one dataset and one covariance family.
Conclusion
Per-product accuracy grades do not compose for blocked triangular inversion, because its product form contracts the diagonal scaling along the inner index of one product. Moving the scaling off that index, or giving the product the bits it consumes, restores accuracy, and where FP64 is scarce the accurate emulated inversion still beats cuSOLVER.
Data Availability
An anonymized artifact holds the harness, the retained run records and the scripts behind each number, table and figure, and supplementary_tables.pdf with every table in full and the verification record: https://figshare.com/s/bb220965206030883d9e (sha256 c68e11946d3fe33f51c8006806922fb05c084ea3b758ac3517e47bb4f53fc76f; the separate witness archives are listed in its README).
Use of Generative AI
Claude Code (Anthropic; Claude Opus 5.5) assisted with writing experiment code and drafting and revising the text; the authors reviewed and revised all of it, and every number in the paper is generated from the result files by a script. ChatGPT (OpenAI; GPT-5.6 Sol) was used for critique of drafts.
Appendix A: Setup and Evidence
a) Platforms and libraries: All four GPUs run the same pinned Python wheels (nvidia-cublas 13.8.1.7, nvidia-cusolver 12.3.5.3, cudart 13.4.92); the H100 also runs a CUDA 13.2 module’s libraries. Drivers, clocks, power limits and NumPy and SciPy versions are in the supplement (supplementary_tables.pdf in the artifact). GEM-Mul8 v3.5.4 uses its INT8 back end with accurate scaling for moduli. Host LAPACK is OpenBLAS from the PyPI wheels, which a harness test checks to be bit-for-bit scale equivariant on every job.
b) Routes: cuSOLVER potri runs on LAPACK’s factor natively, under ADP with DEFAULT and with EAGER, and EAGER on the equilibrated factor. A blocked TRTRI and LAUUM route every GEMM through one back end. Recursion halves down to 256-wide leaves. LAUUM is either one GEMM, whose operands are both triangular, or blocked by the same recursion, which leaves no product with zero triangles on both operands; every route uses the single GEMM unless marked “blocked LAUUM”. Hybrid routes compute every , or every , by native DGEMM. The solve-based routes use the association of Proposition 2. Both implementations use the lower triangle, as do the cuSOLVER routes, and perform each update and negation as a separate operation (NumPy; cublasDgeam).
c) Inputs: The scaled class is with for with independent standard normal entries and uniform on . Seed 0 covers the grid of Table I at ; seeds 1 to 4 repeat at and at ; the breadth runs add . Ordering controls reorder the same exponents. The mixed-units class scales the rows and columns of by unit factors between and , not powers of two; its diagonal spans , about .
d) Reference and metrics: The reference is scale-consistent with the input. Against inverses computed with 60 decimal digits for and , it is within normwise and componentwise, as is LAPACK’s own inverse of . Elsewhere the reference is LAPACK’s inverse of . is the symmetric computed inverse. A reference-free check is the scaled inverse residual: with , exact for power-of-two , it is , formed by native DGEMM on the device for every full route.
e) Timing: Full routes run on the device from the uploaded matrix to the inverse: cuSOLVER’s potrf (native), any power-of-two equilibration by cublasDdgmm, the inversion and any rescaling. Each route is also timed with the upload of and the download of the inverse from pageable host memory inside the clock. Device memory is sampled while each route runs once in a fresh process. The H100 ran 3 independent sessions (separate jobs, , ), and an earlier session gives a further one for the routes it shares; the RTX 4090 ran 3 sessions at only. The bit-count pointer is not installed in timing runs.
f) The implementation audit: Table VII states what each kind of evidence covers. On the RTX 4090 (, ) every TRTRI product of 11 device-resident routes was copied back after its call, which leaves bit-identical, and graded with the harness’s code: the largest is 0.11 on the device (harness: 0.12), and at the largest on for 14 moduli is (harness: ). TRSM leaves run natively: on handles carrying DEFAULT, EAGER or FIXED 55 a leaf TRSM issues its internal products with the native compute type (4 of 4 configurations) and
| evidence | executions and coverage | routes |
| product grades | harness, , H100: every output entry of every TRTRI product; LAUUM on one sampled block per run | |
| full-output grades and enclosure | harness, , both GPUs, 30 route–spread pairs and 4 hybrids: every output entry of every TRTRI and LAUUM product; certificate from those grades | 7 / 4 |
| other inverse errors | harness, all GPUs and sizes: only | |
| device audit | device-resident, RTX 4090: TRTRI products of 11 routes at , | 0 / 5 |
| captured timed execution | device-resident, , : every product of the timed execution copied back and graded; decisive routes also traced call by call | 3 / 4 |
| timing | device-resident, , all GPUs: time, and residual; products not graded | 9 / 7 |
Table VII. Evidence coverage. Routes: timed routes whose strongest link it is (H100 / RTX 4090).
launches exactly native’s kernels (3 of 3). The operations Proposition 2 assumes were tested through their observable input/output equivariance, bit for bit, at , . Hypothesis (i) held on every product of the solve-based route for every binary (224 of 224), while inner scaling changed every emulated product (0 of 160 unchanged).
A paired audit ties a failing timed route to its repair on each GPU (, ): FIXED 55 and equilibrated FIXED 55 (one-GEMM LAUUM) on the H100, 14 moduli and equilibrated 14 moduli on the RTX 4090, with every product of the timed execution captured and graded on its full output. LAUUM’s product meets on all four routes, and the failing routes’ products miss grade A by up to (H100) and (RTX 4090), with inverse errors and against and repaired: the loss sits in the products of the timed execution, as in the harness.
The four decisive routes on each GPU were rerun in separate jobs with every kernel of every GEMM call traced: in 5610 of 5610 traced calls on the RTX 4090 and 3740 of 3740 on the H100 the kernel sequence equals that of the captured execution, and every returned inverse of a route is equal across untraced, timed, traced and captured runs. The supplement gives the full audit and the per-route evidence matrix.
g) A leftover setting: cuBLAS keeps the maximum mantissa bit count of a FIXED configuration on the handle after the setting returns to ADP, and the harness, which uses one handle per process, did not restore it. A dynamic route that followed a FIXED route in the same process therefore ran under a cap of 55 or 79 bits: EAGER at , on the H100 has an enclosure of in a fresh process and after FIXED 55. The harness now restores and asserts the default at every emulated call and records the effective cap per route. Every set from which a printed number of a dynamic route comes was rerun, and the artifact’s provenance check fails if a printed number comes from a capped row. The reruns brought EAGER’s grades at and 64 to their level at and moved errors in the last printed digit at most; the superseded records and the rerun list are in the artifact.
Theory in Full
a) Proposition 1: what the bounds admit: With this paper’s the bound admits up to ; at already gives . Grade A admits at most with on the same entry, and , which bounds classical triangular inversion [14], [24], is for every ; a script checks all of this in exact rationals for from to . The proposition concerns what the bound permits, not any library, and the error of ; the measurements below concern , which the perturbation reaches at the same order.
b) Proof of Theorem 1: The remainder of (a) beyond first order is . Part (c) claims nothing about how the frame quantities vary with for a given implementation.
Proof: (a) and ; substituting and gives (2). Trivially , and by (2) and on each node the block of is (the identity below). (b) Take absolute values in (2), by induction from the leaves, and in , where (not , unless it is symmetric) and the rounding of the symmetrization satisfies entrywise: the addition errs by at most a relative and is exact if its result is subnormal, and the halving errs by at most . (c) Substitute and : every cancels, for instance and . Under grade B on the allowance is with and over , at most times its value at .
(2) is the forward-error counterpart of Du Croz and Higham’s residual analysis of Method 2B, kept exact and with arbitrary product errors. Appendix C evaluates a sharper form of (b) that keeps and . Three limits of (c) matter. What is free of is the enclosure of the frame error as a function of the frame’s computed quantities; these lie within and of the -free and , so the enclosure is independent of to first order in the allowances. The unscaled normwise weights the entries by and has no such property. And the condition is sufficient, not necessary; Proposition 1 attains the growth, so under grade B alone cannot be removed.
The identity. Fix a node of the recursion with contiguous index set . and are lower triangular, so the block of involves only indices in and equals . Expanding with gives , which is (2) and, with once more, . Every strictly lower entry lies in the block of exactly one split and every other entry of the lower triangle of one leaf, where the block of is .
Hence . Both identities are polynomial; a script checks (2) symbolically and both as exact rational equalities on 66 random cases.
The bound that is evaluated. and . With and from (3),
and , so that
the last two terms covering the rounding of the symmetrization, as in Theorem 1(b). Without the absolute term the bound is false: for , and an output error with off-diagonal entries $2\alpha$ and , , the halving rounds to , which exceeds ; the self-tests check this example. The evaluator enters the absolute term raised to its floor , a larger and therefore valid allowance. The symmetrization of the allowance matters: for and , has the entry in position $(2,1), where the envelope is zero. The allowance used here, with the column maxima of and one pair of ratios for the whole product, is symmetric in exact arithmetic; the code nevertheless replaces whatever allowance it is given by and asserts the result symmetric (largest relative asymmetry of the computed allowance before that step: 0). The terms of first order in the allowances keep and formed before the absolute value, with the run’s in place of the exact inverse; enters at second order only.
Leaves. With and , gives . The residual is formed in long double and includes its rounding, ; in the runs below .
c) Proposition 2 in full: In Method 1B each update forms by GEMM with and then subtracts, , as a separate operation; the leaves are native TRSM of width . The full statement: Run the solve-based recursion on and on , a power-of-two diagonal, with the same partition and the same sequence of operations, in one binary floating-point format and rounding mode [25] (binary64, round to nearest, in the tested libraries) with no trap or flag altering control flow, the entries of and being exact. Assume in both runs that (i) every product is computed by an outer-equivalent ; (ii) each update and each negation is one IEEE operation per entry, neither fused nor contracted with the product it follows nor reassociated; (iii) the leaves are equivalent: the inversion returns for , and the solve returns for ... power-of-two diagonal; (iv) every routine is deterministic and takes the same computational path in both runs, with the same order of operations inside every reduction, and no operation, intermediate ones and the symmetrization included, overflows, underflows, returns a subnormal or raises another exception. Then bit for bit, and LAUUM on with symmetrization returns . If also (v) the computed Cholesky factor of is times that of , the computed inverse of is times that of times , bit for bit ( equal).
Proof. By induction on the recursion; the leaves are (iii). If , then by (i). In the solve, a leaf maps to by (iii); an update forms , and a correctly rounded subtraction or negation of operands sharing power-of-two factors returns the factors times the unscaled result under (ii) and (iv), so . LAUUM’s carries on outer indices only, and commutes with the scaling. (v) closes the pipeline.
(i), (iii), (iv) and (v) are properties of library routines that no documentation guarantees; Appendix A checks them on outputs, bit for bit, which is evidence for the tested versions, configurations and inputs and not a guarantee for others. Under equivariance , so every entry’s relative error, and the error measured in ’s frame, equal those of ’s inversion, whatever ; the normwise need not be constant: for , an error in ’s inverse and , it rises from to nearly . The product form has no such property, because outer equivariance says nothing about a scaling shared along the contracted index. In the emulator run of Section III the solve with is native, and with native products both Method 2C and the product form are bit-for-bit scale equivariant and accurate (10 of 10 runs).
d) The triangle: LAPACK here means the reference dtrtri, characterized by its source-level association; nothing is claimed about vendor implementations, which were not inspected. For both values of uplo, the reference dtrtri multiplies the already inverted block into the triangle’s off-diagonal block (DTRMM) and then solves with the diagonal block (DTRSM), contracting the triangle’s row index; it never calls DGEMM, so it is exposed only where those two routines are themselves emulated. The lower factor carries on its rows, the upper factor on its columns. Section VI states the upper branch’s result in the emulator model of Section III, with the triangular product emulated and the solve and the leaves native; it is a statement about the reference association in that model. It does not make uplo = 'U' a repair: the contracted index also depends on how a library forms its triangular products and solves and how it inverts its diagonal blocks, and a left triangular solve against the identity, for instance, contracts the triangle’s column index, which is the scaled one for . Compiled LAPACK and cuSOLVER with the upper triangle were not measured in this paper.
e) A first-order counterfactual: Before the enclosure, the first-order terms were evaluated with LAPACK’s binary64 inverse in place of the exact one, and the H100’s graded ratios (LAUUM’s from its sampled block). That value is not a bound. It exceeds the measured in 30 of 30 pairs, by 23 to 9,880 times. Assigning native DGEMM’s graded ratios to the products that a replacement plan computes natively, without rerunning, it is, over 38 plans, at most for every plan measured at native level and at least for every other; for 14 moduli at it falls from to with every native and stays at with every native. This orders replacement plans without running them; it certifies nothing.
Grading and certification
Grading and certification
a) Grading: Table VIII grades the blocked inversion’s products at : all 900 TRTRI products over all routes and , on every output entry, and LAUUM’s product on one randomly sampled output block per run (30 blocks). The reference is a sequential x87 long-double product, whose error the next paragraph bounds by . The grading therefore bounds the true ratio entry by entry, , and from above and below; an independent outward-rounded script recomputes these bounds to within . No classification depends on the reference’s own error (0 grade-B and 0 grade-A verdicts change), nor on doubling the allowance to (0 and 0). Maximized over all ten routes, all three and every graded entry, is at most 0.052 on the 450 products , 0.12 on the 450 products and 0.019 on the 30 sampled LAUUM blocks. A second run grades every output entry of every product, LAUUM’s product included, with the doubled allowance: is at most 0.053, 0.12 and 0.033 on the H100 and 0.05, 0.11 and 0.032 on the RTX 4090 (0 and 0 products fail). The ratios are rounded outward at every step in long double, the conversion to binary64 included, so a stored ratio bounds the true one. The ratios are taken over every graded output entry, zeros included; an entry whose right-hand side is zero counts as 0 if its error is zero and fails otherwise.
| route | , all | : on | : | : enclosure | : on | : | : enclosure | : on | : | : enclosure |
| native | ||||||||||
| DEFAULT | ||||||||||
| EAGER | ||||||||||
| n.r.b. | ||||||||||
| n.r.b. | ||||||||||
| n.r.b. | ||||||||||
| F55 | n.r.b. | |||||||||
| F79 | ||||||||||
| , eq. | ||||||||||
| F55, eq. | ||||||||||
| , native | ||||||||||
| , native | n.r.b. | |||||||||
| F55, native | ||||||||||
| F55, native | n.r.b. |
Table VIII. Grades of the TRTRI products, the inverse’s error and the certified enclosure of (H100, ). On , throughout. N.R.B.: no relative bound.
b) The reference’s rounding model: The reference is NumPy’s long-double matrix product, which has no BLAS behind it: a compiled loop that, per entry, adds the products one by one to a sum that starts at zero. On x86-64 the type is the 80-bit x87 format, whose multiply and add each round once to a 64-bit significand, and x87 has no fused multiply-add, so no contraction is possible. A term’s relative perturbation is therefore a product of at most factors , (one for its product, at most for the additions after it), and the error is at most [24 Section 3.1], negligible in units (at most ) but not, for generic operands, in units at large : the standard bound for rounded products followed by rounded additions is already , in any order of summation, and a fused accumulation has the same bound. A script compares the library product bit for bit with that explicit sequence in long-double scalars and with a correctly rounded fused accumulation built in rationals: 540 of 540 entries equal the former, and the two models differ on 219 of them; the largest error is 0.37 of . The model depends on the platform and the build: the type must be the x87 80-bit format, the loop must not be vectorized, reassociated or evaluated in a wider or narrower precision, and the x87 precision control must be at its 64-bit default. The grading code stops unless the type has a 64-bit significand, and each full-output job first runs the bitwise comparison on its own host and build and stops, grading nothing, if a single entry differs (18 jobs on 8 hosts, 9,720 of 9,720 entries equal). On a platform where long double is binary64 or binary128, grading therefore fails closed.
c) The componentwise error: The componentwise error is over the entries whose scaled value exceeds of the largest, so that no entry below roundoff in its own scale, and no zero, enters. On a transparent CPU Ozaki-I emulator (7-bit slices, exact integer slice products, ) the largest TRTRI rises from 8 at to 67 at , the scaling term carrying the rise.
d) The certificate: Each product’s error is bounded entrywise by with its own graded ratios, so the bound of Appendix § 1.1.2 can be evaluated on a run’s own operands: the factor the route was given and its computed leaves, products and inverse, with the leaves’ errors enclosed from their residuals. The evaluator runs in binary64, round to nearest. It returns a certificate only if every operation was evaluated under the assumptions of the error bound used for it; otherwise it refuses and returns no number.
Invariant. Every nonnegative matrix it forms is checked and normalized before further use: it refuses on an entry that is NaN, infinite, negative or above , and raises nonzero entries below to , which is sound because every bound is monotone in each nonnegative operand. Signed inputs must lie in , so no multiplication inside a matrix product underflows and nothing overflows.
Enlarged operations. Every product and sum of nonnegative operands is multiplied by a factor that covers its rounding for any summation order, with or without fused operations [24]; an absolute product is enclosed by plus ; the allowance carries a margin of .
Steps. (1) leaf bounds from long-double residuals, refused unless ; (2) splits, children first, by (3); (3) the sum over splits and leaves of the sharper form above; (4) LAAUM’s allowance, symmetrized, with the rounding of the symmetrization; (5) the two Frobenius norms, and in the route’s output scaling , and formed as an exact sum of exact squares with a directed square root; (6) in exact rationals.
The status is certified when that quotient is below 1, no relative bound when , and refused on any failed check. By the invariant every enlargement is applied to an operation that satisfies the standard model, so by induction every normalized matrix dominates the exact quantity it stands for; steps 5 and 6 add no rounding. The claim rests on IEEE binary64 arithmetic in the BLAS and NumPy with conventional products, on the x87 model of the grading reference, and on the route forming its products from the operands the harness passes it; the residual argument of step 1 is the standard one of verification methods [26]. The supplement gives the evaluator operation by operation, a reference procedure and test vectors.
e) How the evaluator was checked: In exact rationals, on 66 random triangular systems with diagonal spreads up to and product errors up to 0.2 of the grade-B right-hand side, the evaluated bounds dominate and entrywise in every case (66 of 66). On a CPU Ozaki-I emulator (7 cases) the bounds dominate in every case and exceed the actual error by 40 to 402 times. Adversarial tests inject a NaN, an infinity or a negative value into each of the 150 intermediates (444 injections, every one refused), and both evaluators pass every one of 94 test vectors with exact expected outcomes (0 misses). An independent second evaluator, sharing no code, agrees in status and bound on 34 of 34 pairs on the H100 and 34 of 34 on the RTX 4090 (largest relative difference ). At the operands of 42 runs on the H100 and 42 on the RTX 4090 were stored and every bound recomputed in exact integer arithmetic: the exact bound dominates the true error entrywise, and the evaluator’s status equals the exact one (42 and 42 runs without a discrepancy). Five runs and six drawn by a preselected rule were rerun with every GPU output stored and rebuilt on a CPU from those outputs alone: 6 of 6 drawn runs and all five witnesses reproduced their status and bound bit for bit, and on an independent x86-64 host 5 of 5 witness statuses reproduced. A preflight on the evaluating host (6 checks) gates every certificate. The archives, their sha256 values and the selection rules are in the artifact’s README and the supplement.
f) Results: Table VIII lists the enclosure for every H100 pair. No pair was refused and none has a finite relative bound of 1 or more: the 4 pairs without a certificate all fail the denominator test, with from 1.3 to on the H100. In ’s frame the native route’s enclosure is , and at , 32 and 64. The first-order part alone, with no leaves, no and no rounding terms, is within 1.8% of the enclosure wherever the enclosure is below ; the leaves contribute at most . Above that threshold the matrix , which takes absolute values at every level of the recursion, makes the second-order terms dominate: FIXED 79 at is certified at 272% above its first-order part, and 20 moduli at , whose first-order part is below 1, has no relative bound.
Results in Full
a) Grades and enclosure: Table VIII gives all ten routes at three spreads; grading every entry of LAAUM too gives a B-type ratio of at most 0.12; native and ADP products meet at every . Over the 9 route–spread pairs whose worst A-type ratio over the TRTRI products exceeds 100, the inverse’s error is 0.11 to 18 times times that ratio. With every native the enclosure is at most ; with every native there is no relative bound.
b) Four GPUs: Table IX gives every route on the four GPUs and at . The bits lost per unit of range from 0.76 for 14 moduli to 0.96 for FIXED 79, and the onset is consistent with the single-product analysis [11]; more bits lower the error, FIXED 111 to within a small factor of native at . The slopes on the H100 differ from the RTX 4090’s by at most bits per unit of , and over seeds 0 to 4 at by at most 0.01 (H100) and 0.01 (RTX 4090). Seeds 1 to 4 at , give to for 14 moduli and to for equilibrated FIXED 55 on the H100; the other GPUs are alike (supplement). In contiguous chunks of exponents 16 moduli give , and EAGER stays at native accuracy sorted and in chunks (, ).
| route | slope | H100 | A100 | RTX 4090 | L40S | units | |
| native | 0.00 | ||||||
| 0.76 | |||||||
| 0.87 | |||||||
| 0.96 | |||||||
| F55 | 0.81 | ||||||
| F79 | 0.96 | ||||||
| F111 | 0.00 | – | |||||
| , eq. | 0.00 | ||||||
| , eq. | 0.00 | – | |||||
| F55, eq. | 0.00 | ||||||
| F79, eq. | 0.00 | – | |||||
| ADP |
Table IX. at , , on four GPUs, and at (H100). Slope: H100; units: mixed units (RTX 4090); ADP: worst guarded / native ratio over each GPU’s grid.
Two further checks agree. A normwise audit of grade-C type passes on every TRTRI product at , \lVert C - C_h\rVert_F \leq \beta u\lVert A\rVert_F\lVert B\rVert_F$ with against the host’s DGEMM, whose bound is about ). The scaled residual, which needs no reference, separates the routes exactly as does: at most $5.9 \times 10^{-17}$ for every accurate full route and at least for every failing one on the H100 ( and on the RTX 4090). Bit-for-bit scale equivariance is a reference-free symptom: native routes passed all 30 checks on each GPU; every raw fixed route with failed on the RTX 4090, and all but 1 (route, input) pair on the H100. EAGER routes failed too (all 15 cases with ) while accurate, so a failure flags a changed path, not an error.
Where the difficulty is conditioning rather than scaling, emulation tracks native. With , potrf followed by potri differs from LAPACK by natively and under EAGER on the RTX 4090 ( and on the H100), a factor-level difference of order ; the Gaussian-process kernel gives both ways. On the H100’s second version, cuBLAS 13.3.0 and cuSOLVER 12.1.0, every cuSOLVER error is within 1% of the pinned version’s.
c) Replacement and re-association: Table X extends Figure 1(c) with , LAUUM and the 16 products of largest and smallest excess. Leaving any single emulated, with all others native, still gives or worse at . On a transparent CPU emulator (, 8 slices) the solve-based inverse of is bit-for-bit times its inverse of times at every tested (5 of 5), with errors from to where the product form reaches . Through the harness at and from 16 to 64 it is bit-for-bit scale equivariant in 8 of 8 cases with 14 moduli and 8 of 8 with FIXED 55 on the H100, likewise on the RTX 4090 (8 and 8 of 8), and so is every complete device pipeline from cuSOLVER’s potrf (5 of 5; product form: 0 of 2). On the H100 its error on the raw input never exceeds and , where the product form reaches ; on mixed units it stays at most .
| computed natively | GEMMul8 , | GEMMul8 , | FIXED 55 | FIXED 55 |
| none | ||||
| LAAUM | ||||
| every | ||||
| bottom 16 | ||||
| top 16 | ||||
| every but one | ||||
| every |
Table X. with chosen products native (H100, ). Top/bottom 16: largest/smallest scale excess.
d) Real matrices and library versions: The 16 SuiteSparse matrices are those with and diagonal span at least that the NIST Matrix Market mirrors, chosen by a rule fixed before any matrix was seen; the covariances use the 1990 California census (seven variables) and the UCI air-quality data (twelve), in raw units. Table XI gives the group maxima. Equilibrated FIXED 55 stays within a factor 2.2 of native on every matrix. Equilibrated 16 moduli stay within a factor 1.0 of native on every matrix; equilibrated 14 moduli stay 138 times native on bcsstk23 on the A100 and at most 10 times on every other matrix (9 on the A100). Over the 9 releases the guarded routes’ largest factor over native is 1.01 on the L40S, 1.00 on the A100 and 1.00 on the H100. Equilibrated FIXED 55 reaches native level from cuBLAS 13.7 (2.9 × 10⁻¹⁶ on the L40S) and stops at before it; on the H100 the change arrives in 13.8 ( under 13.7, under 13.8). cuSOLVER’s potri under its own FIXED control gives , and with 55, 79 and 111 bits on the L40S and with 55 on the RTX 4090; equilibrated, . The supplement gives every matrix and every release.
| matrices | span | native | ADP | F55 | F55 | , A100 | |||
| census (4) | 32 | ||||||||
| air (4) | 20 | ||||||||
| SuiteSparse (16) | 23–44 | ||||||||
| bcsstk23 | 35 |
Table XI. Real SPD matrices: largest error per group in the equilibrated frame (L40S; last column A100). Span: of the diagonal span. ADP: cuSOLVER EAGER.
The guard: estimates, switch and default
a) An explanatory proxy: For with and , , as in Section II, the excess is the sum of , the ratio of the grade-B to the grade-A right-hand side, and , ordinary cancellation. The harness records its 99th percentile and maximum per product. It needs the product, so it explains a library’s choice after the fact and is not an online estimate. The fit of Figure 3 covers all 636 TRTRI products of the scaled grid on both GPUs; at they report 68 to 75 bits at . The figure plots every TRTRI product under EAGER at , , raw and equilibrated, on the RTX 4090; the estimates are identical. Componentwise, no ADP route’s error exceeds its native counterpart’s by more than a factor of 1.95 (RTX 4090) or 1.56 (H100) over the grid.
b) Where a product switches path: cuBLAS writes its bit estimate to an output pointer the caller provides. The pointer holds the estimate whether or not the product emulates (cuBLASLt documents when emulation is not used), so dispatch has to be read from outputs, time and kernels. The probes of Figure 4 compare each output bit for bit with native DGEMM. The estimate is 62 bits at zero span and 257 at a span of 200 bits on both GPUs. On the RTX 4090 with cuBLAS 13.8.1, outputs of or smaller step between 107 and 109 bits (for example from 5.59 to 6.51 times native), outputs between 107 and 110 bits (from at most 0.98 to at least 1.60 times native). Above the step, outputs of and larger are bit-identical to native DGEMM on the RTX 4090; smaller ones are not, so the path above the step is not always the default DGEMM kernel. On the H100, Nsight Systems traces show the same kernels launched on both sides of the switch, with the durations moving: for the product the INT8 GEMMs take 2,350 s per call at 103 bits and 47.2 s at 107. Above the switch a CUTLASS FP64 percentage GEMM of the emulated library does the product, not cuBLAS’s default FP64 kernel, which accounts for over-cap outputs that are accurate but not bit-identical to native DGEMM. The product takes 1.69 times native at 103 bits and 2.17 at 107, which places the H100’s switch where the RTX 4090’s is. Exact zeros on both operands, as in a single-GEMM LAAUM, also change the path: the product returns native’s output at 1.16 times native time on the RTX 4090.
c) Inside cuSOLVER and under DEFAULT: cuSOLVER 12.3.5 imports eleven FP64 level-3 entry points from cuBLAS, and an LD_PRELOAD interposer wraps all of them, logging each internal call’s operation, shape, strategy and estimate. With all eleven wrapped, potri at and makes 108 internal FP64 level-3 calls in every mode; cuBLAS’s own API log of the same call, taken without the interposer, records 108, 108 and 108 under native, DEFAULT and EAGER, the interposer’s count operation for operation. At , , the internal TRSM calls report 66 to 129 bits under EAGER and TRMM up to 125, identically on both GPUs; none of the 63 SYRK calls is emulated, as documented below compute capability 10.0. DEFAULT, the strategy a caller gets without asking for EAGER, decides for itself. On the RTX 4090 it writes an estimate on 500 of the 1090 GEMMs issued by the blocked routes: 421 at or below 103 bits, emulated at every tested output size, 59 at or above 110 bits, native at every size, and 20 in between, unclassified; the path is inferred from the estimate against the switch. One complete RTX 4090 DEFAULT execution, traced kernel by kernel with CUPTI, took the inferred path on 63 of its 63 calls. On the H100 DEFAULT writes no estimate on any blocked GEMM (0 of 1090) or internal cuSOLVER call, and kernel traces of potri show emulation kernels on 0 of 830 calls. At , , DEFAULT emulates none of 220 internal potri calls on the H100 and A100 but 53 on the L40S and RTX 4090, and EAGER 155 on all four. A caller who enables emulation through cuSOLVER’s strategy setting thus gets a different numerical path on each GPU.
d) The bit-count pointer on cuBLAS 13.3: On the H100’s second version, directing the bit-count output to page-locked host memory, as the harness does, slows single EAGER products to 16 to 148 times native time. A controlled experiment places the added time in the emulation library’s epilogue kernel, launched with the same configuration and running 620 times longer with the pointer; cuSOLVER does not enable the pointer on its internal calls. Instrumenting an opaque library can thus perturb what is measured (supplement).
Cost
The times below describe the recorded sessions; they do not bound what another device, driver, clock state or session would give, and the conclusions rest on the order of the routes and on ratios far from 1. Table XII lists every route. All 7 matched comparisons on the H100 (3 sessions on 2 nodes) and all 7 on the RTX 4090 are resolved by 97.9% order-statistic intervals under a rule fixed before computing; the closest to 1 is equilibration’s cost on the H100, session medians 1.036 to 1.043. Blocking LAUUM saves time on every GPU (blocked / one GEMM, native: 0.70 on the H100, 0.57 on the RTX 4090), and equilibrated FIXED 55 takes 1.13 of the equilibrated native route’s time on the H100 with blocked LAUUM and 0.92 with one-GEMM LAUUM (0.33 and 0.27 on the RTX 4090).
| route | RTX 4090 ms [IQR] | RTX 4090 ratio | RTX 4090 | H100 ms [IQR] | H100 ratio | H100 |
| cuSOLVER, native | 595 [0.74] | 1.00 | 58.4 [0.27] | 1.00 | ||
| cuSOLVER, DEFAULT | 548 [0.8] | 0.92 | 58.4 [0.34] | 1.00 | ||
| cuSOLVER, EAGER | 912 [1.1] | 1.53 | 186 [0.7] | 3.18 | ||
| blocked, native, blocked LAUUM | 775 [0.2] | 1.30 | 24.3 [0.14] | 0.42 | ||
| 241 [0.37] | 0.40 | 37.5 [0.075] | 0.64 | |||
| , native | 377 [0.51] | 0.63 | 34.9 [0.14] | 0.60 | ||
| , eq. | 245 [0.38] | 0.41 | 38.9 [0.099] | 0.67 | ||
| , solve-based | 263 [0.17] | 0.44 | 46.6 [0.17] | 0.80 | ||
| , eq. | 252 [0.43] | 0.42 | 41.5 [0.099] | 0.71 | ||
| , eq., blocked LAUUM | 237 [0.11] | 0.40 | 37.5 [0.11] | 0.64 | ||
| F55 | 360 [1.2] | 0.61 | 31.9 [0.18] | 0.55 | ||
| F55, native | 497 [0.62] | 0.84 | 30.7 [0.22] | 0.53 | ||
| F55, eq., blocked LAUUM | 261 [0.15] | 0.44 | 29.2 [0.23] | 0.50 | ||
| F55, solve-based | 381 [1.1] | 0.64 | 39 [0.32] | 0.67 |
Table XII. Full routes, device-resident, , : median time in ms [interquartile range], ratio to native cuSOLVER and . All columns, rows and sessions: supplement.
On the RTX 4090 the fastest accurate route, equilibrated GEMMul8 with 16 moduli and blocked LAUUM, inverts an 8192 × 8192 matrix in 237 to 244 ms over sessions, against 595 to 615 ms for cuSOLVER. On the H100 the fastest accurate route is native, the blocked inversion with blocked LAUUM, and the fastest accurate emulated route, equilibrated FIXED 55 with blocked LAUUM, takes 1.20 of its time. With upload and download from pageable memory inside the clock
the margins shrink: the RTX 4090’s fastest accurate route takes 0.52 of cuSOLVER’s time, and on the H100 the copies dominate (native cuSOLVER 236 to 273 ms). Emulation also needs workspace: the sampled peak of device memory reaches 3,652 MiB for 14 moduli and 5,474 MiB for FIXED 55 on the H100, against 2 MiB native. The products are half of TRTRI’s GEMM work, so the -native hybrid gives back part of emulation’s gain where FP64 is slow: 1.54 times the equilibrated route’s time on the RTX 4090, and the solve-based route 1.07. Inside cuSOLVER’s potri on an exact factor, the spread raises DEFAULT on the RTX 4090 from 0.737 of native time at to 0.918 at , and equilibration recovers it (EAGER 1.050 on the equilibrated input).
Application
a) Design: With the covariance of the five variables (median age, total rooms, population, median income and median house value) and a squared-exponential kernel on location, the model’s covariance is . If house value is observed at every training site, the model’s secondary weights are exactly zero (runs of that kind are the artifact as a negative control). The design is therefore heterotopic: the four secondary variables are observed at all training sites and house value at a predetermined half of them, so the covariance has order , , in its raw units. and the means come from every block group except the 256 held-out ones, so the covariance model is fixed across designs. The length scales are 0.1 and 0.3 degrees (about 11 and 33 km); 148 training sites share coordinates with another, and the nugget keeps positive definite. At the model’s nugget the secondary observations contribute 14,629 to 33,421 dollars RMS to the prediction, and cokriging changes the held-out RMSE by -2.3 to 5.1%. Power-of-two equilibration reduces from – to at most , and the TRTRI products’ 99th-percentile scale excess reaches 127 bits (). At (Table VI) the reference predictor’s held-out RMSE is 85,729, 101,684 and 525,730 dollars at the three nuggets. At the binary64 eigensolver returns a negative smallest eigenvalue estimate for 5 of the 8 matrices, which are positive definite in exact arithmetic; that nugget is a numerical stress case only, and nothing is certified there.
b) Results: Every ADP route stays at native’s level against the reference (at most of the held-out RMSE for EAGER, for native). Over both sizes the weakest fixed routes reach of the held-out RMSE at the model’s nugget, at and in the stress case; equilibration brings every fixed route to at most . Recalibrating and the means on the observed house values only (8 cases) changes the held-out RMSE from 85,729 to 85,725 dollars at and leaves these findings in place: the worst raw fixed route moves from to and equilibrated routes stay at or below .
c) The reference certificate: The reference prediction is computed by binary64 Cholesky of with iterative refinement, residuals and iterates in x86 long double; for all 12 systems () the componentwise backward error falls to at most within 4 steps. Exact below means exact arithmetic on the stored binary64 arrays , , : and . Let be the computed prediction, the exact residual of the computed solution, the power-of-two equilibration and . Since
where encloses the rounding of the long-double dot product and its conversion. With the exact model matrix, proved by an exact-rational , and bounding the stored-versus-model rounding, Weyl’s inequality gives
With an upper bound on the RMS over the held-out points of the right-hand side of (4), a lower bound on the reference’s held-out RMSE and an upper bound on the RMS discrepancy of a route’s predictions from the reference,
Here , and in all 24 cases. is at most at and at ; at , in all 8 cases. The certified bound is set by : the measured discrepancies are two orders below it, so ratios between discrepancies compare computed solutions only.
d) Scope: The certificate assumes IEEE binary64 and x87 long-double arithmetic with no overflow, underflow or invalid operation in its own evaluation, which a script checks per case. It trusts no library exponential: its own long-double routine, whose argument reduction is checked on every run of representable inputs (supplement), errs by less than . The route measurements and the certificate refer to the same reference vector, by its SHA-256 digest (16 of 16 cases). A verifier that shares no code with the certificate, trusting the platform’s exponential to one ulp, passes all 24 cases and gives at most at . Enclosed: , the pointwise bounds, , and the ratio (6) at and . Not enclosed: the predictive variances, ratios between routes, and the statistical adequacy of the covariance model.
e) The projection of the inverse error: Why does an inverse error large in its own terms stay small in the predictions? Let be the error against the exact inverse. Each output sees it only through a projection: the mean through , the variance through . Relative to the variance, that error is bounded by , with , , the alignment that bounds , and the cancellation in . The measurements cannot use itself. They use , the difference from LAPACK’s computed inverse, with binary64 eigenvalue estimates for the norms, and the variance discrepancies are taken against the variance from the refined solves, which the certificate does not cover. They describe how computed results differ; they bound the exact-inverse quantities only up to those references’ own errors, which are not certified here. Measured on the H100 (, location-major, 0.3 degrees), GEMMul8 with 14 moduli raises (with ) from (native, blocked) to at , but the realised fraction of the worst case, , falls from to (medians). The measured quadratic projections are small relative to the spectral-norm bound on the tested cross-covariance vectors; since can be indefinite, the experiment does not distinguish weak alignment from cancellation within those projections. The largest relative variance discrepancy moves only from to , and at it is no larger than native’s ( against ). The cancellation factor reaches 9.8, and at the three nuggets, and every route’s variance discrepancy grows with it; at every route, native ones included, shows large variance discrepancies ( for cuSOLVER).
References
- [1]A. Schwarz, A. Anders, C. Brower, H. Bayraktar, J. Gunnels, K. Clark, R. G. Xu, S. Rodriguez, S. Cayrols, P. Tabaszewski, and V. Podlozhnyuk, “Guaranteed DGEMM accuracy while using reduced precision tensor cores through extensions of the Ozaki scheme,” in Proceedings of the Supercomputing Asia and International Conference on High Performance Computing in Asia Pacific Region (SCA/HPCAsia), 2026.
- [2]cuBLAS Library User Guide, Release 13, NVIDIA Corporation, 2026, sections on floating-point emulation; https://docs.nvidia.com/cuda/cublas/.
- [3]K. Ozaki, Y. Uchino, and T. Imamura, “Ozaki scheme II: A GEMM-oriented emulation of floating-point matrix multiplication using an integer modular technique,” The International Journal of High Performance Computing Applications, 2026.DOI
- [4]Y. Uchino, K. Ozaki, and T. Imamura, “High-performance and power-efficient emulation of matrix multiplication using INT8 matrix engines,” in Proceedings of the SC ’25 Workshops of the International Conference for High Performance Computing, Networking, Storage and Analysis, 2025.
- [5]Y. Uchino, Q. Ma, T. Imamura, K. Ozaki, and P. L. Gutsche, “Emulation of complex matrix multiplication based on the Chinese remainder theorem,” in ISC High Performance 2026 Research Paper Proceedings (41st International Conference). IEEE, 2026, pp. 1–12.
- [6]J. Demmel, G. Henry, I. Kozachenko, J. Langou, X. S. Li, J. Riedy, and J. Vanover, “How to grade the accuracy of the BLAS,” ACM Transactions on Mathematical Software, 2026, published online 12 Nov 2026.
- [7]H. Wackernagel, Multivariate Geostatistics, 3rd ed. Springer, 2003.
- [8]K. Ozaki, T. Ogita, S. Oishi, and S. M. Rump, “Error-free transformations of matrix multiplication by using fast routines of matrix multiplication and its applications,” Numerical Algorithms, vol. 59, 2012.
- [9]H. Ootomo, K. Ozaki, and R. Yokota, “DGEMM on integer matrix multiplication unit,” The International Journal of High Performance Computing Applications, 2024.arxiv.org/abs/2306.11975
- [10]Y. Uchino, K. Ozaki, and T. Imamura, “Performance enhancement of the Ozaki scheme on integer matrix multiplication unit,” The International Journal of High Performance Computing Applications, 2025.
- [11]M. Fasi, T. Mary, and M. Mikaitis, “Sharper bounds on the required fixed-point precision for emulating floating-point matrix multiplication,” ACM Transactions on Mathematical Software, 2026, published online 16 October 2026, article 3858628; no volume or pages assigned yet.
- [12]J. W. Demmel and N. J. Higham, “Stability of block algorithms with fast level-3 BLAS,” ACM Transactions on Mathematical Software, vol. 18, no. 3, 1992.
- [13]J. Demmel, I. Dumitriu, and O. Holtz, “Fast linear algebra is stable,” Numerische Mathematik, vol. 108, no. 1, 2007.
- [14]J. J. Du Croz and N. J. Higham, “Stability of methods for matrix inversion,” IMA Journal of Numerical Analysis, vol. 12, no. 1, 1992.
- [15]E. Carson and N. J. Higham, “Accelerating the solution of linear systems by iterative refinement in three precisions,” SIAM Journal on Scientific Computing, vol. 40, no. 2, 2018.
- [16]A. Haidar, S. Tomov, J. Dongarra, and N. J. Higham, “Harnessing GPU tensor cores for fast FP16 arithmetic to speed up mixed-precision iterative refinement solvers,” in SC18: International Conference for High Performance Computing, Networking, Storage and Analysis, 2018.
- [17]N. J. Higham and T. Mary, “Mixed precision algorithms in numerical linear algebra,” Acta Numerica, vol. 31, 2022.
- [18]P. Luszczek, V. Gadreppally, L. Anderson et al., “Performance and numerical aspects of decompositional factorizations with FP64 floating-point emulation in INT8,” in IEEE High Performance Extreme Computing Conference (HPEC), 2025.
- [19]E. Carson and Y. Ma, “Adaptive accuracy-driven splitting in Ozaki matrix multiplication and application to block LU factorization,” arXiv:2611.03158, 2026.
- [20]G. Ballard, A. R. Benson, A. Druinsky, B. Lipshitz, and O. Schwartz, “Improving the numerical stability of fast matrix multiplication,” SIAM Journal on Matrix Analysis and Applications, vol. 37, no. 4, 2016.
- [21]A. van der Sluijs, “Condition numbers and equilibration of matrices,” Numerische Mathematik, vol. 14, 1969.
- [22]E. Anderson, Z. Bai, C. Bischof, S. Blackford, J. Demmel, J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, and D. Sorensen, LAPACK Users’ Guide, 3rd ed. SIAM, 1999.DOI
- [23]R. K. Pace and R. Barry, “Sparse spatial autoregressions,” Statistics & Probability Letters, vol. 33, no. 3, 1997.DOI
- [24]N. J. Higham, Accuracy and Stability of Numerical Algorithms, 2nd ed. SIAM, 2002.
- [25]IEEE, “IEEE standard for floating-point arithmetic,” IEEE Std 754-2019, 2019.
- [26]S. M. Rump, “Verification methods: Rigorous results using floating-point arithmetic,” Acta Numerica, vol. 19, 2010.



