---
title: 'PTAT tool on Linux'
disqus: hackmd
---
PTAT tool on Linux
===
## Table of Contents
[TOC]
## Beginners Guide
Ref:
https://wiki.ith.intel.com/display/OSGCSH/PTAT+tool
https://wiki.ith.intel.com/pages/viewpage.action?pageId=1966402253#TAT/PTAT(WindowsandLinux)-LinuxUbuntu18.4
Installation
---
Download PTAT tool
```
wget http://osgc-sh-earth.sh.intel.com/ileaf-tests/results/zhenhan/tools/Intel%20Power%20and%20Thermal%20Analysis%20Tool%201.0.1007_Linux.zip
unzip 'Intel Power and Thermal Analysis Tool 1.0.1007_Linux.zip'
tar -xvf 'Intel(R)PowerAndThermalAnalysisToolLinux.tar.gz'
mv -f IntelPowerAndThermalAnalysisTool/ ../
cd IntelPowerAndThermalAnalysisTool
sudo su
./install.sh -i
exit
```
>It will display successful installation message and tool get installed to default location (/usr/local/IntelPTAT)
Run PTAT
---
(/usr/local/IntelPTAT)
Open new terminal to run PTAT
```
sudo /usr/local/IntelPTAT/Host/PTATCMD
#wait few seconds
Connecting to target service that is running on local system...
Intel (R) Power And Thermal Analysis Tool
BuildDate : Dec 8 2021
Version : 1.0.1007 Connected to : hcadlp-Alder-Lake-Client-Platform
Executing Commandline application. Press Ctrl-c to quit
Polling Time : 1000 MilliSec
syncPeriod : 10000 millisec
Time to execute : Infinite
Monitor log file : PTATMonitor.csv
Monitor log type CSV
App Events log file : PTATAppEvents.csv
App Events log type CSV
```
Log saved in ~/Documents/iPTAT/log/
>./benchmark_app -m '/home/hc-adlp/Desktop/openvino/yolo-v4-tf/FP16-INT8/yolo-v4-tf.xml' -d GPU.1 --hint throughput
>
[Step 11/11] Dumping statistics report
[ INFO ] Count: 11136 iterations
[ INFO ] Duration: 60557.48 ms
[ INFO ] Latency:
[ INFO ] Median: 348.89 ms
[ INFO ] Average: 347.47 ms
[ INFO ] Min: 175.19 ms
[ INFO ] Max: 1193.56 ms
[ INFO ] Throughput: 183.89 FPS
Checked result: Not Clipped
But Max frquency: 1750~1800 Mhz
DG2 512 clock should able > 2000MHz

Result
---
DG Package Power-DG0(Watts)
GPU Temperature-DG0(Degree C)
GT Clip Reason-DG0
Current Unslice-Gfx
Frequency-DG0(MHz)
Current Slice-Gfx
Frequency-DG0(MHz)
Fan Speed-DG0
Thermal Margining-DG0
TJMAX Temperature-DG0(Degree C)
TCC Offset
Temperature-DG0(Degree C)
Fan Temperature
Target Offset-DG0(Degree C)
TCC Offset Clamp-DG0(Degree C)
TCC Offset Time Window-DG0(Degree C)
Thermal Clip Reason-DG0
Power Limit_1 Enabled-DG0
Power Limit_1 Critical Clamp-DG0
Power Limit_1 Power-DG0(Watts)
Power Limit_1 Time-DG0(Seconds)
Power Limit_2 Enabled-DG0
Power Limit_2 Critical Clamp-DG0
Power Limit_2 Power-DG0(Watts)
Power Limit_2 Time-DG0(Seconds)

###### tags: `DG2` `Tools`