Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/suite/builders/test_options_forwarding.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function test_options_forwarding()
if is_cuda_on()
Test.@testset "backend (CUDA)" begin
Test.@test begin
modeler = OptimalControl.Exa(backend=CUDA.CUDABackend())
modeler = OptimalControl.Exa{OptimalControl.GPU}(backend=CUDA.CUDABackend())
nlp = OptimalControl.nlp_model(docp, normalized_init, modeler)
# With CUDA backend, x0 should be CUDA array
nlp.meta.x0 isa CUDA.CuArray
Expand Down
4 changes: 2 additions & 2 deletions test/suite/solve/test_canonical.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function test_canonical()
gpu_solver[2];
display=false,
) # warmup
timed_result = @timed begin
timed_result = CUDA.@timed begin
OptimalControl.solve(
pb.ocp,
normalized_init,
Expand All @@ -220,7 +220,7 @@ function test_canonical()
# Extract results
solve_result = timed_result.value
solve_time = timed_result.time
memory_bytes = timed_result.bytes
memory_bytes = timed_result.cpu_bytes + timed_result.gpu_bytes

success = OptimalControl.successful(solve_result)
obj = success ? OptimalControl.objective(solve_result) : 0.0
Expand Down
Loading