---
title: --compile_mode
description: "工作模式。可选。默认为纯编译模式，配置为tune为调优模式。简写为-m。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/opcompiletool/atlasop_compiler_07_0018.html
sourcePath: /source/zh/canncommercial/900/devaids/opcompiletool/atlasop_compiler_07_0018.html
indexId: 36e5e5c0648f28f852c01958a7a39722ada09360ff5dfa95f1eb624944016dd981
---
# --compile_mode

#### 功能说明

工作模式。可选。默认为纯编译模式，配置为tune为调优模式。简写为-m。


#### 关联参数

无。


#### 参数取值

取值支持配置为tune。


#### 推荐配置及收益

无。


#### 示例

```
op_compiler --op_params_dir=
<dump_dir>
--soc_version=
Ascendxxxx
--log=info --job=128 --compile_mode=tune --output=
<output_dir>
```


#### 支持的型号

Atlas 推理系列产品 ，不支持该参数

Atlas 训练系列产品 ，不支持该参数

Atlas A2 训练系列产品 / Atlas A2 推理系列产品 ，支持该参数

Atlas 350 加速卡，不支持该参数


#### 依赖约束

调优模式相关的使用约束如下：- 不支持不同用户同时使用同一device进行调优。
- 调优前，请确保关闭Profiling功能，避免影响调优结果。关闭Profiling功能具体操作请参见《性能调优工具(https://www.hiascend.com/document/detail/zh/canncommercial/900/devaids/Profiling/atlasprofiling_16_0144.html)》。
