Skip to content

Commit

Permalink
Enable GPU support in trajectory bundle problem solver using CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
aarontrowbridge committed Feb 17, 2025
1 parent 07b31be commit c677bc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ using LinearAlgebra
using SparseArrays
using NamedTrajectories
using TrajectoryBundles
using CUDA

# construct dynamical generators: elements of real isomorphism of the Lie algebra 𝔰𝔲(2)

Expand Down Expand Up @@ -197,6 +198,8 @@ prob = TrajectoryBundleProblem(traj, f, r_loss, rs, cs;
TrajectoryBundles.solve!(prob;
max_iter = 200,
σ₀ = 1.0e0,
gpu = true,
gpu_backend = CUDA.CUDABackend()
)

# plot best trajectory
Expand Down

0 comments on commit c677bc1

Please sign in to comment.