Skip to content

Conversation

@AayushSabharwal
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2025

Benchmark Results (Julia vlts)

Time benchmarks
master 6a34ef8... master / 6a34ef8...
ODEProblem 0.0905 ± 0.005 s 0.0925 ± 0.0063 s 0.978 ± 0.086
init 0.0579 ± 0.0015 ms 0.0579 ± 0.0018 ms 1 ± 0.041
large_parameter_init/ODEProblem 0.976 ± 0.0086 s 0.985 ± 0.0063 s 0.991 ± 0.011
large_parameter_init/init 0.107 ± 0.0022 ms 0.107 ± 0.0019 ms 1 ± 0.027
mtkcompile 0.033 ± 0.0024 s 0.0324 ± 0.0019 s 1.02 ± 0.095
time_to_load 4.92 ± 0.031 s 5.01 ± 0.052 s 0.982 ± 0.012
Memory benchmarks
master 6a34ef8... master / 6a34ef8...
ODEProblem 0.659 M allocs: 22.1 MB 0.655 M allocs: 22 MB 1.01
init 0.892 k allocs: 0.0461 MB 0.892 k allocs: 0.046 MB 1
large_parameter_init/ODEProblem 4.21 M allocs: 0.163 GB 4.14 M allocs: 0.161 GB 1.01
large_parameter_init/init 1.74 k allocs: 0.0857 MB 1.74 k allocs: 0.0856 MB 1
mtkcompile 0.229 M allocs: 8.46 MB 0.225 M allocs: 8.35 MB 1.01
time_to_load 0.153 k allocs: 14.5 kB 0.153 k allocs: 14.5 kB 1

@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2025

Benchmark Results (Julia v1)

Time benchmarks
master 6a34ef8... master / 6a34ef8...
ODEProblem 0.101 ± 0.0059 s 0.107 ± 0.0058 s 0.946 ± 0.075
init 0.0438 ± 0.011 ms 0.0445 ± 0.011 ms 0.985 ± 0.34
large_parameter_init/ODEProblem 1.21 ± 0.02 s 1.18 ± 0.0055 s 1.03 ± 0.017
large_parameter_init/init 0.0792 ± 0.019 ms 0.0776 ± 0.015 ms 1.02 ± 0.32
mtkcompile 0.0386 ± 0.0014 s 0.0368 ± 0.0015 s 1.05 ± 0.058
time_to_load 5.22 ± 0.16 s 5.24 ± 0.064 s 0.996 ± 0.032
Memory benchmarks
master 6a34ef8... master / 6a34ef8...
ODEProblem 0.673 M allocs: 22.1 MB 0.668 M allocs: 22 MB 1.01
init 0.797 k allocs: 30.6 kB 0.797 k allocs: 30.5 kB 1
large_parameter_init/ODEProblem 4.46 M allocs: 0.164 GB 4.39 M allocs: 0.161 GB 1.02
large_parameter_init/init 1.64 k allocs: 0.0596 MB 1.64 k allocs: 0.0594 MB 1
mtkcompile 0.234 M allocs: 8 MB 0.23 M allocs: 7.89 MB 1.01
time_to_load 0.149 k allocs: 11.1 kB 0.149 k allocs: 11.1 kB 1

@ChrisRackauckas
Copy link
Member

Add a test for isbitstype?

@AayushSabharwal
Copy link
Member Author

Yeah I'm working on it. It's astonishing how many tests break if I change the SizedVector to an SVector

Comment on lines +15 to +16
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}

Comment on lines +24 to +25
discrete, constant,
nonnumeric, caches)
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
discrete, constant,
nonnumeric, caches)
discrete, constant,
nonnumeric, caches)

Comment on lines +28 to +29
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}

constant::C, nonnumeric::N,
caches::H) where {T, I, D, C, N, H}
return MTKParameters{T, I, D, C, N, H}(tunables, initials, discrete, constant,
nonnumeric, caches)
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
nonnumeric, caches)
nonnumeric, caches)

buffer, repack, _ = SciMLStructures.canonicalize(SciMLStructures.Initials(), initp)
initp = repack(floatT.(buffer))
if !(initp.initials isa StaticVector{0})
buffer, repack, _ = SciMLStructures.canonicalize(SciMLStructures.Initials(), initp)
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
buffer, repack, _ = SciMLStructures.canonicalize(SciMLStructures.Initials(), initp)
buffer, repack,
_ = SciMLStructures.canonicalize(SciMLStructures.Initials(), initp)

@AayushSabharwal AayushSabharwal merged commit 7b714be into master Nov 18, 2025
41 of 51 checks passed
@AayushSabharwal AayushSabharwal deleted the as/gpu-stuff branch November 18, 2025 08:44
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.

3 participants