鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

kupl_hbw_check_available

判断系统中是否存在OPM。

接口定义

int kupl_hbw_check_available();

返回值

  • 系统中存在OPM:返回1
  • 系统中不存在OPM:返回0

示例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <stdio.h> 
#include "kupl.h" 
   
int main() 
{ 
    if ( kupl_hbw_check_available() )
    {
        pritnf("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."。