dcmi_get_dcmi_version

【免费下载链接】driver 本项目是CANN提供的驱动模块,实现基础驱动和资源管理及调度等功能,使能昇腾芯片。 【免费下载链接】driver 项目地址: https://gitcode.com/cann/driver

Prototype

int dcmi_get_dcmi_version(char *dcmi_ver, unsigned int len)

Description

Queries the DCMI version.

Parameter Description

Parameter

Input/Output

Type

Description

dcmi_ver

Output

char *

Space requested by the user, which is used to store the returned version number.

len

Input

unsigned int

Length of dcmi_ver, at least 16 bytes.

Return Value

Type

Description

int

Results:

  • Success: The value 0 is returned.
  • Failure: For details about the return codes, see Return Codes.

Exception Handling

None.

Restrictions

Table 1 Support in different deployment scenarios

Product Model

root User in PM (Bare Metal) Scenarios

Running User Group (Non-root User) in PM (Bare Metal) Scenarios

root User in PM + Unprivileged Container Scenarios

Atlas 900 A2 PoD cluster basic unit

Y

Y

Y

Atlas 800T A2 training server

Y

Y

Y

Atlas 800I A2 inference server

Y

Y

Y

Atlas 200T A2 Box16 heterogeneous subrack

Y

Y

Y

A200I A2 Box heterogeneous component

Y

Y

Y

A300I A2 inference card

Y

Y

Y

Atlas 300T A2 training card

Y

Y

Y

Note: Y indicates that the function is supported, N indicates that the function is not supported, and NA indicates that the function is not involved and planned currently.

Example

...
int ret;
char dcmi_ver[16] = {0};
ret = dcmi_get_dcmi_version(dcmi_ver, sizeof(dcmi_ver));
...

【免费下载链接】driver 本项目是CANN提供的驱动模块,实现基础驱动和资源管理及调度等功能,使能昇腾芯片。 【免费下载链接】driver 项目地址: https://gitcode.com/cann/driver

Logo

欢迎加入 MCP 技术社区!与志同道合者携手前行,一同解锁 MCP 技术的无限可能!

更多推荐