Skip to content

Commit

Permalink
doc: update
Browse files Browse the repository at this point in the history
  • Loading branch information
atafra committed Nov 11, 2024
1 parent c39587b commit a213303
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1185,9 +1185,10 @@ where `devPtr` points to user-managed device-accessible memory and
data is allocated, but the buffer data provided by the user is used. The
buffer data must remain valid for as long as the buffer may be used, and
the user is responsible to free the buffer data when no longer required.
The user must also ensure that the memory is accessible by the device by
using allocation functions supported by the device
(e.g. `sycl::malloc_device`, `cudaMalloc`, `hipMalloc`).
The user must also ensure that the memory is accessible to the device by
using a supported allocation function (e.g., `sycl::malloc_device`,
`cudaMalloc`, `hipMalloc`) and alignment (e.g., Metal requires the
allocation to be page-aligned).
Buffers can be also imported from graphics APIs as external memory, to
avoid expensive copying of data through host memory. Different types of
Expand Down
4 changes: 2 additions & 2 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,8 @@ its size in bytes. At buffer construction time no buffer data is allocated, but
the buffer data provided by the user is used. The buffer data must remain valid
for as long as the buffer may be used, and the user is responsible to free the
buffer data when no longer required. The user must also ensure that the memory is
accessible to the device by using a supported allocation function (e.g.
`sycl::malloc_device`, `cudaMalloc`, `hipMalloc`) and alignment (e.g. Metal
accessible to the device by using a supported allocation function (e.g.,
`sycl::malloc_device`, `cudaMalloc`, `hipMalloc`) and alignment (e.g., Metal
requires the allocation to be page-aligned).

Buffers can be also imported from graphics APIs as external memory, to avoid
Expand Down
Binary file modified readme.pdf
Binary file not shown.

0 comments on commit a213303

Please sign in to comment.