-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][FPGA] Rework blocking pipes #318
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
[SYCL][FPGA] Rework blocking pipes #318
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good feature!
The non-blocking API seems very verbose but it can be simplified later or anyone can develop a C++ library anyway on top of it.
There are still a few comments...
|
||
Consider following code: | ||
.. code:: cpp | ||
template <class name, typename dataT, size_t min_capacity = 0> class pipe; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typename name
?
#292 adds common infrastructure for pipes + non-blocking operations. I'd like to commit #292 first and rebase #318 after that. |
Sorry for the mess with PRs, I didn't mean to :( This one is about adding blocking pipe instructing in SPIR-V translator and using SPIR-V friendly mangled functions in the header. So it depends on a #292. |
580f732
to
adeee75
Compare
Signed-off-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
Replace workaround of using loop wrapper on a read/write pipe function call with a call of blocking functions. Signed-off-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
adeee75
to
cae4bc3
Compare
@keryell, @agozillon are you okay to merge this PR? |
Yeah LGTM, thanks for checking/asking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to have blocking pipes!
It will reduce a little bit the global carbon footprint for applications running on FPGA... :-)
Replace workaround of using loop wrapper on a read/write pipe
function call with a call of blocking function.