intel/pti-gpu
حول
Profiling Tools Interfaces for GPU (PTI for GPU) is a set of Getting Started Documentation and Tools Library to start performance analysis on Intel(R) Processor Graphics easily
التصميم والوسائطالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- +٢
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلProfiling Tools Interfaces for GPU (PTI for GPU)
Overview
This repository provides tools and a library for collecting performance data on Intel(R) Graphics: the unitrace and sysmon tools, and the PTI SDK profiling library.
License
Profiling Tools Interfaces for GPU (PTI for GPU) is distributed under the MIT License.
You may obtain a copy of the License at https://opensource.org/license/MIT
Supported OS
- Linux
- Windows
Supported Platforms
- Intel® Processor Graphics Gen9 (formerly Skylake) and newer
- Intel® Iris® Xe Graphics
- Intel® Data Center GPU Flex Series
- Intel® Data Center GPU Max Series
- Intel® Arc™ Graphics
Regularly Tested Configurations
- Ubuntu 24.04 with Intel® Arc™ B580 Graphics
- Ubuntu 24.04 with Intel® Data Center GPU Max Series
- Windows 11 with Intel® Arc™ B580 Graphics
Tools and SDK
- unitrace - unified tracing and profiling tool. In addition to Level Zero and/or OpenCL, this tool is capable of profiling software layers in the software stack, for example, SYCL and plugins, oneCCL, MPI etc., for scale-up and scale-out applications. It also supports profiling hardware metrics (including instruction-level EU stalls) and software events at the same time.
- sysmon - Linux "top" like utility to monitor GPUs installed on a system;
- sdk - profiling library one can link against to gain the capability of profiling SYCL and Level Zero; used by PyTorch Profiler for the Intel® XPU Activity.
Prerequisites
CMake (version 3.22 and above)
Git (version 1.8 and above)
Python (version 3.9 and above)
On Linux one has to be a part of the
video(Ubuntu 18 and below) orrender(Ubuntu 19 and above) user group to do any computations on Intel(R) Processor Graphics:sudo usermod -a -G video <username> # OR sudo usermod -a -G render <username>OpenCL(TM) ICD Loader and Headers
to use non-standard path to OpenCL ICD library one may add it into
LD_LIBRARY_PATH:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path-to-opencl>
Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver
Intel(R) Metrics Discovery Application Programming Interface
- one may need to install
libdrm-devpackage to build the library from sources - one may need to allow metrics collection for non-root users
if using the i915 kernel module (e.g. PVC):
echo "0" | sudo tee /proc/sys/dev/i915/perf_stream_paranoidif using the xe kernel module (e.g. BMG):
echo "0" | sudo tee /proc/sys/dev/xe/observation_paranoid
- one may need to install
Metrics Library for Metrics Discovery API (Metrics Library for MD API)
-
on Ubuntu one may perform:
sudo apt-get install libdrm-dev
More information on what each tool needs can be found in its README.
Build
The top-level CMakeLists.txt builds Unitrace and PTI SDK together. To build them, use CMake in the root of this repository.
source /opt/intel/oneapi/setvars.sh
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release
cmake --build build
Tested software versions one may find in SOFTWARE file.
(*) Other names and brands may be claimed as property of others.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…