SetStreamId
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File
#include <graph/kernel_launch_info.h>
Function Usage
Sets the stream ID of a task.
Prototype
1 | void SetStreamId(uint32_t stream_id) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
stream_id |
Input |
Stream ID. |
Returns
None
Constraints
None
Examples
1 2 3 4 5 6 7 | graphStatus Mc2GenTaskCallback(const gert::ExeResGenerationContext *context, std::vector<std::vector<uint8_t>> &tasks) { ... auto wait_task = KernelLaunchInfo::CreateHcomWaitTask(context); wait_task.SetStreamId(attach_stream_id); ... } |
Parent topic: KernelLaunchInfo