Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jit the returned lcm function #77

Merged
merged 6 commits into from
Jun 1, 2024
Merged

Jit the returned lcm function #77

merged 6 commits into from
Jun 1, 2024

Conversation

mj023
Copy link
Collaborator

@mj023 mj023 commented May 29, 2024

In this PR we want to jit the function that is returned when we tell lcm to solve a model. This speeds up the execution time when solving a model for the first time and greatly reduces the execution time when solving the same model with different parameters.

  • Let Jax use the gpu backend if available
  • Jit the returned lcm function

@mj023 mj023 requested a review from timmens May 29, 2024 13:22
@timmens timmens mentioned this pull request Jun 1, 2024
3 tasks
Copy link
Member

@timmens timmens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you. This is a much nicer solution compared to #73.

@timmens timmens merged commit 3bed4b6 into main Jun 1, 2024
5 checks passed
@timmens timmens deleted the jit-solve branch June 1, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants