I have put significant effort in installing cuOpt solver.
Overview what I have done:
- I am running Ubuntu 24.04 with Rtx 5070 ti GPU.
- Installed AMPL CE (activated it) and put it to Path (ampl command is found from terminal)
- I’ve installed Nvidia PPA 575 drivers that come with CUDA 12.9 (nvidia-smi confirms successful installation)
- Installed Docker app as instructed on Docker web page
- Installed Nvidia Container Toolkit
- Installed Nvidia CUDA Toolkit
- Installed Conda environment with Python 3.12
- Installed cuOpt with pip as instructed on cuOpt web page quickstart guide for C interface (cuopt_cli runs ok)
- Run from ampl dir (this is basically suggested on AMPL’s cuOpt solver webpage)
sudo docker run -it --rm --gpus all -v $(pwd):/workspace -w /workspace nvidia/cuda:12.9.0-runtime-ubuntu24.04 /bin/bash
- Docker successfully launches CUDA environment within AMPL dir (nvidia-smi shows correctly empty process list as it is docker, with 575 drivers; and ls command confirms it is AMPL dir)
- run ./ampl
- Pasted simple model to AMPL
var x >= 0;
var y >= 0;
maximize Objective: 3x + 5y;
subject to Constraint1: x + 2y <= 10;
subject to Constraint2: 2x + y <= 8;
option solver cuopt;
solve;
display x, y, Objective;
- I am getting error that cuopt is not found. The same applies if I set cuoptmp or cuopt_cli as solver.
I am still probably missing something. Can you help me set it up?