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

Some automated conversions in saveat #309

Merged
merged 7 commits into from
Oct 23, 2023
Merged

Some automated conversions in saveat #309

merged 7 commits into from
Oct 23, 2023

Conversation

ChrisRackauckas
Copy link
Member

This makes it nicer to use Float32 from R and Python, since you can just saveat=0.01 and it attempts to convert the type to Float32 if the JIT was to Float32

@ChrisRackauckas
Copy link
Member Author

@utkarsh530 can you check what's going on with Metal?

@utkarsh530
Copy link
Member

It should be ready now after the tests pass.

DiffEqDevTools = "f3b72e0c-5b89-59e1-b016-84e28bfd966d"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"
Copy link
Member Author

Choose a reason for hiding this comment

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

is this intentional?

Comment on lines +21 to +22
## Don't test the problems in which GPUs don't support FP64 completely yet
## Creating StepRangeLen causes some param types to be FP64 inferred by `float` function
Copy link
Member Author

Choose a reason for hiding this comment

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

the conversion should change things to Float32?

@@ -0,0 +1,114 @@

# saveat is just a bool here:
Copy link
Member Author

Choose a reason for hiding this comment

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

That's not allowed?

@ChrisRackauckas ChrisRackauckas merged commit 304330d into master Oct 23, 2023
2 checks passed
@ChrisRackauckas ChrisRackauckas deleted the saveat branch October 23, 2023 10:50
@ChrisRackauckas
Copy link
Member Author

Merging so I can use it. But I'm still not sure about the bool dispatch.

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