Troubleshooting#

Hints#

  • If any issues need to be debugged, the following environment variables are very useful:

  • If a call hangs, examine these causes first:

    • cusolverMpCreateDeviceGrid() and cusolverMpDestroyGrid() are collective operations since cuSOLVERMp 0.10.0. All ranks of the communicator must call them, and all ranks must make these calls in the same sequence.

    • One process returned an error, for example for a NULL pointer or for a workspace that is too small, and the other processes wait in a collective operation. Examine the status of the processes that returned.

    • d_ipiv of cusolverMpGetrf() or cusolverMpGetrs() is NULL on some processes only.

Known Issues#

  • Some users on multi-node NVLink+RDMA platforms may experience hangs with versions of NCCL older than 2.31. To work around this issue, update NCCL to 2.31 or newer, or set the NCCL_PXN_DISABLE=1 environment variable.

  • cuSOLVERMp routines can return incorrect results with NCCL 2.32.5 and earlier when NCCL uses NVLink SHARP (NVLS) for collective operations. A defect in NCCL causes this. To work around this issue, update NCCL to 2.32.6 or newer, or set the NCCL_NVLS_ENABLE=0 environment variable.

  • With cuSOLVER 12.3.4 from CUDA 13.4 Update 1, the link of an application with cuSOLVERMp fails with errors such as undefined reference to cusolverDnCreate@libcusolver.so.12. A defect in cuSOLVER causes this. Applications that are already linked run correctly, but the loader prints no version information available warnings. To work around this issue, use a different CUDA 13 release, for example CUDA 13.4 Update 2 or newer.

  • With cuSOLVERMp 0.9.0 and later (0.10.0 and later for GEQRS) and cuBLASMp 0.9.1 through 0.11.0, the device workspace of cusolverMpGetrs(), cusolverMpPotrs(), cusolverMpGels() and cusolverMpGeqrs() can be very large when the tiles of sub(B) are much wider than the tiles of sub(A), or when each process holds only about one tile. To reduce the workspace, use the same tile sizes for sub(A) and sub(B) and several tiles for each process, and query the workspace again. cuSOLVERMp 0.10.0 needs much less workspace than earlier versions for some of these layouts.

  • With FP64 emulation, FIXED mantissa control and complex double-precision data, results can be incorrect with cuBLAS 13.10 and earlier, except cuBLAS 13.8.2. A defect in cuBLAS causes this. With these cuBLAS versions, use DYNAMIC mantissa control (the default) for complex data, and do not set CUBLAS_FIXEDPOINT_EMULATION_MANTISSA_BIT_COUNT: this variable changes dynamic control to fixed control in the local cuBLASLt matrix multiplications and in the operations that cuSOLVERMp performs through cuBLASMp.

  • Some cuBLAS versions have the following defects in FP64 emulation. cuBLAS 13.10 and later, cuBLAS 13.8.2 and some patch releases of earlier cuBLAS versions have the fixes.

    • On Blackwell GPUs, FP64 emulation can hang with a cuBLAS earlier than 13.7.

    • On Blackwell GPUs, results can be incorrect with a cuBLAS earlier than 13.10, except 13.8.2 and the patch releases with the fix, when other kernels run on the GPU at the same time.

    • With complex data, results can be incorrect with a cuBLAS earlier than 13.3 when one local matrix product has more than 2^31 elements.

  • With CUBLAS_EMULATE_DOUBLE_PRECISION=1 and a math mode without CUSOLVER_FP64_EMULATED_FIXEDPOINT_MATH (the default math mode or CUSOLVER_FP32_EMULATED_BF16X9_MATH), the operations that cuSOLVERMp performs through cuBLASMp can emulate. cuBLAS rejects fixed mantissa control with a nonzero mantissa bit offset. Thus, with these settings, some of these operations can fail on some processes, and the other processes can then hang. Use a zero mantissa bit offset with fixed mantissa control.

  • cuSOLVERMp versions older than 0.9.0: Workspace queries may under-report the required device workspace with cuSOLVER from CUDA Toolkit 13.2 Update 1 and newer, which can cause failures, illegal memory accesses, or hangs in cusolverMpGeqrf(), cusolverMpGels(), cusolverMpOrgqr(), cusolverMpOrmqr(), cusolverMpGetrf(), cusolverMpPotrf(), and cusolverMpSygvd(). To avoid this issue, update to cuSOLVERMp 0.9.0 or newer.

  • cuSOLVERMp versions older than 0.7.0: Some users may face hangs due to lazy initialization of NCCL in UCC. To disable the lazy NCCL initialization, please set UCC_TL_NCCL_LAZY_INIT environment variable to no.

  • cuSOLVERMp versions older than 0.7.0: Some users may see errors with HPC-X v2.18 caused by a clash of UCC being initialized in OMPI and cuSOLVERMp. To disable UCC initialization in OMPI, please set OMPI_MCA_coll_ucc_enable environment variable to 0.