-
Notifications
You must be signed in to change notification settings - Fork 206
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
support for active_cells_map in kernels #3920
base: main
Are you sure you want to change the base?
Conversation
Probably this is very hacky, a better way to go about it would be to add a map to the |
….jl into ss/active-index-macro
west_halo_dependent_cells = interior_active_indices(ibg; parameters = KernelParameters(west_boundary...)) | ||
east_halo_dependent_cells = interior_active_indices(ibg; parameters = KernelParameters(east_boundary...)) | ||
south_halo_dependent_cells = interior_active_indices(ibg; parameters = KernelParameters(south_boundary...)) | ||
north_halo_dependent_cells = interior_active_indices(ibg; parameters = KernelParameters(north_boundary...)) |
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.
you can also add a constructor for tuples
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.
for KernelParameters
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.
It's much better! Possibly, @vchuravy may want to look at the implementation
I don't think this is correct, or at least, it works but it is very ad-hoc because it is adding a CUDA-specific method (with the cuda-specific @vchuravy, what would be the best way to add something like this to KA? Would adding a new field to the |
Or, maybe I don't completely understand the CUDA.@device_override function
cuda specific body...
end
Metal.@device_override function
metal specific body...
end work to specialize the function for different backends? |
I am not sure how hacky this is or if it will work throughout the board, but this is supposed to achieve what was discussed in #3918:
for example, the current script:
returns