You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: finalize GPU documentation and enable draft mode
- Condense GPU options section for better readability
- Fix println statements to display both GPU and CPU option values
- Remove unnecessary Draft meta blocks
- Enable draft mode to execute @example blocks in documentation
- Add comments clarifying CPU defaults are equivalent to explicit {CPU} types
Copy file name to clipboardExpand all lines: docs/src/manual-solve-gpu.md
+11-36Lines changed: 11 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,5 @@
1
1
# [Solve on GPU](@id manual-solve-gpu)
2
2
3
-
4
-
```@meta
5
-
Draft = false
6
-
```
7
-
8
3
This manual explains how to solve optimal control problems on GPU using the [`solve`](@ref) function. GPU acceleration is available through [ExaModels.jl](https://exanauts.github.io/ExaModels.jl/stable) and [MadNLPGPU.jl](https://github.com/MadNLP/MadNLP.jl), with current support for NVIDIA GPUs via [CUDA.jl](https://github.com/JuliaGPU/CUDA.jl).
9
4
10
5
For basic CPU solving, see [Solve a problem](@ref manual-solve).
@@ -72,44 +67,25 @@ sol = solve(ocp, :gpu; grid_size=100, print_level=MadNLP.ERROR)
72
67
73
68
### What the `:gpu` token does
74
69
75
-
The `:gpu` parameter token automatically selects GPU-optimized defaults:
76
-
77
-
**For `Exa` modeler:**
70
+
The `:gpu` parameter automatically selects GPU-optimized defaults:
78
71
79
-
- Sets `backend` to CUDA backend
80
-
- Enables GPU-optimized automatic differentiation
81
-
82
-
**For `MadNLP` solver:**
83
-
84
-
- Sets `linear_solver` to `MadNLPGPU.CUDSSSolver` (instead of `MadNLP.MumpsSolver`)
85
-
- Configures GPU-specific solver options
86
-
87
-
You can inspect these defaults:
72
+
-**Exa modeler**: CUDA backend + GPU-optimized automatic differentiation
73
+
-**MadNLP solver**: `CUDSSSolver` linear solver (instead of `MumpsSolver`)
0 commit comments