-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add documentation for SequentialHostInit #607
Conversation
We should also talk about |
I added the memory space restrictions and also updated the Programming Guide. |
I have updated Programming Guide but have not discussed pitfalls with respect to |
`SequentialHostInit` can only be used when creating host accessible `View`s, such as `View`s with `HostSpace`, `SharedSpace`, | ||
or `SharedHostPinnedSpace` as memory space. |
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.
Should the DualView
case be mentioned here too?
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.
I think that is part of a larger paragraph including realloc and resize I would want to do that in a second pass.
@@ -145,7 +145,57 @@ Another issue is that View construction in a Kokkos parallel region does not upd | |||
|
|||
Here is how to create a View of Views, where each inner View has a separate owning allocation: | |||
|
|||
1. The outer View must have a memory space that is both host and device accessible, such as `CudaUVMSpace`. | |||
1. The outer View must have a memory space that is both host and device accessible, such as :cppkokkos:type:`SharedSpace`. |
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.
Should the possibility of using a DualView
for the outer view be mentioned as an alternative?
Co-authored-by: Maarten Arnst <[email protected]>
Co-authored-by: Maarten Arnst <[email protected]>
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 to me!
This also expands documentation for WithoutInitializing.