-
Notifications
You must be signed in to change notification settings - Fork 2
WIP: GPU Support #113
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
base: main
Are you sure you want to change the base?
WIP: GPU Support #113
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #113 +/- ##
=======================================
Coverage ? 79.58%
=======================================
Files ? 17
Lines ? 1347
Branches ? 0
=======================================
Hits ? 1072
Misses ? 275
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| end | ||
| elseif @capture(x, (f_)(args__)) # Function call | ||
| return :($f.($(args...))) | ||
| elseif @capture(x, if a_ b_ else c_ end) # if expression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
| elseif @capture(x, if a_ b_ else c_ end) # if expression | |
| elseif @capture(x, if a_ | |
| b_ | |
| else | |
| c_ | |
| end) # if expression |
|
|
||
| f1, sys_mtk, | ||
| coord_args = mtk_grid_func(sys_mtk, dom, u0, | ||
| f1, sys_mtk, coord_args = mtk_grid_func(sys_mtk, dom, u0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
| f1, sys_mtk, coord_args = mtk_grid_func(sys_mtk, dom, u0, | |
| f1, sys_mtk, | |
| coord_args = mtk_grid_func(sys_mtk, dom, u0, |
| u = reshape(u, nvar, :) | ||
| calcJ(r, u, p, t, c1, c2, c3) = jacf(view(u, :, r), p, t, c1[r], c2[r], c3[r]) | ||
| blocks = map_closure_to_range(calcJ, 1:size(u, 2), alg, u, p, t, c1, c2, c3) | ||
| blocks3d = reduce((x,y) -> cat(x,y; dims=3), blocks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
| blocks3d = reduce((x,y) -> cat(x,y; dims=3), blocks) | |
| blocks3d = reduce((x, y) -> cat(x, y; dims = 3), blocks) |
|
|
||
| function gen_coord_func(sys, expr, coord_args, alg::MapAlgorithm=MapBroadcast(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
| function gen_coord_func(sys, expr, coord_args, alg::MapAlgorithm=MapBroadcast(); | |
| function gen_coord_func(sys, expr, coord_args, alg::MapAlgorithm = MapBroadcast(); |
| RuntimeGeneratedFunctions.init(@__MODULE__) | ||
|
|
||
| function build_coord_ode_function(sys_coord, coord_args; kwargs...) | ||
| function build_coord_ode_function(sys_coord, coord_args, MA::MapAlgorithm=MapBroadcast(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
| function build_coord_ode_function(sys_coord, coord_args, MA::MapAlgorithm=MapBroadcast(); | |
| function build_coord_ode_function(sys_coord, coord_args, MA::MapAlgorithm = MapBroadcast(); |
| end | ||
|
|
||
| function build_coord_jac_function(sys_coord, coord_args; sparse = false, kwargs...) | ||
| function build_coord_jac_function(sys_coord, coord_args, MA::MapAlgorithm=MapBroadcast(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
| function build_coord_jac_function(sys_coord, coord_args, MA::MapAlgorithm=MapBroadcast(); | |
| function build_coord_jac_function(sys_coord, coord_args, MA::MapAlgorithm = MapBroadcast(); |
| end | ||
|
|
||
| function build_coord_tgrad_function(sys_coord, coord_args; kwargs...) | ||
| function build_coord_tgrad_function(sys_coord, coord_args, MA::MapAlgorithm=MapBroadcast(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
| function build_coord_tgrad_function(sys_coord, coord_args, MA::MapAlgorithm=MapBroadcast(); | |
| function build_coord_tgrad_function( | |
| sys_coord, coord_args, MA::MapAlgorithm = MapBroadcast(); |
| u = reshape(u, nrows, :) | ||
| @info u, p, t, c1, c2, c3 | ||
| @info mtkf | ||
| du = mtkf(u, p, t, c1, c2, c3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
| du = mtkf(u, p, t, c1, c2, c3) | |
| du = mtkf(u, p, t, c1, c2, c3) |
No description provided.