본문으로 건너뛰기
AI NEWS JOURNAL
NVIDIA DeveloperAI NEWS / JOURNAL

Accelerating Direct Sparse Solvers for Computational Engineering with NVIDIA cuDSS 1.0

Sparse linear systems are at the core of nearly every engineering and scientific simulation, from structural mechanics and computational fluid dynamics to...

번역 서비스가 일시 중지되어 원문을 표시합니다.

AI-Generated Summary cuDSS 1.0 delivers production-ready GPU-accelerated sparse linear system solving for engineering and scientific simulations. Geometric-mean speedups over Intel MKL reach 2.5x for analysis, 5.9x for numerical factorization, and 151x for triangular solve on real-world semiconductor and mechanical modeling matrices. Symmetry-preserving matching with HSL MC64 and Bunch-Kaufman pivoting are now enabled by default for symmetric indefinite systems, reducing perturbed pivots and improving normwise relative backward error by up to 10 orders of magnitude on SuiteSparse matrices. Hybrid memory mode orchestrates data across GPU HBM and CPU DRAM, cutting minimum device memory requirements by approximately 30% on large VLSI cases and enabling single-GPU solutions for problems that previously required multiple GPUs. A new opt-in pinned memory handler reduces host-to-device transfer overhead in hybrid execution, with a sample implementation available in the CUDA library samples. GPU symbolic factorization runs 2.21x faster than in cuDSS 0.8.0, and optional host execution via hybrid execute mode reduces overhead for small matrices and peak device memory for large ones. Next Steps Download cuDSS to begin integrating the library into simulation workflows. Sparse linear systems are at the core of nearly every engineering and scientific simulation, from structural mechanics and computational fluid dynamics to circuit simulation and power grid analysis. As problem sizes and complexity grow, and accuracy needs tighten, developers need a direct solver that scales on GPUs without giving up the robustness that production simulations depend on. The NVIDIA GPU-accelerated cuDSS library is designed to solve large sparse linear systems for engineering and scientific simulations. The general availability of cuDSS marked a major milestone, making it a production-ready library that developers and software vendors can confidently deploy in commercial applications. This post walks you through how the cuDSS 1.0 release can help you with your applications. Specifically, it explains where industry-leading performance gains can be realized on real-world workloads, how the new pivoting and matching defaults improve accuracy on difficult symmetric indefinite systems, and how system-level optimization with intelligent use of GPU and CPU resources together enable solving problems at scale. Enabling best performance for key computational engineering applications Benchmark matrices for cuDSS were selected from key semiconductor design, manufacturing, and computer-aided engineering workflows, including circuit simulation, TCAD, thermal, structural, electromagnetic, and fluid dynamics. They span a wide range of sparsity patterns, conditioning, and scaling behavior. Figures 1-3 show cuDSS 1.0 geometric-mean speedups on these real-world problems of 2.5x for analysis (reordering and symbolic factorization) (Figure 1), 5.9x for numerical factorization (Figure 2), and 151x for triangular solve (Figure 3). In practice, applications typically combine all three phases, so overall speedup depends on each phase’s relative contribution. Benchmark configuration: cuDSS 1.0 speedup against Intel MKL version 2026.1.0; GPU: NVIDIA B200 (192 GB HBM3e); CPU: INTEL XEON PLATINUM 8570. The benchmark result reflects cuDSS performance relative to Intel MKL on a given matrix. The benchmark is not a comparison across the vendor matrices themselves. Benchmark configuration: cuDSS 1.0 speedup against Intel MKL version 2026.1.0; GPU: NVIDIA B200 (192 GB HBM3e); CPU: INTEL XEON PLATINUM 8570. The benchmark result reflects cuDSS performance relative to Intel MKL on a given matrix. The benchmark is not a comparison across the vendor matrices themselves. Benchmark configuration: cuDSS 1.0 speedup against Intel MKL version 2026.1.0; GPU: NVIDIA B200 (192 GB HBM3e); CPU: INTEL XEON PLATINUM 8570. The benchmark result reflects cuDSS performance relative to Intel MKL on a given matrix. The benchmark is not a comparison across the vendor matrices themselves. cuDSS performance has steadily improved over releases for a variety of workloads, including superpanels in factorization (v0.4.0), multithreaded analysis (v0.5.0), tuned solve-phase kernels (v0.8.0), and targeted performance optimizations (v1.0). Figures 4 and 5 show speedups relative to v0.3.0 through v1.0 for two matrices of significantly different sizes and structures. Developers building on cuDSS get these gains just by upgrading, with no changes to their application code. These improvements spanning across the different solve phases enable applications to be run faster from end to end and take on larger, more complex sparse problems. Enhancing accuracy for symmetric matrices Many of the numerically challenging sparse systems are symmetric indefinite. They arise in optimal power flow, mixed finite element discretizations of fluid flow and porous media, PDE-constrained optimization, and interior mode computation for structural problems. cuDSS now offers symmetry-preserving matching and scaling and Bunch-Kaufman pivoting, both enabled by default for symmetric systems. Matching and scaling use HSL MC64, from the HSL collection of Fortran codes for large-scale scientific computation. For more information, refer to The HSL Mathematical Software Library. Prior to cuDSS 1.0, matching was off by default because it did not preserve symmetry, which hurt memory and performance. Matching now preserves symmetry and is on by default, improving accuracy in many cases. It can add overhead during analysis and later stages if it causes additional fill-in. To restore the previous nonsymmetric behavior, set CUDSS_CONFIG_FORCE_NONSYMMETRIC_MATCHING. For symmetric indefinite matrices, diagonal-only pivoting preserves symmetry but can cause unrecoverable accuracy loss when diagonal elements are small. Saddle-point and KKT matrices are the canonical examples. Previously, cuDSS used diagonal pivoting with perturbation of small pivots, which led to accuracy loss for many saddle-point matrices. Bunch-Kaufman pivoting fixes this by allowing 2×2 pivots, which keep the factorization stable while preserving symmetry. With CUDSS_PIVOT_BUNCH_KAUFMAN, cuDSS applies the local Bunch-Kaufman test to each column and chooses a 1×1 pivot, an interchanged 1×1 pivot, or a 2×2 block. The threshold can be overridden through CUDSS_CONFIG_PIVOT_THRESHOLD. Smaller values favor 1×1 pivots, which can give sparser factors at the cost of accuracy. Bunch-Kaufman pairs effectively with symmetry-preserving matching: matching cycles are split into candidate 1×1/2×2 groups that reordering keeps adjacent, so the pivot search finds the 2×2 blocks it needs without breaking the fill-reducing ordering. CUDSS_PIVOT_AUTO now selects Bunch-Kaufman for symmetric/Hermitian indefinite matrices wherever it is supported, and otherwise falls back to diagonal pivoting. Table 1 shows results of solving linear systems \(Ax = b\) with cuDSS 1.0 under two configurations: No matching (CUDSS_MATCHING_ALG_NONE) and diagonal pivoting (CUDSS_PIVOT_DIAGONAL) With matching and scaling (CUDSS_MATCHING_ALG_MAX_DIAG_PRODUCT), and Bunch-Kaufman pivoting (CUDSS_PIVOT_BUNCH_KAUFMAN) The latter configuration is now the default configuration. In each case, the matrix \(A\) is from the SuiteSparse matrix collection, and the right hand side vector \(b\) is a corresponding vector of all ones. For each system considered, common measures of accuracy for linear system solvers are reported. With \(x\) representing the solution computed by cuDSS, Relative Residual is the typical 2-norm measurement: \(\frac{\left\|b-Ax\right\|_2}{\left\|b\right\|_2}\) while NRBE is the normwise relative backward error, again measured with respect to the 2-norm: \(\frac{\left\|b-Ax\right\|_2}{\left\|A\right\|_F\left\|x\right\|_2+\left\|b\right\|_2}\) Note that the NRBE computation uses the Frobenius norm of \(A\) because it is easy to compute for large, sparse \(A\). Each configuration also reports the number of perturbed 1×1 pivots, meaning pivots replaced by an appropriately signed pivot epsilon because they were too small to proceed. Perturbed pivots indicate accuracy loss in the factorization, caused by an insufficient pivoting strategy or poor matrix conditioning. To get their count, request CUDSS_DATA_NPIVOTS after the factorization phase. Learn more about configuring treatment of perturbed pivots in cuDSS. The results in Table 1 show significant improvement in factorization due to reduced perturbed pivots. Test configuration: cuDSS 1.0, CTK13, RTX PRO 1000 Blackwell, Ubuntu 24.04.4 LTS) For these matrices, cuDSS is now up to 10 orders of magnitude more accurate in NRBE, and a stark reduction in perturbed pivots shows improved factorization quality. cuDSS 1.0 also enables matching and scaling by default for nonsymmetric matrices, not just symmetric and Hermitian ones, with improvements here too. Table 2 shows SuiteSparse matrices that improve with matching enabled. Test configuration: cuDSS 1.0, CTK13, RTX PRO 1000 Blackwell, Ubuntu 24.04.4 LTS) While generally helpful, matching with scaling does not always help with improving accuracy specifically. In a few cases, it can result in a loss of accuracy. Matching in cuDSS can be disabled by setting the matching algorithm to CUDSS_MATCHING_ALG_NONE. Hybrid execution paradigm: A solution for small and large problems Hybrid memory mode reflects a core design philosophy of cuDSS: the GPU and CPU together are the compute platform. Factorization is particularly data hungry, generating a dense fill structure in the L and U factors that can have more non-zeros than the original sparse matrix. Modern server nodes pair an NVIDIA GPU with substantial CPU memory (often 512 GB to 2 TB of DRAM), and hybrid memory mode treats that memory as an extension of the device’s effective capacity. cuDSS intelligently orchestrates data placement across GPU HBM and CPU DRAM, keeping the most compute-intensive portions of the factorization and solving kernels on the GPU while offloading data not immediately needed to CPU memory. As a result, engineers do not need to partition a simulation into smaller subdomains that fit on the GPU or use multiple GPUs. The full problem can be solved as a single system. Reduced memory footprint Figure 2 shows minimum memory requirements reduced by an average of 30% across a representative suite of large VLSI examples. Problems that previously required multiple GPUs can now be solved on a single NVIDIA H100, NVIDIA B200, or a single NVIDIA Vera Rubin, simplifying deployment and reducing compute cost. In cuDSS, you can query the minimum required device memory for hybrid memory mode using cudssDataGet() with the CUDSS_DATA_HYBRID_DEVICE_MEMORY_MIN parameter: cudssDataGet(cudssHandle, solverData, CUDSS_DATA_HYBRID_DEVICE_MEMORY_MIN, &minMemory, sizeof(size_t), NULL); This should be called after the analysis phase. More broadly, you can also use CUDSS_DATA_MEMORY_ESTIMATES with cudssDataGet() to get a full breakdown in a single call. The returned array includes: [0] – permanent device memory [1] – peak device memory [4] – minimum device memory for hybrid mode [5] – maximum host (CPU) memory for hybrid mode Note that CUDSS_DATA_HYBRID_DEVICE_MEMORY_MIN reflects the total device memory cuDSS needs (not just the matrix factors). You can then pass a custom limit anywhere between that minimum and available free memory (queryable via cudaMemGetInfo) using CUDSS_CONFIG_HYBRID_DEVICE_MEMORY_LIMIT. Pinned memory handler: Optimized data transfers Hybrid memory mode in cuDSS keeps full buffers holding factor values on the host. Prior to cuDSS 1.0, these host buffers by default were pinned (registered) after allocation by calling standard cudaHostRegister() / cudaHostUnregister() CUDA APIs. This behavior is controlled through the following script: cudssConfigSet(config, CUDSS_CONFIG_USE_CUDA_REGISTER_MEMORY, &value, sizeof(int)); The default behavior is equivalent to setting value = 1(if the device supports it). Note that value = 0 (disabling registration) can actually be faster in some cases, since cudaHostRegister has an overhead. For large systems, the overhead can be quite noticeable. Now there is a way to reduce this overhead. cuDSS 1.0 introduces an opt-in user-configurable pinned memory handler, reducing latency and bandwidth overhead for host-to-device transfers in hybrid CPU-GPU execution. cudssSetPinnedMemHandler() allows users to implement a custom allocator for pinned memory, similar to the existing cudssSetDeviceMemHandler() for device memory allocations, but the new pinned memory handler is for the pinned host memory. A minimal implementation requires alloc and dealloc functions: class ExamplePinnedMemPool { public: int alloc(void **ptr, size_t size, cudaStream_t) { if (size == 0) { *ptr = NULL; return 0; } int status = cudaMallocHost(ptr, size); return status; } int dealloc(void *ptr, size_t size, cudaStream_t) { if (ptr == NULL) { return 0; } return static_cast(cudaFreeHost(ptr)); } This simple implementation would not change the performance compared to the default, which is using cudaHostRegister(). To achieve better performance for the hybrid memory mode for large systems, users can now implement special handling such as pinned memory pools and parallel prefaulting. Symbolic factorization improvements Symbolic factorization determines the nonzero structure of the factors and prepares internal data structures for numerical factorization. Recent releases added GPU speedups and optional CPU offloading. In cuDSS 1.0, GPU symbolic factorization is 2.21x faster (geometric mean) than in cuDSS 0.8.0 on both NVIDIA B200 and H100. The comparison covers ~400 matrix/configuration cases with 80 to 130.3 million rows on B200, and ~250 cases with 120 to 22.9 million rows on H100. Replacing only the symbolic factorization timings, with reordering, numerical factorization, and solve held at 0.8.0 values, gives estimated geometric-mean end-to-end speedups of 1.18x on B200 and 1.14x on H100. Optional execution of symbolic factorization on the host introduced through hybrid execute mode in cuDSS 0.8.0 to improve two cases: Small matrices: Hybrid execute mode was designed for smaller matrices, running numerical factorization and solving on the host (reordering always runs on the host). Prior to cuDSS 0.8, GPU symbolic factorization could add device execution and data-transfer overhead to this otherwise host-based computation. Running it on the host can reduce this overhead. Large matrices: Host symbolic factorization can reduce peak device memory during analysis, making analysis possible for systems that would otherwise exceed device memory. Starting with cuDSS 0.8, users can control where symbolic factorization is executed by enabling/disabling the hybrid execute mode. To run symbolic factorization on the host, enable the hybrid execute mode before analysis: int value = 1; cudssConfigSet(config, CUDSS_CONFIG_HYBRID_EXECUTE_MODE, &value, sizeof(int)); With hybrid execute mode disabled, symbolic factorization runs on the GPU. With it enabled, symbolic factorization runs on the host, even when numerical factorization and solve remain on the GPU. For better host performance, enable the threading layer to and allow cuDSS to use more than one CPU thread. The CUDSS_CONFIG_HOST_NTHREADS setting controls the thread limit for cuDSS. Hybrid execute mode and hybrid memory mode can now be enabled together in supported configurations. They serve different purposes: hybrid execute mode controls where computation runs, while hybrid memory mode allows factor data to be stored in host memory. The remaining mode restrictions still apply. *With hybrid memory mode disabled, an internal heuristic selects placement for numerical factorization and solve-based on matrix structure. Enabling hybrid execute mode does not force these phases onto the host. When hybrid memory mode is also enabled, numerical factorization and solve use the GPU, while symbolic factorization runs on the host. Get started with cuDSS cuDSS 1.0 is the production-ready standard for performance-critical simulation, extending GPU computing to problem scales previously impractical or impossible to solve. The release rests on three mutually reinforcing technical pillars: Advanced accuracy techniques improve robustness Best-in-class performance delivers consistent, substantial speedups over CPU-based solvers A system-level optimization strategy, anchored by host-assisted symbolic factorization, hybrid memory mode, and a significantly reduced GPU memory footprint As each new GPU architecture brings greater memory capacity, higher memory bandwidth, and faster interconnects, cuDSS algorithmic innovations will compound these advances, enabling ever larger and more efficient solutions to the sparse linear systems at the core of the world’s most demanding engineering applications. Download cuDSS to get started. About the Authors Comments

자료 출처

원문 읽기 ↗

관련 주제

← 전체 소식 이어 읽기