cuda::pipeline_role#
2026-10-01
2 min read time
Applies to Linux and Windows
This page documents cuda::pipeline_role, an enumeration that specifies whether a thread acts as a producer or consumer in a partitioned pipeline.
Defined in header <cuda/pipeline>:
enum class pipeline_role : /* unspecified */ {
producer,
consumer
};
cuda::pipeline_role specifies the role of a particular thread in a partitioned producer/consumer pipeline.
Constants
|
A producer thread that generates data and issuing asynchronous operations. |
|
A consumer thread that consumes data and waiting for previously asynchronous operations to complete. |
Example
See the cuda::make_pipeline example.