---
title: GetSrcBlockTable接口
description: "获取请求在P节点上的block table下标。"
url: https://www.hiascend.com/document/detail/zh/mindie/latest/mindiellm/llmdev/mindie_llm0085.html
sourcePath: /source/zh/mindie/310/mindiellm/llmdev/mindie_llm0085.html
indexId: 2d757b1cfae9089f57fc759c83723de8fc0e6597b569f7f99f4bc87664ced86e58
---
# GetSrcBlockTable接口

#### 接口功能

获取请求在P节点上的block table下标。


#### 接口格式

```
std::vector<int64_t> GetSrcBlockTable() const;
```


#### 接口参数

无。


#### 使用样例

构造一个请求对象后，为该请求对象设置请求在P节点上的block table，获取请求在P节点上的block table下标。

```
mindie_llm::InferRequestId runtimeReqId(0);
std::shared_ptr<mindie_llm::InferRequest> runtimeRequest(runtimeReqId);
std::vector<int64_t> srcBlockTable{0, 1, 2};
runtimeRequest->SetSrcBlockTable(srcBlockTable);
auto blockTable = runtimeRequest->GetSrcBlockTable();
```


#### 返回值

源block table。
