-
Notifications
You must be signed in to change notification settings - Fork 58
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
Remove tool programming interface pointer in kp_sampler_skip.cpp and kp_core.hpp #247
Conversation
kp_sampler_skip.cpp: last parameter should be passed by value rather than pointer in kokkosp_p_t_p_i
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.
Please provide a proper description. Removing the pointer because ...
@dalg24 Thanks. I put this in the description (fence function pointer is null - note this impacts the tools that use the tool-invoked fence which is currently just the sampler). |
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.
Can you add a test that would have detected the problem?
@masterleinad Thanks for bringing this up. I think that this is handled by that test for the sampler you helped me. That said, I can certainly add in a test case in the small chain of patches I have upcoming right now. The next one consists of the tests and I will put a matcher to check for the print of the fence being null. |
Modified the comment, we will have the test come in with the sampler thing. |
The Kokkos Core interface passes the struct by value not by pointer.