GPU Logging#
GPU-accelerated algorithms, such as PDHG and the PDHG-based MIP heuristics, are enabled with the PDHGGPU parameter.
If Gurobi detects a usable GPU, it prints two lines near the beginning of the log showing the device, its compute capability, and the CUDA and driver versions:
GPU model: NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition MIG 1g.24gb
CUDA version 13.4, compute version 12.0, NVIDIA driver compatible with CUDA version 13
If these lines are missing, Gurobi could not use the GPU. Requesting a
GPU-accelerated algorithm anyway, for example by solving an LP with
Method=6 and PDHGGPU=1,
does not stop the solve. Gurobi prints one of the messages below, then
continues on the CPU. The end of each message names the algorithm that falls
back to the CPU. For example, when the PDHG MIP heuristic cannot use the GPU,
the message ends with running PDHGMIPHeur on CPU instead.
Not a GPU Build#
Not a GPU build - running on CPU instead
The Gurobi binary you are using was built without GPU support.
Note
GPU support requires downloading a separate build. See Gurobi Downloads.
GPU Not Found#
The binary supports GPUs, but Gurobi could not access a device. Gurobi also prints the error it received from the CUDA toolkit, which usually points to the cause. A common case is:
GPU not found - running on CPU instead
CUDA error: CUDA driver version is insufficient for CUDA runtime version
The installed NVIDIA driver does not meet the minimum version required by the CUDA build Gurobi was built with. Update the NVIDIA driver or switch to a different binary.
Note
Refer to the CUDA driver compatibility table for compatible driver and toolkit combinations.
Another common case is:
GPU not found - running on CPU instead
CUDA error: no CUDA-capable device is detected
No GPU is visible to the Gurobi process. Check that nvidia-smi lists the
device, that CUDA_VISIBLE_DEVICES is not hiding it, and, when running in a
container or virtual machine, that the GPU is passed through to it.
Unsupported Compute Capability#
Not a supported GPU compute capability (found 3.0) - running on CPU instead
Gurobi found a GPU and a compatible driver, but the device’s compute capability is outside the range supported by your Gurobi GPU build. The supported range depends on whether you use the CUDA 12 or CUDA 13 build. Refer to Supported GPU Platforms for more details.