Skip to content

Commit 13eabb4

Browse files
authored
clarify memory_scope_all_devices is an alias for memory_scope_all_svm_devices (#713)
1 parent 8cf694a commit 13eabb4

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

api/glossary.asciidoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,9 @@ Memory Scopes ::
445445
(memory-ordering constraints only apply to work-items executing in a
446446
work-group), *memory_scope_device* (memory-ordering constraints only
447447
apply to work-items executing on a single device) and
448-
*memory_scope_all_svm_devices* (memory-ordering constraints only apply
449-
to work-items executing across multiple devices and when using shared
450-
virtual memory).
448+
*memory_scope_all_svm_devices* or equivalently *memory_scope_all_devices*
449+
(memory-ordering constraints only apply to work-items executing across
450+
multiple devices and when using shared virtual memory).
451451

452452
Modification Order ::
453453
All modifications to a particular atomic object M occur in some
@@ -639,9 +639,9 @@ Scope inclusion ::
639639
and *A* and *B* are executed by work-items within the same work-group,
640640
or (3) if *P* is *memory_scope_device*, and *A* and *B* are executed by
641641
work-items on the same device, or (4) if *P* is
642-
*memory_scope_all_svm_devices*, if *A* and *B* are executed by host
643-
threads or by work-items on one or more devices that can share SVM
644-
memory with each other and the host process.
642+
*memory_scope_all_svm_devices* or *memory_scope_all_devices*, if *A* and *B*
643+
are executed by host threads or by work-items on one or more devices that
644+
can share SVM memory with each other and the host process.
645645

646646
Sequenced before ::
647647
A relation between evaluations executed by a single unit of execution.

api/opencl_architecture.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,7 @@ enumeration constant:
11881188
does not have the {CL_MEM_SVM_ATOMICS} flag set will commit to at least
11891189
*memory_scope_device* visibility, with full synchronization of the
11901190
buffer at a queue synchronization point (e.g. an OpenCL event).
1191+
* *memory_scope_all_devices*: an alias for *memory_scope_all_svm_devices*.
11911192

11921193
These memory scopes define a hierarchy of visibilities when analyzing the
11931194
ordering constraints of memory operations.

man/static/enums.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,8 @@ enums - Enumerated types and their permitted values
544544
`memory_scope_sub_group` +
545545
`memory_scope_work_group` +
546546
`memory_scope_device` +
547-
`memory_scope_all_svm_devices`
547+
`memory_scope_all_svm_devices` +
548+
`memory_scope_all_devices`
548549
|===
549550

550551

0 commit comments

Comments
 (0)