---
title: kupl_hbw_check_available
description: "判断系统中是否存在OPM。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/KunpengHPCKit_developer_081.html
sourcePath: /source/zh/kunpenghpcs/hpckit/devg/KunpengHPCKit_developer_081.html
indexId: e1f3b4eee8d12e5b8a8b434997a2386c3170887fabe2fce3d5f2df1210eb1ae767
---
# kupl_hbw_check_available

判断系统中是否存在OPM。

#### 接口定义

int kupl_hbw_check_available();


#### 返回值

- 系统中存在OPM：返回1
- 系统中不存在OPM：返回0


#### 示例

```
#include <stdio.h> 
#include "kupl.h" 

int main() 
{ 
    if (kupl_hbw_check_available()) {
        printf("High Band-Width Memory is available in the system.\n");
    } else {
        printf("Cannot detect High Band-Width Memory in the system.\n");
    }
    return 0;
}
```


- 上述示例演示了判断系统中是否存在OPM的流程。
- 上述示例中，若系统中存在OPM，则会打印"High Band-Width Memory is available in the system."; 若不存在OPM， 则会打印"Cannot detect High Band-Width Memory in the system."。
