{"id":24131,"library":"nvidia-libnvcomp-cu12","title":"NVIDIA nvcomp for CUDA 12","description":"NVIDIA nvcomp is a high-speed lossless compression/decompression library designed for use on NVIDIA GPUs. This package provides the pre-built CUDA 12 binaries (libnvcomp.so) for Python. Version 5.2.0.13 is current. Release cadence is tied to CUDA toolkit releases.","status":"active","version":"5.2.0.13","language":"python","source_language":"en","source_url":"https://github.com/NVIDIA/nvcomp","tags":["nvidia","compression","gpu","cuda12"],"install":[{"cmd":"pip install nvidia-libnvcomp-cu12","lang":"bash","label":"Latest from PyPI"}],"dependencies":[],"imports":[{"wrong":"from cffi import FFI","symbol":"FFI","correct":"from cffi import FFI"}],"quickstart":{"code":"import ctypes\nimport os\n\n# Load the library (adjust path if needed)\nlib_path = os.environ.get('NVCOMP_LIB_PATH', 'libnvcomp.so')\ntry:\n    lib = ctypes.CDLL(lib_path)\n    print('nvcomp library loaded successfully')\nexcept OSError as e:\n    print(f'Failed to load: {e}')","lang":"python","description":"Verify that the nvcomp shared library is accessible and loadable."},"warnings":[{"fix":"Install a Python wrapper (e.g., `nvcomp` from NVIDIA or use ctypes directly).","message":"This package only provides the compiled shared library (libnvcomp.so) for CUDA 12. It does not include Python bindings; you must use ctypes, cffi, or a higher-level library like cuPy or RAPIDS.","severity":"gotcha","affected_versions":"all"},{"fix":"Use the appropriate `nvidia-libnvcomp-cuX` package for your CUDA version, or install the CUDA 12 toolkit.","message":"The library is version-specific to CUDA 12. If you are using a different CUDA version (e.g., 11.x), this package will not work and may cause runtime errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate calls from `nvcompGdeflate*` to `nvcompBitcomp*` functions.","message":"Some older APIs in nvcomp are deprecated in version 5.2.0. In particular, the GDeflate API has been superseded by Bitcomp; old function names still exist but may be removed in a future release.","severity":"deprecated","affected_versions":">=5.0.0"}],"env_vars":null,"search_vec":"'12':5,30 '5.2.0.13':36 'binari':31 'built':28 'cadenc':40 'compress':48 'compression/decompression':14 'cuda':4,29,44 'cuda12':50 'current':38 'design':16 'gpu':49 'gpus':21 'high':11 'high-spe':10 'libnvcomp.so':32 'librari':15 'lossless':13 'nvcomp':2,7 'nvidia':1,6,20,47 'packag':23 'pre':27 'pre-built':26 'provid':24 'python':34 'releas':39,46 'speed':12 'tie':42 'toolkit':45 'use':18 'version':35","created_at":"2026-05-01T08:11:27.419612+00:00","updated_at":"2026-05-01T08:11:27.419612+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'cffi'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"5.2.0.13","cli_name":"","cli_version":null,"type":"library","homepage":"https://developer.nvidia.com/nvcomp","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/nvidia-libnvcomp-cu12/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}