PAPI 介绍

PAPI
    Performance Application Programming Interface
   
    papi是一个致力于提供给程序性能测试工具访问底层硬件借口的程序包,通过papi实现对程序在运行过程中特殊寄存器(主要是用来记录运算次数)的访问,来评判当前被测试程序性能的好坏。其功能非常强大,包括了上百种硬件可记录事件(Event)的收集,能够完成大多数程序评价,尤其是针对高性能计算的程序的性能的评价的重要参数。
   
    目前最新版本 PAPI 4.1.2.1,最新部分已经开始支持CUDA部分。
   
    papi项目由Lab Icl,UTK发起,AMD HP IBM intel Microsoft等企业赞助
   
    以下部分引自官网
    icl.cs.utk.edu/papi/index.html
   
Abstract

The Performance API (PAPI) project specifies a standard application programming interface (API) for accessing hardware performance counters available on most modern microprocessors. These counters exist as a small set of registers that count Events, occurrences of specific signals related to the processor's function. Monitoring these events facilitates correlation between the structure of source/object code and the efficiency of the mapping of that code to the underlying architecture. This correlation has a variety of uses in performance analysis including hand tuning, compiler optimization, debugging, benchmarking, monitoring and performance modeling. In addition, it is hoped that this information will prove useful in the development of new compilation technology as well as in steering architectural development towards alleviating commonly occurring bottlenecks in high performance computing.

Table of Contents RapidIO Trade Association 3 RapidIO Annex 1: Software/System Bring Up Specification Rev. 2.0 Chapter1 Overview 1.1Introduction............................................................................................................. 7 1.2Overview................................................................................................................. 7 1.3Scope....................................................................................................................... 7 1.4System Enumeration API........................................................................................ 8 1.5Terminology............................................................................................................ 8 1.6Software Conventions............................................................................................. 8 Chapter2 Requirements for System Bring Up 2.1Introduction............................................................................................................. 9 2.2Boot Requirements................................................................................................. 9 2.3Enumeration Completion...................................................................................... 10 2.4Enumeration Time-Out......................................................................................... 10 2.5Function Return Codes......................................................................................... 11 Chapter3 Hardware Abstraction Layer 3.1Introduction........................................................................................................... 13 3.2Device Addressing................................................................................................ 13 3.3HAL Functions..................................................................................................... 14 3.3.1Types and Definitions....................................................................................... 14 3.3.2rioGetNumLocalPorts....................................................................................... 14 3.3.3rioConfigurationRead....................................................................................... 14 3.3.4rioConfigurationWrite...................................................................................... 15 Chapter4 Standard Bring Up Functions 4.1Introduction........................................................................................................... 17 4.2bring up Functions................................................................................................ 17 4.3Data Structures...................................................................................................... 17 4.3.1rioInitLib........................................................................................................... 17 4.3.2rioGetFeatures................................................................................................... 18 4.3.3rioGetSwitchPortInfo........................................................................................ 18 4.3.4rioGetExtFeaturesPtr........................................................................................ 19 4.3.5rioGetNextExtFeaturesPtr................................................................................. 20 4.3.6rioGetSourceOps............................................................................................... 21 4.3.7rioGetDestOps.................................................................................................. 21 4.3.8rioGetAddressMode.......................................................................................... 22 4.3.9rioGetBaseDeviceId.......................................................................................... 23 4.3.10rioSetBaseDeviceId..........................................................................................
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值