Share the GPU smoke test between OptimalControl and OptimalControlScalarized
I maintainer di solito rispondono entro 1 giorno
@ocots ci sta già lavorando.
Dal 10/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Context
Follow-up of #441, to be done once its phase C (shared OptimalControl / OptimalControlScalarized runners in test/common/optimalcontrol_tests.jl) is merged.
The two GPU smoke files differ only by the backend and the configuration group:
test/suite/GPU/test_smoke_optimalcontrol.jl(GPU_CONFIGS.OptimalControl, entry functiontest_smoke_optimalcontrol)test/suite/GPU/test_smoke_scalarized.jl(GPU_CONFIGS.OptimalControlScalarized, entry functiontest_smoke_scalarized)
Everything else is identical: the CUDA_FUNCTIONAL branch with the visible skip (TST6), the solve with SMOKE_GRID and SMOKE_MAX_ITER, and the finite-objective check.
Goal
Factor the GPU smoke test into one shared implementation parameterized by the backend, as #441 does for test_problem, test_smoke and test_convergence, without changing the behavior on a CPU runner or on a GPU runner.
Proposed approach
- In
test/common/optimalcontrol_tests.jl, or in a newtest/common/gpu_tests.jlif the module must not loadMain.TestCapabilitiesin CPU environments, addtest_smoke_gpu(backend). The configurations come fromgetfield(Main.TestConfigs.GPU_CONFIGS, Main.TestStatus.modeling(backend)). - Keep the two test files, each as a thin wrapper with its own module and entry function (
TST1), so that the report names (test_smoke_optimalcontrol <label>,test_smoke_scalarized <label>) do not change. - Keep
TST6: no earlyreturnin a@testset,Test.@test_skipwithout a functional device, andtest_contract.jlstill fails loudly on akktoroccidatarunner without a device. - Check that
tools/ci/scope.py(Repository.includers) still finds the includers of the new shared file;GPUis an opt-in environment, so it never enters the automatic scope. Add a case totools/ci/test/test_scope.pyif a new file is created. - Update
test/README.md("GPU tests") if the layout changes.
Out of scope
- The GPU configurations and the solvers (
GPU_CONFIGSintest/common/configs.jl). - Running the GPU tests in CI: they need the
run ci kkt-runnerorrun ci occidata-runnerlabel, and a runner with a device.
Checks
- On a CPU machine:
Pkg.test(; test_args=["GPU"])reports the same tests asBroken(skipped) as before. - On a GPU runner: the same solves run and the same lines appear in the report.
- Lingua principale
- Julia
- Stelle
- 13
- Fork
- 1
- Merge medio
- 3h 36m
- PR unite (30g)
- 57
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di control-toolbox/OptimalControlProblems.jl
-
Rationalize JuMP and comparison test suites: separate generic transcription unit tests from per-problem modeling checksForse già presa @ocots l’ha presa 2 giorni fa. Aperta
control-toolbox/OptimalControlProblems.jl#441 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Cron/Doc] ModelingToolkit convergence cron, trajectories, and documentation (#308)Forse già presa @ocots l’ha presa 2 giorni fa. Apertadocumentation feature
control-toolbox/OptimalControlProblems.jl#439 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
cron-convergence
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
control-toolbox/OptimalControlProblems.jl#436 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[Cron] cron-failureApertacron-failure
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
control-toolbox/OptimalControlProblems.jl#435 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[Dev] Expose the duals of the JuMP path, boundary and box constraints, aligned with signs.mdForse già presa @ocots l’ha presa 2 giorni fa. Aperta
control-toolbox/OptimalControlProblems.jl#430 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di control-toolbox/OptimalControlProblems.jl
Issue simili
-
documentation priority: high
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
epiforecasts/BVDOutbreakSize#1260 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
TuringLang/Turing.jl#2917 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Validate UserDemand return_factorForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 2 giorni