---
title: 函数：get_sys_param_opt
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclpythondevg_01_1022.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclpythondevg_01_1022.html
indexId: a169c512152990a41017ee1dad8c86e728515ed088294425a1490831152dc12471
---
# 函数：get_sys_param_opt

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |


#### 功能说明

获取当前进程中的运行时参数值。

如果不调用acl.rt.set_sys_param_opt接口设置运行时参数的值，直接调用本接口可获取各参数的默认值0，表示不开启确定性计算或内存访问越界检测；调用acl.rt.set_sys_param_opt接口设置运行时参数值后，若需获取参数值，需调用acl.rt.get_sys_param_opt接口。


#### 函数原型

- C函数原型
  1 aclError aclrtGetSysParamOpt(aclrtSysParamOpt opt, int64_t *value)

- python函数
  1 value, ret = acl.rt.get_sys_param_opt(opt)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| opt | int，运行时系统参数，参考aclSysParamOpt。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| value | int，运行时参数值。 |
| ret | int，返回0表示成功，返回其他值表示失败。 |
