Skip to content
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

Merged
merged 4 commits into from
Apr 4, 2024

Conversation

vlkale
Copy link
Contributor

@vlkale vlkale commented Apr 4, 2024

The Kokkos Core interface passes the struct by value not by pointer.

Copy link
Member

@dalg24 dalg24 left a 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 ...

@vlkale
Copy link
Contributor Author

vlkale commented Apr 4, 2024

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).

Copy link
Contributor

@masterleinad masterleinad left a 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?

@vlkale
Copy link
Contributor Author

vlkale commented Apr 4, 2024

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.

@crtrott
Copy link
Member

crtrott commented Apr 4, 2024

Modified the comment, we will have the test come in with the sampler thing.

@crtrott crtrott merged commit b41533f into kokkos:develop Apr 4, 2024
7 checks passed
@vlkale vlkale mentioned this pull request Apr 4, 2024
@vlkale vlkale deleted the fix-ptpi-ptr branch May 6, 2024 16:00
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.

4 participants