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

Type for copy and fill should be device-copyable #425

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
16 changes: 12 additions & 4 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13842,7 +13842,8 @@ void copy(accessor<SrcT, SrcDims, SrcMode, SrcTgt, IsPlaceholder> src,
a@ Copies the contents of the memory object accessed by
[code]#src# into the memory pointed to by [code]#dest#.
[code]#dest# must be a host pointer and must have at least
as many bytes as the range accessed by [code]#src#.
as many bytes as the range accessed by [code]#src#. The
type [code]#DestT# must be <<device-copyable>>.

a@
[source]
Expand All @@ -13855,7 +13856,8 @@ void copy(std::shared_ptr<SrcT> src,
a@ Copies the contents of the memory pointed to by [code]#src#
into the memory object accessed by [code]#dest#.
[code]#src# must be a host pointer and must have at least
as many bytes as the range accessed by [code]#dest#.
as many bytes as the range accessed by [code]#dest#. The type
[code]#SrcT# must be <<device-copyable>>.

a@
[source]
Expand All @@ -13868,7 +13870,8 @@ void copy(accessor<SrcT, SrcDims, SrcMode, SrcTgt, IsPlaceholder> src,
a@ Copies the contents of the memory object accessed by
[code]#src# into the memory pointed to by [code]#dest#.
[code]#dest# must be a host pointer and must have at least
as many bytes as the range accessed by [code]#src#.
as many bytes as the range accessed by [code]#src#. The type
[code]#DestT# must be <<device-copyable>>.

a@
[source]
Expand All @@ -13881,7 +13884,8 @@ void copy(const SrcT* src,
a@ Copies the contents of the memory pointed to by [code]#src#
into the memory object accessed by [code]#dest#.
[code]#src# must be a host pointer and must have at least
as many bytes as the range accessed by [code]#dest#.
as many bytes as the range accessed by [code]#dest#. The type
[code]#SrcT# must be <<device-copyable>>.

a@
[source]
Expand Down Expand Up @@ -13945,6 +13949,8 @@ accessible on the handler's device. If a pointer is to a USM allocation, that
allocation must have been created from the same context as the handler's queue.
For more detail on USM, please see <<sec:usm>>.

The type [code]#T# must be <<device-copyable>>.

a@
[source]
----
Expand All @@ -13967,6 +13973,8 @@ context as the handler's queue, and the pointer must be accessible from the
queue's device. The [code]#pattern# is filled [code]#count# times. For more
detail on USM, please see <<sec:usm>>.

The type [code]#T# must be <<device-copyable>>.

a@
[source]
----
Expand Down