Skip to content

Commit 8757d1c

Browse files
AdamBrouwersHarriesRuyk
authored andcommitted
Minor spelling and grammar corrections (#90)
1 parent 182df63 commit 8757d1c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

interop_task/interop_task.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ thread to continue submitting command groups).
2828
Other command groups enqueued in the same or different queues
2929
can be executed following the sequential consistency by guaranteeing the
3030
satisfaction of the requisites of this command group.
31-
It is the user's responsability to ensure the lambda submitted via interop_task does not create race conditions with other command groups or with the host.
31+
It is the user's responsibility to ensure the lambda submitted via interop_task does not create race conditions with other command groups or with the host.
3232

3333
The possibility of enqueuing host tasks on SYCL queues also enables the
3434
runtime to perform further optimizations when available.
35-
For example, a SYCL runtime may decide to map / unmap instead of copy operations,
36-
or performing asynchronous transfers while data is being computed.
35+
For example, a SYCL runtime may decide to map / unmap instead of performing copy operations,
36+
or perform asynchronous transfers while data is being computed.
3737

3838
### cl::sycl::codeplay::handler
3939

@@ -59,12 +59,12 @@ class handler : public cl::sycl::handler {
5959
6060
### codeplay::handler::interop_task
6161
62-
The `interop_task` allows users to submit tasks containing C++ statements with low-level API call (e.g. OpenCL Host API entries).
62+
The `interop_task` allows users to submit tasks containing C++ statements with low-level API calls (e.g. OpenCL Host API entries).
6363
The command group that encapsulates the task will execute following the usual SYCL dataflow execution rules.
6464
The functor passed to the `interop_task` takes as input a const reference to a `cl::sycl::codeplay::interop_handle`. The handle can be used to retrieve underlying OpenCL objects relative to the execution of the task.
6565
6666
It is not allowed to allocate new SYCL object inside an `interop_task`.
67-
It is the user responsibilities to ensure all operations peroformed inside the `interop_task` finished before returning from it.
67+
It is the user's responsibility to ensure that all operations performed inside the `interop_task` are finished before returning from it.
6868
6969
Although the statements inside the lambda submitted to the `interop_task` are executed on the host, the requirements and actions for the command group are satisied for the device.
7070
This is the opposite of the `host_handler` vendor extension, where requisites are satisfied for the host since the statements on the lambda submited to the single task are meant to have side effects on the host only.
@@ -132,7 +132,7 @@ This example calls the clFFT library from SYCL using the `interop_task`:
132132
#include <stdlib.h>
133133
#include <CL/sycl.hpp>
134134
135-
/* No need to explicitely include the OpenCL headers */
135+
/* No need to explicitly include the OpenCL headers */
136136
#include <clFFT.h>
137137
138138
int main( void )
@@ -150,7 +150,7 @@ int main( void )
150150
device_queue.submit([=](codeplay::handler& cgh) {
151151
auto X_accessor = X.get_access<access::mode::read_write>(cgh);
152152
h.interop_task([=](codeplay::interop_handle &handle) {
153-
/* FFT library realted declarations */
153+
/* FFT library related declarations */
154154
clfftPlanHandle planHandle;
155155
size_t clLengths[1] = {N};
156156
@@ -172,7 +172,7 @@ int main( void )
172172
1, &queue, 0, NULL, NULL,
173173
&X_mem, NULL, NULL);
174174
175-
/* Wait for calculations to be finished. */
175+
/* Wait for calculations to finish. */
176176
err = clFinish(queue);
177177
178178
/* Release the plan. */

0 commit comments

Comments
 (0)