Skip to content

Commit 7d0cc8b

Browse files
committed
fix typo
1 parent 262a25b commit 7d0cc8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2021-04-11-hipsycl-091-buffer-policies.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ To address both the destructor antipattern as well as the complexity of buffers,
7878

7979
For example, a `sync_writeback_view` refers to the behavior where the destructor blocks (`sync`), a writeback will be issued in the destructor (`writeback`) and the buffer will operate directly on provided input data pointers (`view`).
8080

81-
These behaviors are not expressed as new C++ types, but as regular `sycl::buffer` ojects that are initialized with special buffer properties. buffers with explicit behaviors are constructed using factory functions such as `buffer<T, Dim> make_sync_buffer(...)`.
81+
These behaviors are not expressed as new C++ types, but as regular `sycl::buffer` objects that are initialized with special buffer properties. buffers with explicit behaviors are constructed using factory functions such as `buffer<T, Dim> make_sync_buffer(...)`.
8282
Since these functions still return a `sycl::buffer<T, Dim>`, explicit buffer behaviors integrate well with existing SYCL code that relies on the `sycl::buffer` type.
8383

8484
Using those factory functions instead of directly constructing `sycl::buffer` objects significantly improves code clarity - the programmer can now see with one quick glance at the function call what is going to happen, and what performance implications there are.

0 commit comments

Comments
 (0)