junxnone / xwiki

https://junxnone.github.io/xwiki/
0 stars 0 forks source link

Hardware GPU iGPU Tools telemetry #171

Open junxnone opened 6 years ago

junxnone commented 6 years ago

intel-telemetry-tool

Build & Install

git clone https://github.com/Xiaogang-Li/intel-telemetry-tool.git
cd intel-telemetry-tool/build
./prebuild.sh
cd ..
./build.sh
sudo cp telemetry /usr/bin/

UseCase

sudo telemetry

image

Reference

junxnone commented 6 years ago

Error : No OpenCl header files

intel-telemetry-tool/build/lib$ make
Scanning dependencies of target intem
[  9%] Building CXX object CMakeFiles/intem.dir/cpu.cpp.o
[ 18%] Building CXX object CMakeFiles/intem.dir/cpuinfo.cpp.o
In file included from intel-telemetry-tool/library/cpuinfo.cpp:14:0:
intel-telemetry-tool/library/./inc/clinfo.h:4:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
CMakeFiles/intem.dir/build.make:86: recipe for target 'CMakeFiles/intem.dir/cpuinfo.cpp.o' failed
make[2]: *** [CMakeFiles/intem.dir/cpuinfo.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/intem.dir/all' failed
make[1]: *** [CMakeFiles/intem.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Solution

sudo apt-get install opencl-headers
junxnone commented 6 years ago

Error: No ncurses.h

In file included from intel-telemetry-tool/tool/telemetry.cpp:10:0:
intel-telemetry-tool/tool/display/screen.h:4:21: fatal error: ncurses.h: No such file or directory
compilation terminated.
CMakeFiles/telemetry.dir/build.make:62: recipe for target 'CMakeFiles/telemetry.dir/telemetry.cpp.o' failed
make[2]: *** [CMakeFiles/telemetry.dir/telemetry.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/telemetry.dir/all' failed
make[1]: *** [CMakeFiles/telemetry.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Solution

sudo apt-get install libncurses5-dev
junxnone commented 6 years ago

Error: Cannot find the OpenCL Library

[  9%] Linking CXX shared library libintem.so
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
CMakeFiles/intem.dir/build.make:328: recipe for target 'libintem.so' failed
make[2]: *** [libintem.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/intem.dir/all' failed
make[1]: *** [CMakeFiles/intem.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/junx/work/intel/intel-telemetry-tool/build/tool
[ 16%] Linking CXX executable telemetry
/usr/bin/ld: cannot find -lintem
collect2: error: ld returned 1 exit status
CMakeFiles/telemetry.dir/build.make:198: recipe for target 'telemetry' failed
make[2]: *** [telemetry] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/telemetry.dir/all' failed
make[1]: *** [CMakeFiles/telemetry.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Solution

export LIBRARY_PATH=$LIBRARY_PATH:/opt/intel/opencl

添加的路径应该是libOpenCL.so 所在的位置

or

sudo apt install ocl-icd-opencl-dev
junxnone commented 6 years ago

GPU - Compute Engine 没有数据:

使用 sudo telemetry 运行解决