Share the GPU smoke test between OptimalControl and OptimalControlScalarized
Mantenedores costumam responder em até 1 dia
@ocots já está trabalhando nisso.
Desde 10/11/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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.
- Linguagem predominante
- Julia
- Estrelas
- 13
- Forks
- 1
- Merge médio
- 3h 36min
- PRs com merge (30d)
- 57
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de control-toolbox/OptimalControlProblems.jl
-
Rationalize JuMP and comparison test suites: separate generic transcription unit tests from per-problem modeling checksTalvez já em andamento @ocots assumiu há 2 dias. Aberta
control-toolbox/OptimalControlProblems.jl#441 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[Cron/Doc] ModelingToolkit convergence cron, trajectories, and documentation (#308)Talvez já em andamento @ocots assumiu há 2 dias. Abertadocumentation feature
control-toolbox/OptimalControlProblems.jl#439 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
cron-convergence
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 32/100
control-toolbox/OptimalControlProblems.jl#436 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
[Cron] cron-failureAbertacron-failure
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
control-toolbox/OptimalControlProblems.jl#435 · 5 comentários ·
Mantenedores costumam responder em até 1 dia
-
[Dev] Expose the duals of the JuMP path, boundary and box constraints, aligned with signs.mdTalvez já em andamento @ocots assumiu há 2 dias. Aberta
control-toolbox/OptimalControlProblems.jl#430 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de control-toolbox/OptimalControlProblems.jl
Issues semelhantes
-
documentation priority: high
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
epiforecasts/BVDOutbreakSize#1260 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
TuringLang/Turing.jl#2917 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
-
Validate UserDemand return_factorTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 2 dias