codeplaysoftware / standards-proposals

Repository for publicly sharing proposals in various standards groups
Apache License 2.0
27 stars 17 forks source link

Add proposal for interop_task #88

Closed Naghasan closed 5 years ago

Naghasan commented 5 years ago

This proposal add the possibility for a user to retrieve cl_mem object in a friendly way for SYCL data-flow model.

The proposal adds interop_task member function to the codeplay::handler to schedule the execution of a task on the host. It provides also a way to retrieve cl_mem object associated to an accessor to allow full interoperability with OpenCL.

AerialMantis commented 5 years ago

Looks good thanks, I think this fills an important gap in the SYCL data-flow model. My only concern here is in allowing device accessors within an interop_task as it could make it easier for users to run into undefined behaviour, so I've suggested an improvement to this.