---
title: BlasSetNumThreadsLocal
description: "支持运行时设置local线程数。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0681.html
sourcePath: /source/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0681.html
indexId: 5beb3fed5961c3d2b65ab5ed04c6ea3d99c3541dd362797b314f669219d00a5761
---
# BlasSetNumThreadsLocal

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

#### 接口定义

void BlasSetNumThreadsLocal(int numThreadsLocal)


#### 参数

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


#### 依赖

#include "kblas.h"


#### 示例

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