---
title: BlasSetNumThreadsLocal
description: 支持运行时设置local线程数。
url: "https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/kunpengaccel_kml_0633.html"
---

# BlasSetNumThreadsLocal

支持运行时设置local线程数。

#### 接口定义

void BlasSetNumThreadsLocal(int numThreadsLocal)


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| numThreadsLocal | 整型数 | 设置的线程数，要求numThreads>0。 | 输入 |


#### 依赖

#include "kblas.h"


#### 示例

```
BlasSetNumThreadsLocal(4); // 设置运行local线程数为4
```
