Day2-01_DevelopmentToolforCell-SPUTimingAnalysis-SDK30

Day2-01_DevelopmentToolforCell-SPUTimingAnalysis-SDK30 -...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: IBM Systems & Technology Group Cell/Quasar Ecosystem & Solutions Enablement Cell Programming Workshop 3/2/2008 2007 IBM Corporation 1 SPU Timing Tool static timing analysis Cell Programming Workshop Cell/Quasar Ecosystem & Solutions Enablement IBM Systems & Technology Group Cell/Quasar Ecosystem & Solutions Enablement 2007 IBM Corporation Cell Programming Workshop 3/2/2008 2 Class Objectives ! Learn how to use the static spu timing tool and analysis Trademarks- Cell Broadband Engine and Cell Broadband Engine Architecture are trademarks of Sony Computer Entertainment, Inc. IBM Systems & Technology Group Cell/Quasar Ecosystem & Solutions Enablement 2007 IBM Corporation Cell Programming Workshop 3/2/2008 3 Class Agenda ! What is the SPU timing tool? Features Syntax ! Sample output Interpreting the output ! Useful Techniques Profile markers for locating code sections of interest ! Functional Limitations ! References: Dan Brokenshire, Quasar Design Center IBM Systems & Technology Group Cell/Quasar Ecosystem & Solutions Enablement 2007 IBM Corporation Cell Programming Workshop 3/2/2008 4 What is the SPU timing tool ! Annotates an assembly source file with static analysis of instruction timing assuming linear (branchless) execution. Simplified pipeline model Does not account for: instruction fetch stalls local store contention branching Supports Cell SDK 2.0 SPU models Annotated assembly source (example.s.timing) C source code (example.c) Assembly source (example.s) spu-gcc S example.c or spuxlc S example.c spu_timing example.s IBM Systems & Technology Group Cell/Quasar Ecosystem & Solutions Enablement 2007 IBM Corporation Cell Programming Workshop 3/2/2008 5 Invocation Syntax spu_timing [options ] [input_file] ! options:--help displays a verbose help screen.-march=<cpu> specifies the target architecture. <cpu> is either cell or cell_edp-o <file> specifies the output file. Default is <input_file>. timing or stdout if no input file is specified.-running-count include column of running cycles counts for start of each instruction. ! <input_file> specifies the assembly input file. If not specified, spu_timing sources its input from stdin. IBM Systems & Technology Group Cell/Quasar Ecosystem & Solutions Enablement 2007 IBM Corporation Cell Programming Workshop 3/2/2008 6 Sample - C source (example.c) #include <spu_intrinsics.h> // Compute y = alpha * x + y, where alpha is a scalar and x and // y are 4*n element vectors. void saxpy(int n, float alpha, vec_float4 x, vec_float4 y) { int i; vec_float4 a; a = spu_splats(alpha); for (i=0; i<n; i++) { y[i] = spu_madd(a, x[i], y[i]); } } IBM Systems & Technology Group Cell/Quasar Ecosystem & Solutions Enablement 2007 IBM Corporation Cell Programming Workshop 3/2/2008 7 Sample - assembly source (example.s) .file "example.c .text .align 3 .global saxpy .type saxpy, @function saxpy: ila $2,66051 shlqbyi $7,$3,0 cgti...
View Full Document

This note was uploaded on 10/03/2011 for the course CDA 6938 taught by Professor Zou,c during the Spring '08 term at University of Central Florida.

Page1 / 19

Day2-01_DevelopmentToolforCell-SPUTimingAnalysis-SDK30 -...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online