-
Notifications
You must be signed in to change notification settings - Fork 223
Cleanup/streamline ImplicitPushXPSubOrbits() #6160
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
Cleanup/streamline ImplicitPushXPSubOrbits() #6160
Conversation
This type of changes might help reduce kernel size.
|
@WeiqunZhang Thanks for the suggestion. I plan to remove the mass matrices from this function in a near-future PR, but this is a great suggestion for now. I have a few questions.
|
Instead of capturing N*sizeof(Array4), it only captures size of a pointer. It needs Gpu::streamSynchronize, because the pointer to the buffer must be valid when the async kernel is still running. |
#ifdef WARPX_QED | ||
, do_sync, t_chi_max, p_optical_depth_QSR, evolve_opt | ||
#endif | ||
); | ||
|
||
if (!skip_deposition && doing_deposition) { |
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.
This ignores the skip_deposition flag. The presumption here is that with the implicit advance, the deposition will always be done?
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.
The logic was just consolidated and moved below. See lines 1058-1059
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.
Looks good!
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.
Thanks Justin & Weiqun, LGTM 👍
PR #6156 is failing a CI test because adding one additional int parameter in the ImplicitPushXPSubOrbits() routine pushes the kernel argument size beyond the 2048 byte limit.
This PR is an attempt to cleanup the ImplicitPushXPSubOrbits() function and to hopefully minimize the size of the kernel argument as much as possible.
@WeiqunZhang @ax3l @atmyers Any ideas for reducing this kernel argument size?