---
title: --kernel_name
description: "和--op_params_dir二选一必选，设置需要编译的调试版本的算子kernel_name。简写为-k。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/opcompiletool/atlasop_compiler_07_0016.html
sourcePath: /source/zh/canncommercial/900/devaids/opcompiletool/atlasop_compiler_07_0016.html
indexId: 5b8b0dd4149a68be54f4b79f05506222ff1aca6a3c2dc06a4c079800e68b5da481
---
# --kernel_name

#### 功能说明

和--op_params_dir二选一必选，设置需要编译的调试版本的算子kernel_name。简写为-k。

kernel_name的获取方式如下：算子执行过程中出现报错，根据报错日志可以获取到出错算子的kernel_name（搜索kernel_name关键字）。报错日志的获取方式请参考《日志参考(https://www.hiascend.com/document/detail/zh/canncommercial/900/maintenref/logreference/logreference_0001.html)》。


#### 关联参数

和--op_debug_config参数配合使用。仅在编译调试版本的二进制时，可以使用该参数。


#### 参数取值

在算子报错日志中搜索kernel_name关键字，找到报错的kernel_name。


#### 推荐配置及收益

无。


#### 示例

```
op_compiler --kernel_name=xxx  --soc_version=
<soc_version>
```


#### 支持的型号

Atlas 推理系列产品

Atlas 训练系列产品

Atlas A2 训练系列产品 / Atlas A2 推理系列产品

Atlas 350 加速卡


#### 依赖约束

无。
