CustomAllocateStreamPassFn
Applicability
|
Product |
Supported or Not |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Registers the execution function for a custom logical stream–assigned pass.
For details about the API, see "Custom Concurrency Using CustomStreamPassFunc".
Prototype
1
|
PassRegistrationData &CustomAllocateStreamPassFn(const CustomAllocateStreamPassFunc &allocate_stream_pass_fn) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
allocate_stream_pass_fn |
Input |
Custom logic stream assignment function. For details, see Callback Function CustomAllocateStreamPassFunc. |
Returns
Reference to its own object.
Constraints
None
Callback Function CustomAllocateStreamPassFunc
You can customize and implement the CustomAllocateStreamPassFunc class function.
Status CustomAllocateStreamPassFunc(const ConstGraphPtr &graph, StreamPassContext &stream_context)