Skip to content

Commit

Permalink
Improve ProgramminGuide/View (#572)
Browse files Browse the repository at this point in the history
* Fix typo

* Improve accessibility table

* Remove HIP from the accessibility table
  • Loading branch information
masterleinad authored Aug 28, 2024
1 parent 6012f48 commit 6b60851
Showing 1 changed file with 6 additions and 8 deletions.
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

0 comments on commit 6b60851

Please sign in to comment.