手动安装intel-gpu-tools

直接运行系统intel_gpu_top命令会报错

Test assertion failure function init_instdone_definitions, file instdone.c:599:
Failed assertion: IS_GEN2(devid)

网上也找不到合适的解决办法,于是准备源码安装一遍intel_gpu_top

1.下载源码

https://github.com/ideak/intel-gpu-tools

2.autogen

[root@localhost intel-gpu-tools-master]# ./autogen.sh 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal ${ACLOCAL_FLAGS}
configure.ac:54: error: must install xorg-macros 1.16 or later before running autoconf/autogen
configure.ac:54: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

解决error

安装xorg-macros

dnf -y install xorg-x11-util-macros

================================================================================================================================================================================================================================================================
 软件包                                                                架构                                                    版本                                                           仓库                                                         大小
================================================================================================================================================================================================================================================================
安装:
 xorg-x11-util-macros                                                  noarch                                                  1.19.2-1.el8                                                   PowerTools                                                   58 k

事务概要
================================================================================================================================================================================================================================================================
已安装:
  xorg-x11-util-macros-1.19.2-1.el8.noarch

【error】

configure: error: Package requirements (pciaccess >= 0.10) were not met:

Package 'pciaccess', required by 'virtual:world', not found

解决办法:

dnf -y install libpciaccess-devel

已安装:
  libpciaccess-devel-0.14-1.el8.x86_64  

【error】

configure: error: Package requirements (cairo) were not met:

Package 'cairo', required by 'virtual:world', not found

解决办法:

dnf -y install cairo-devel

 

可以一次安装

 dnf -y install xorg-x11-util-macros libpciaccess-devel kmod-devel procps-ng-devel libunwind-devel  cairo-devel

 

【error】

configure: error: Package requirements (libkmod) were not met:

Package 'libkmod', required by 'virtual:world', not found

解决办法:

cd /usr/lib64/pkgconfig/

vi libkmod.pc

文件中保存

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libkmod
Description: Library to deal with kernel modules
Version: @VERSION@
Libs: -L${libdir} -lkmod
Libs.private: @libzstd_LIBS@ @liblzma_LIBS@ @zlib_LIBS@
Cflags: -I${includedir}

 

【error】

configure: error: Package requirements (libprocps) were not met:

Package 'libprocps', required by 'virtual:world', not found

解决办法:

下载procps源码

https://github.com/thlorenz/procps

 

 

【error】

configure: error: Package requirements (libunwind) were not met:

Package 'libunwind', required by 'virtual:world', not found

解决办法:

dnf -y install libunwind-devel

3.编译

autogen之后,目录已经生成了configure,makefile文件

三连安装:

./configure;make;make install

安装完成后依然存在问题intel_gpu_top: instdone.c:329: init_instdone_definitions: Assertion `IS_GEN2(devid)' failed.

查看源码后发现,此版本intel_gpu_tool不支持Intel UHD Graphics 630 ,devId:16018

4.跟进Intel UHD Graphics 630的GPU信息查询的方法

https://archlinux.org/packages/community/x86_64/intel-gpu-tools/

直接安装吧

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值