Share the GPU smoke test between OptimalControl and OptimalControlScalarized
Les mainteneurs répondent en général sous 1 jour
@ocots y travaille déjà.
Depuis le 10/11/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- Julia
- Étoiles
- 13
- Forks
- 1
- Merge moyen
- 3 h 36 min
- PR mergées (30 j)
- 57
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de control-toolbox/OptimalControlProblems.jl
-
Rationalize JuMP and comparison test suites: separate generic transcription unit tests from per-problem modeling checksPeut-être pris @ocots l’a pris il y a 2 jours. Ouverte
control-toolbox/OptimalControlProblems.jl#441 · 2 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
[Cron/Doc] ModelingToolkit convergence cron, trajectories, and documentation (#308)Peut-être pris @ocots l’a pris il y a 2 jours. Ouvertedocumentation feature
control-toolbox/OptimalControlProblems.jl#439 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
cron-convergence
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
control-toolbox/OptimalControlProblems.jl#436 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Cron] cron-failureOuvertecron-failure
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
control-toolbox/OptimalControlProblems.jl#435 · 5 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Dev] Expose the duals of the JuMP path, boundary and box constraints, aligned with signs.mdPeut-être pris @ocots l’a pris il y a 2 jours. Ouverte
control-toolbox/OptimalControlProblems.jl#430 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de control-toolbox/OptimalControlProblems.jl
Issues similaires
-
documentation priority: high
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
epiforecasts/BVDOutbreakSize#1260 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
TuringLang/Turing.jl#2917 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
-
Validate UserDemand return_factorPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 2 jours