{"id":22450,"library":"tensorrt-cu13","title":"TensorRT cu13","description":"NVIDIA TensorRT is a high-performance deep learning inference library. The cu13 variant targets CUDA 13.x. Current version 10.16.1.11, release cadence approximately monthly.","status":"active","version":"10.16.1.11","language":"python","source_language":"en","source_url":"https://github.com/nvidia/tensorrt","tags":["deep-learning","inference","nvidia","cuda","tensorrt","gpu"],"install":[{"cmd":"pip install tensorrt-cu13","lang":"bash","label":"Direct install"},{"cmd":"pip install tensorrt-cu13==10.16.1.11","lang":"bash","label":"Stable version"}],"dependencies":[{"reason":"Optional dependency for runtime API; if not installed, some functionality may be unavailable.","package":"cuda-python","optional":true}],"imports":[{"note":"Using 'as trt' is a common convention, but not required.","wrong":"import tensorrt as trt","symbol":"tensorrt","correct":"import tensorrt"},{"note":"","wrong":"","symbol":"Builder","correct":"import tensorrt; tensorrt.Builder"}],"quickstart":{"code":"import tensorrt as trt\nimport os\n\ndef get_engine():\n    logger = trt.Logger(trt.Logger.WARNING)\n    builder = trt.Builder(logger)\n    network = builder.create_network(1 << int(trt.NetworkDefinitionCreationFlag.EXPLICIT_BATCH))\n    print(f\"TensorRT version: {trt.__version__}\")\n    \nif __name__ == '__main__':\n    get_engine()","lang":"python","description":"Minimal TensorRT setup showing logger, builder, and network creation."},"warnings":[{"fix":"Ensure your environment has CUDA 13.2+ (for TRT 10.16) or matching CUDA version for the TensorRT release.","message":"From TensorRT 10.13, CUDA 11.x support dropped. This cu13 variant requires CUDA 13.x; mixing with older CUDA will fail at import or runtime.","severity":"breaking","affected_versions":">=10.13.0"},{"fix":"Replace pycuda imports with cuda-python equivalents, e.g., 'import pycuda.driver as cuda' -> 'import cuda'.","message":"In TensorRT 10.14, pycuda was removed in favor of cuda-python. Code using pycuda will break.","severity":"breaking","affected_versions":">=10.14.0"},{"fix":"Migrate to IPluginV3-based version 2 plugins.","message":"Plugin version 1 of several plugins (e.g., cropAndResizeDynamic, modulatedDeformConv) deprecated starting 10.12, will be removed in future versions.","severity":"deprecated","affected_versions":">=10.12.0"},{"fix":"Install the correct TensorRT variant matching your CUDA version (e.g., tensorrt-cu12, tensorrt-cu11).","message":"The package 'tensorrt-cu13' is CUDA-specific. Installing on a system without compatible CUDA runtime may cause import errors like 'Could not find cudart64_13.dll'.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install tensorrt-cu13'.","cause":"The tensorrt package is not installed or installed under a different name (e.g., tensorrt-cu13 is required).","error":"ModuleNotFoundError: No module named 'tensorrt'"},{"fix":"Install the matching CUDA version. For tensorrt-cu13, ensure CUDA 13.x is installed and LD_LIBRARY_PATH set correctly.","cause":"CUDA runtime library not found or incompatible with the TensorRT variant.","error":"ImportError: libcudart.so.xx: cannot open shared object file: No such file or directory"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}