Registry / ai-ml / nvidia-cusolver-cu11

nvidia-cusolver-cu11

JSON →
library11.4.1.48pypypiunverified

nvidia-cusolver-cu11 provides the native runtime libraries for NVIDIA's cuSOLVER, a high-performance GPU-accelerated library for dense and sparse direct linear solvers and eigenvalue problems. It is a fundamental component of the CUDA Toolkit, enabling accelerated numerical computations on NVIDIA GPUs. This package is intended for runtime use rather than direct development of GPU kernels, typically serving as a foundational dependency for higher-level Python libraries like PyTorch or CuPy in CUDA 11 environments. It is maintained by the Nvidia CUDA Installer Team and generally follows a slow release cadence for new versions.

pip install nvidia-cusolver-cu11
INSTALL
IMPORT
SIG · NVIDIA-CUSOLVER-CU
N
nvidia-cusolver-cu11
ai-mlpythonv11.4.1.48
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

This library does not expose a direct Python API for import. Its primary role is to provide native shared libraries that are used by other GPU-accelerated Python packages (e.g., PyTorch, CuPy) or C++/CUDA applications with Python bindings. The quickstart demonstrates how to verify that the underlying CUDA environment, which includes cuSOLVER, is correctly set up and accessible by a common dependent library like PyTorch.

import torch if torch.cuda.is_available(): print(f"CUDA is available. Device name: {torch.cuda.get_device_name(0)}") # Further usage would involve libraries that depend on nvidia-cusolver-cu11, # such as PyTorch for linear algebra operations on GPU tensors. # Example (PyTorch uses cuSOLVER indirectly for operations like torch.linalg.solve, SVD, etc.): a = torch.randn(3, 3, device='cuda') b = torch.randn(3, 1, device='cuda') x = torch.linalg.solve(a, b) print("Solved linear system (A@x = b) on GPU:") print(x) else: print("CUDA is not available. Please check your NVIDIA driver and CUDA installation.")
Debug
Known issues
breakingMixing CUDA versions (e.g., -cu11 and -cu12 packages) in the same Python environment can lead to 'undefined symbol' errors or other runtime failures. Ensure all `nvidia-*` packages, as well as dependent libraries like PyTorch or TensorFlow, are built for a consistent CUDA version.
fix
Use a virtual environment and ensure all CUDA-dependent packages specify the same CUDA major version (e.g., all `*-cu11` or all `*-cu12`). For PyTorch, explicitly install the version for your target CUDA (e.g., `pip install torch==X.Y.Z+cu118`).
affects: All versions
gotchaThis package provides native runtime libraries, not a direct Python API. You cannot `import nvidia_cusolver_cu11` and call functions directly from it. Its functionality is exposed through higher-level libraries (e.g., NVIDIA Warp, nvmath-python, PyTorch, CuPy) that utilize the underlying cuSOLVER C/C++ libraries.
fix
Integrate with frameworks or libraries that provide Python bindings to cuSOLVER functionalities, such as `torch.linalg` for PyTorch, `cupy.linalg` for CuPy, or the NVIDIA Warp library.
affects: All versions
gotchaThe `pip` installation only provides the runtime libraries. It does not install the NVIDIA GPU driver or the full CUDA Toolkit (which includes development headers and compilers). Your system must have a compatible NVIDIA GPU driver installed that supports the CUDA 11 version. Incompatible drivers will prevent the libraries from functioning.
fix
Manually install the appropriate NVIDIA GPU driver for your hardware and operating system. Verify driver compatibility with your CUDA version using `nvidia-smi`.
affects: All versions
gotchaThis package is not supported on macOS or ARM-based systems (like Apple Silicon Macs), as CUDA itself is an NVIDIA GPU technology. Attempts to install or use it on such systems will result in installation errors or runtime failures.
fix
Run this library only on systems with compatible NVIDIA GPUs and Linux or Windows operating systems.
affects: All versions
gotchaThe license for `nvidia-cusolver-cu11` is 'NVIDIA Proprietary Software'. This imposes restrictions on its use, modification, and redistribution that differ from open-source licenses.
fix
Review the NVIDIA Proprietary Software License to understand its terms and conditions before using the library in commercial or restricted environments.
affects: All versions
Errors
Common errors & fixes
Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found.
The system cannot locate the cuSOLVER dynamic library, often due to an incomplete CUDA Toolkit installation, missing environment variables (PATH, LD_LIBRARY_PATH), or a mismatch between the CUDA version expected by the application and the one installed.
fix
Ensure the correct CUDA Toolkit version is installed and its `bin` and `lib64` (or `lib`) directories are added to the system's PATH and LD_LIBRARY_PATH (Linux) or PATH (Windows) environment variables. Verify that the `cusolver` library file (e.g., `cusolver64_10.dll` or `libcusolver.so.11`) exists in one of these paths.
operation gpusolverDnCreate(&handle) failed: cuSolver internal error
The cuSOLVER library, although found, fails to initialize correctly, which can be caused by incompatible GPU drivers, an issue with the GPU hardware, or linking against a 'stub' library instead of the full cuSOLVER library.
fix
Update your NVIDIA GPU drivers to the latest stable version, ensure your CUDA Toolkit installation is complete and properly linked (not against stub libraries), and consider reinstalling CUDA and dependent libraries (like PyTorch, CuPy, JAX) to resolve underlying conflicts.
undefined symbol: cusolverDnXsyevBatched_bufferSize, version libcusolver.so.11
A higher-level library (e.g., PyTorch, JAX) expects a specific symbol from the cuSOLVER API, but the loaded `libcusolver.so.11` does not provide it, indicating a version incompatibility between the calling library's build environment and the runtime cuSOLVER library.
fix
Ensure that the `nvidia-cusolver-cu11` package (or the system-wide CUDA Toolkit) provides a cuSOLVER version compatible with the library attempting to use it; this often requires matching the CUDA runtime version precisely with the version used to compile the higher-level library.
CUSOLVERError: CUSOLVER_STATUS_INVALID_VALUE
This error typically occurs in applications like CuPy when input parameters or data sizes passed to cuSOLVER routines are outside the valid range or incompatible with the function's requirements, or when there's an internal issue during computation with certain input characteristics.
fix
Review the input arguments and dimensions for the cuSOLVER function being called (e.g., in CuPy's `linalg.svd`), especially for 'large' matrices, and ensure they adhere to cuSOLVER's specified limits and requirements. Updating CuPy and CUDA Toolkit might also resolve known issues with specific input ranges.
Upgrade
Version history
11.4.1.48latest on PyPI · released Oct 3, 2022
Audit
Dependencies
nvidia-cublas-cu11requiredcuSOLVER is based on cuBLAS. This package is explicitly listed as a required dependency.
NVIDIA GPU Driver & CUDA ToolkitrequiredRequires a compatible NVIDIA GPU driver and CUDA Toolkit installed on the system, as these pip packages only provide runtime libraries, not the full development kit or drivers.
Agent activity
3 hits · last 30 days
node
2
Resources