直接运行系统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/
直接安装吧