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

Improve ProgramminGuide/View #572

Merged
merged 3 commits into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions docs/source/ProgrammingGuide/View.rst
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,11 @@ The following is the accessibility matrix for execution and memory spaces:

.. csv-table::

,Serial, OpenMP, Threads, Cuda, HIP,
HostSpace, x , x , x , , ,
CudaSpace, , , , x , ,
CudaUVMSpace, x , x , x , x , ,
CudaHostPinnedSpace, x , x , x , x , ,
HIPSpace, , , , , x ,
HIPHostPinnedSpace, x , x , x , , x ,
,Serial, OpenMP, Threads, Cuda
HostSpace, :octicon:`check` , :octicon:`check` , :octicon:`check` , :octicon:`x` ,
CudaSpace, :octicon:`x` , :octicon:`x` , :octicon:`x` , :octicon:`check` ,
CudaUVMSpace, :octicon:`check` , :octicon:`check` , :octicon:`check` , :octicon:`check` ,
CudaHostPinnedSpace, :octicon:`check` , :octicon:`check` , :octicon:`check` , :octicon:`check` ,

This relationship can be queried via the `SpaceAccessibility` class:

Expand Down Expand Up @@ -534,7 +532,7 @@ A user is in most cases also allowed to obtain a pointer to a specific element v
someLibraryFunction(&x(3));
}

This is only valid if a Views reference type is an `lvalue`. That property can be queried statically at compile time from the view through its `reference_is_lvalue` member.
This is only valid if a Views reference type is an `lvalue`. That property can be queried statically at compile time from the view through its `reference_type_is_lvalue` member.


6.5 Access traits
Expand Down
Loading