You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL][FPGA] Expose value_type and min_capacity from SYCL pipes extension class (#5471)
This is a convenience for users who may template their functions/classes on SYCL pipe types.
This allows them to do something like:
```c++
template<typename MyPipe>
void foo(/* ... */) {
using PipeT = MyPipe::value_type;
// ...
}
```
Test update: [intel/llvm-test-suite#800](intel/llvm-test-suite#800)
@@ -191,8 +195,8 @@ The read and write member functions may be invoked within device code, or within
191
195
The template parameters of the device type are defined as:
192
196
193
197
* `name`: Type that is the basis of pipe identification. Typically a user-defined class, in a user namespace. Forward declaration of the type is sufficient, and the type does not need to be defined.
194
-
* `dataT`: The type of data word/packet contained within a pipe. This is the data type that is read during a successful `pipe::read` operation, or written during a successful `pipe::write` operation. The type must be standard layout and trivially copyable.
195
-
* `min_capacity`: User defined minimum number of words in units of `dataT` that the pipe must be able to store without any being read out. A minimum capacity is required in some algorithms to avoid deadlock, or for performance tuning. An implementation can include more capacity than this parameter, but not less.
198
+
* `dataT`: The type of data word/packet contained within a pipe. This is the data type that is read during a successful `pipe::read` operation, or written during a successful `pipe::write` operation. The type must be standard layout and trivially copyable. This template parameter can be queried by using the `value_type` type alias.
199
+
* `min_capacity`: User defined minimum number of words in units of `dataT` that the pipe must be able to store without any being read out. A minimum capacity is required in some algorithms to avoid deadlock, or for performance tuning. An implementation can include more capacity than this parameter, but not less. This template parameter can be queried by using the `min_capacity` static member.
0 commit comments