Modify, build, test, debug, and contribute to NVIDIA cuOpt (C++/CUDA, Python, server, CI). Use for solver internals, PRs, DCO, and code conventions.
中文简介正在准备中。当前显示原文说明。
Install cuOpt for Python, C, or server via pip, conda, or Docker; verify the install. For building cuOpt from source, see cuopt-developer.
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
Install cuOpt to use it from Python, C, or as a REST server. For building cuOpt from source to contribute or modify it, see cuopt-developer.
cuopt-cu12 / libcuopt-cu12 with CUDA 12).cuopt-cuXX (Python) depends on libcuopt-cuXX (C), so installing the Python package also installs the C library and headers. Installing libcuopt-cuXX on its own does not install the Python API.Ask these if not already clear:
nvcc --version or nvidia-smi.Commands below install the latest stable release. For nightly builds (development branch HEAD, version NEXT = VERSION file on main, e.g. 26.12), change:
--pre --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple/ and pin each listed cuOpt package (including cuopt-sh-client) to ==NEXT.*.-c rapidsai with -c rapidsai-nightly and pin =NEXT.*.nvidia/cuopt:NEXT.0a-cu12 / -cu13 / -cu13-ubi10 instead of latest-*.Choose one — do not run both. The second install would override the first and can cause CUDA / package mismatch.
pip install --extra-index-url=https://pypi.nvidia.com cuopt-cu13
pip install --extra-index-url=https://pypi.nvidia.com cuopt-cu12
conda install -c rapidsai -c conda-forge -c nvidia cuopt
import cuopt
print(cuopt.__version__)
from cuopt import routing
dm = routing.DataModel(n_locations=3, n_fleet=1, n_orders=2)
The C API ships in libcuopt-cuXX, which is also pulled in as a dependency of cuopt-cuXX — so if you already installed the Python package, the C library and headers are already present. Install libcuopt standalone only when you want the C API without Python. Choose one of pip or conda — do not run both.
pip install --extra-index-url=https://pypi.nvidia.com libcuopt-cu13
pip install --extra-index-url=https://pypi.nvidia.com libcuopt-cu12
conda install -c rapidsai -c conda-forge -c nvidia libcuopt
See references/verification_examples.md
for the canonical C-API header/library find commands (conda and pip/venv variants).
pip install --extra-index-url=https://pypi.nvidia.com cuopt-server-cu12 cuopt-sh-client
conda install -c rapidsai -c conda-forge -c nvidia cuopt-server cuopt-sh-client
docker pull nvidia/cuopt:latest-cu12
docker run --gpus all -it --rm -p 8000:8000 nvidia/cuopt:latest-cu12
python -m cuopt_server.cuopt_service --ip 0.0.0.0 --port 8000 &
sleep 5
curl -s http://localhost:8000/cuopt/health | jq .
No module named 'cuopt' → check pip list | grep cuopt, which python, reinstall with the correct extra-index-url.nvidia-smi and nvcc --version; ensure the package CUDA suffix (cu12 vs cu13) matches the installed CUDA.cuopt-cuXX pulls in libcuopt-cuXX as a transitive dependency, so the C library (libcuopt.so) and headers (cuopt_c.h) are already available after installing the Python package. The reverse is not true: libcuopt-cuXX alone does not install the Python bindings.cuopt-developer — build cuOpt from source and contribute to the codebase.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Modify, build, test, debug, and contribute to NVIDIA cuOpt (C++/CUDA, Python, server, CI). Use for solver internals, PRs, DCO, and code conventions.
中文简介正在准备中。当前显示原文说明。
Trace, complete, and interpret the Pareto frontier across competing objectives using repeated single-objective cuOpt solves (weighted-sum and ε-constraint).
中文简介正在准备中。当前显示原文说明。
LP, MILP, and QP (beta) with cuOpt — Python, C, and CLI. Use when the user is solving LP, MILP, or QP with any cuOpt interface.
中文简介正在准备中。当前显示原文说明。
LP, MILP, QP — concepts, problem-text parsing, and formulation patterns (parameters, constraints, decisions, objective). Concepts only; no API.
中文简介正在准备中。当前显示原文说明。
Vehicle routing (VRP, TSP, PDP) with cuOpt — Python API only. Use when the user is building or solving routing in Python.
中文简介正在准备中。当前显示原文说明。
cuOpt REST server — start server, endpoints, Python/curl client examples. Use when the user is deploying or calling the REST API.
中文简介正在准备中。当前显示原文说明。