v0.4.0 #15
Lhongpei
announced in
Announcements
v0.4.0
#15
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
PDHCG v0.4.0
This release introduces a device-independent solver architecture. The core algorithm is separated from device-specific operations, with independent CPU and CUDA implementations. This also provides a foundation for adding other hardware backends.
The main changes are:
For example, build both CPU and CUDA:
Choose the backend for each Python solve:
The equivalent options are
params.device = "cpu"in C and--device cpuin the CLI. Usepdhcg.print_devices()orpdhcg --list-devicesto see the compiled backends.When no device is specified, the build default is used, normally preferring CUDA over CPU. CUDA initialization failures are reported as errors rather than automatically switching to CPU.
C applications need to be recompiled against the updated API. The
eps_infeas_detectparameter has been removed; useeps_infeasiblein C orInfeasibleTolin Python.This discussion was created from the release v0.4.0.
All reactions