---
title: GetStreamId
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0158.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0158.html
indexId: 02e4aa3176fefe3447a1b975c09db29bfc60126945e25e31f7d77dbb1601d52672
---
# GetStreamId

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 头文件/库文件

- 头文件：#include <register/register_custom_pass.h>
- 库文件：libregister.so


#### 功能说明

获取节点上当前的Stream ID，其结果表示经过内置流分配算法以后该节点被分配的Stream ID。


#### 函数原型

```
int64_t GetStreamId(const GNode &node) const
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| node | 输入 | 图上节点。 |


#### 返回值说明

节点所属的Stream ID。


#### 约束说明

无
