[Paper Review] A Parallel Algorithm for Calculation of Large Determinants with High Accuracy for GPUs and MPI clusters
This paper presents a novel parallel algorithm for computing large determinants and associated minors with arbitrary precision on GPUs and MPI clusters, leveraging Gaussian elimination with optimized data distribution. It achieves near-linear scalability across up to 168 cores and successfully computes determinants of size N=12,000 with 10,000-digit precision, enabling new insights into the Riemann zeta function's zero distribution.
We present a parallel algorithm for calculating very large determinants with arbitrary precision on computer clusters. This algorithm minimises data movements between the nodes and computes not only the determinant but also all minors corresponding to a particular row or column at a little extra cost, and also the determinants and minors of all submatrices in the top left corner at no extra cost. We implemented the algorithm in arbitrary precision arithmetic, suitable for very ill conditioned matrices, and empirically estimated the loss of precision. The algorithm was applied to studies of Riemann's zeta function.
Motivation & Objective
- To address the challenge of computing very large, ill-conditioned determinants with extreme precision (up to 10,000 decimal places) for research on the Riemann zeta function.
- To minimize data movement across distributed nodes in cluster environments while maintaining high numerical accuracy.
- To compute not only the determinant but also all minors for a given row or column and all leading principal minors at no extra computational cost.
- To enable empirical estimation of precision loss during Gaussian elimination in high-accuracy arithmetic for ill-conditioned matrices.
- To support the Artless method for studying the distribution of non-trivial zeros of the Riemann zeta function through high-precision determinant computations.
Proposed method
- The algorithm uses a modified Gaussian elimination process that computes the determinant and all minors for a specific column or row in a single pass, reusing intermediate factorization steps.
- It extends the computation to include all leading principal minors (determinants of top-left submatrices) at no additional cost by maintaining a recursive structure.
- The method is parallelized across multiple architectures: GPU (CUDA), shared-memory multicore (pthreads, OpenMP), and distributed-memory clusters (MPI) using message passing.
- Arbitrary-precision arithmetic libraries (e.g., cump, GMPLIB) are employed to handle computations with up to 32,768 bits (10,000 decimal places) of precision.
- Load balancing is carefully managed in the MPI implementation to ensure near-linear speedup across up to 200 cores.
- The algorithm is designed to reduce memory bandwidth pressure by minimizing data movement between compute nodes and optimizing data layout for block-wise computation.
Experimental results
Research questions
- RQ1Can a parallel algorithm compute large determinants with 10,000-digit precision efficiently on GPU and cluster architectures?
- RQ2How does the precision degrade during Gaussian elimination for nearly singular matrices, and is the chosen accuracy sufficient for meaningful results?
- RQ3Can minors corresponding to a single column be computed alongside the determinant with minimal additional cost?
- RQ4Does the algorithm scale linearly with the number of compute cores in a distributed environment?
- RQ5Can the computed minors reveal meaningful patterns related to prime numbers in the context of the Riemann zeta function?
Key findings
- The algorithm achieved near-linear speedup with up to 168 cores on a cluster, reducing wall time from over 18 hours to under 4 hours for N=12,000 matrices.
- For matrix size N=12,000 and 32,768-bit precision, the wall time was 654,120 seconds (about 7.5 days) on 144 processes, confirming O(N³) complexity.
- The GPU implementation showed similar performance to a single CPU core when using arbitrary-precision arithmetic, indicating limited benefit for such workloads.
- The CPU time scaled approximately as O(N³) and increased by a factor of ~2.8 when doubling precision (consistent with Karatsuba multiplication), and ~3.95 on GPU (consistent with schoolbook multiplication).
- Empirical analysis showed that the chosen precision was sufficient to maintain accuracy for matrices up to size N=12,000, with no evidence of catastrophic loss beyond expected bounds.
- The computed minors revealed patterns consistent with the distribution of prime numbers, supporting theoretical expectations in the Artless method for studying the Riemann zeta function.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.