From: Abel L. <abe...@gm...> - 2008-02-26 21:10:37
|
What's the difference between a floating point instruction and a floating point operation? I have papi installed with perfsuite on top of it. When I run a program I get a large number for floating point operations but zero for floating point instructions. First if all I don't know the difference and second of all why am getting zero for floating point instructions? Here is the output to psrun. <hwpcevent type="preset" name="PAPI_BR_INS" derived="no">996217933</ hwpcevent> <hwpcevent type="preset" name="PAPI_BR_MSP" derived="no">2639</hwpcevent> <hwpcevent type="preset" name="PAPI_BR_TKN" derived="no">995330538</hwpcevent> <hwpcevent type="preset" name="PAPI_FP_INS" derived="yes">0</hwpcevent> <hwpcevent type="preset" name="PAPI_FP_OPS" derived="yes">2983143200</hwpcevent> <hwpcevent type="preset" name="PAPI_L1_ICA" derived="no">26839719801</hwpcevent> <hwpcevent type="preset" name="PAPI_L1_ICM" derived="no">35060</hwpcevent> <hwpcevent type="preset" name="PAPI_L2_TCH" derived="no">249722</hwpcevent> <hwpcevent type="preset" name="PAPI_L2_TCM" derived="no">59</hwpcevent> <hwpcevent type="preset" name="PAPI_RES_STL" derived="no">0</hwpcevent> <hwpcevent type="preset" name="PAPI_TLB_DM" derived="no">21720</hwpcevent> <hwpcevent type="preset" name="PAPI_TLB_IM" derived="no">7835</hwpcevent> <hwpcevent type="preset" name="PAPI_TLB_TL" derived="no">30942</hwpcevent> <hwpcevent type="preset" name="PAPI_TOT_CYC" derived="no">82809635010</hwpcevent> <hwpcevent type="preset" name="PAPI_TOT_INS" derived="no">12960989996</hwpcevent> <hwpcevent type="preset" name="PAPI_VEC_INS" derived="yes">4982674130</hwpcevent> Here is psinv -p System Information - Node Name: bhutan OS Name: Linux OS Release: 2.6.13-perfctr-15.18-default OS Build/Version: #1 Wed Feb 6 22:58:43 EST 2008 OS Machine: x86_64 Processors: 1 Total Memory (MB): 1000.40 System Page Size (KB): 4.00 Processor Information - Vendor: Intel Processor family: Pentium 4 Brand: Intel(R) Pentium(R) 4 CPU 3.00GHz Model (Type): (unknown) Revision: 3 Clock Speed: 2992.61 MHz Cache and TLB Information - Cache levels: 2 Caches/TLBs: 5 Cache Details - Level 1: Type: Data Size: 16 KB Line size: 64 bytes Associativity: 8-way set associative Type: Instruction Trace Size: 12K uOps Associativity: 8-way set associative Level 2: Type: Unified Size: 2.00 MB Line size: 64 bytes Associativity: 8-way set associative TLB Details - Level 1: Type: Instruction Entries: 64 Pagesize (KB): 4 2048 4096 Associativity: Fully associative Type: Data Entries: 64 Pagesize (KB): 4 4096 Associativity: Fully associative PAPI Version Information - Major version: 3 Minor version: 5 Revision: 0 PAPI Standard Event Information - Standard events: 23 Non-derived events: 17 Derived events: 6 PAPI Standard Event Details - Non-derived: PAPI_BR_INS: Branch instructions PAPI_BR_MSP: Conditional branch instructions mispredicted PAPI_BR_NTK: Conditional branch instructions not taken PAPI_BR_PRC: Conditional branch instructions correctly predicted PAPI_BR_TKN: Conditional branch instructions taken PAPI_L1_ICA: Level 1 instruction cache accesses PAPI_L1_ICM: Level 1 instruction cache misses PAPI_L2_TCA: Level 2 total cache accesses PAPI_L2_TCH: Level 2 total cache hits PAPI_L2_TCM: Level 2 cache misses PAPI_RES_STL: Cycles stalled on any resource PAPI_TLB_DM: Data translation lookaside buffer misses PAPI_TLB_IM: Instruction translation lookaside buffer misses PAPI_TLB_TL: Total translation lookaside buffer misses PAPI_TOT_CYC: Total cycles PAPI_TOT_IIS: Instructions issued PAPI_TOT_INS: Instructions completed Derived: PAPI_FP_INS: Floating point instructions PAPI_FP_OPS: Floating point operations PAPI_LD_INS: Load instructions PAPI_LST_INS: Load/store instructions completed PAPI_SR_INS: Store instructions PAPI_VEC_INS: Vector/SIMD instructions Abel Abel Licon 915-867-4373 http://www.cis.udel.edu/~licon "That's Life!" -Frank Senatra |