Presentation is loading. Please wait.

Presentation is loading. Please wait.

USEIMPROVEEVANGELIZE ● Yue Chao ● Sun Campus Ambassador High-Performance Computing with Sun Studio 12.

Similar presentations


Presentation on theme: "USEIMPROVEEVANGELIZE ● Yue Chao ● Sun Campus Ambassador High-Performance Computing with Sun Studio 12."— Presentation transcript:

1 USEIMPROVEEVANGELIZE ● Yue Chao ● chaoye@email.uc.edu Sun Campus Ambassador High-Performance Computing with Sun Studio 12

2 USEIMPROVEEVANGELIZE Sun Studio 12 Sun Studio Software Because Performance Matters Develop in C, C++ and Fortran Performance: Accelerate Software Performance with Record-Setting Optimizing Compilers Platform: Develop for Solaris 8,9,10 OS (SPARC, x86 and x64) and Linux Parallelism: Maximize Throughput with Multi-Core Support for the Latest Systems Productivity: Debug and Tune Applications Graphically with Acclaimed Tools http://developers.sun.com/sunstudi o Community, Support, Training, and Professional Services

3 USEIMPROVEEVANGELIZE Sun Studio 12 Sun Studio - Integrated ● Optimizing C/C++/Fortran Compilers ● World's Most Advanced Debugger (dbx) ● Memory Leak Detection/Analysis (RTC) ● Accurate Performance Analysis Tools ● Multicore Optimizations, Multi-threaded High Perf Libraries, Thread Analysis ● OpenMP 2.5 API Support ● NetBeans-based IDE ● Dmake – Distributed and Parallel ● Community, Support, Training, Professional Services ● Sun Studio 12 – Solaris Platform (All Components) – Linux Platform (w/ Sun Compilers) – Thread Analysis including Dynamic Race Detection ● Sun Studio Express – Preview Version of Next Release – D-Light – lightweight, comprehensive, end-to-end profiling tool. All Available for Free – Unrestricted Use Sun Studio Software

4 USEIMPROVEEVANGELIZE Sun Studio 12 ● World Record Performance – Set over 50+ world records in the past 18 months – Compilers make a BIG difference on system performance! ● Workload Performance – UltraSPARC III – Sun Studio beats GCC by 46% – Opteron – Sun Studio beats GCC by 10% Sun Studio Performance

5 USEIMPROVEEVANGELIZE Sun Studio 12 Sun Studio – Cool Libraries ● Sun Performance Library – LAPACK v3.0, BLAS 1/2/3, Netlib Sparse BLAS, NST Fortran Sparse BLAS, Fast Fourier Transform (FFT), Convolution & correlation ● Optimized & Correct Math Libraries – Libmopt, libmcr, libsunmath ● C/C++ Garbage Collection Library ● Interval Arithmetic (Fortran) ● OpenMP and MPI (Sun Cluster Tools)

6 USEIMPROVEEVANGELIZE Sun Studio 12 Sun Studio – Cool Tools ● Graphical Debugger & Performance Analyzer ● Memory Leak and Access Detection ● GCCfss (GCC for Sparc Systems) ● Data Race Detection Tool (DRDT) ● ATS – Automatic Tuning System ● Simple Performance Optimization Tool (SPOT) ● Distribute Make (dmake) ● Compiler Commentary ● Automatic Parallelization ● X-Designer GUI Builder

7 USEIMPROVEEVANGELIZE Sun Studio 12

8 USEIMPROVEEVANGELIZE Sun Studio 12 The Multi-Core Revolution

9 USEIMPROVEEVANGELIZE Sun Studio 12 The Multi-Core Revolution thread cachecore thread cachecore thread cachecore Shared Cache System Interconnect (Memory, I/O, etc)

10 USEIMPROVEEVANGELIZE Sun Studio 12 Multi-Core Development Stack Solaris Event Ports Solaris LWPs Atomic Operations libumem Application Java P-Threads OpenMP M P I UltraSPARC x64/x86 Sun Developer Tools

11 USEIMPROVEEVANGELIZE Sun Studio 12 Automatic Parallelization for (i=0;i<n;i++) a[i] = b[i] + c[i]; for (i=0;i<n/P;i++) a[i] = b[i] + c[i]; for (i=n/P;i<2*n/P;i++) a[i] = b[i] + c[i]; Thread 1 for (i=n*(P-1)/P;i<P;i++) a[i] = b[i] + c[i]; Thread 2 Thread P -xautopar option for (i=0;i<n;i++) a[i] = b[i] + c[i]; for (i=0;i<n/P;i++) a[i] = b[i] + c[i]; for (i=n/P;i<2*n/P;i++) a[i] = b[i] + c[i]; for (i=n*(P-1)/P;i<P;i++) a[i] = b[i] + c[i]; ● Automatic Parallelization: Loop based - Done by the compiler – Different iterations of the loop are executed in parallel ● Same binary can be run using any number of threads

12 USEIMPROVEEVANGELIZE Sun Studio 12 http://www.openmp.org 0 1P Memory

13 USEIMPROVEEVANGELIZE Sun Studio 12 The OpenMP Execution Model Fork and Join Model Master Thread Worker Threads Parallel region Synchronization Parallel region Worker Threads Synchronization

14 USEIMPROVEEVANGELIZE Sun Studio 12 Perils of Parallelism – Example 1 for (i=0; i<n; i++) a[i] = a[i] + b[i]; Thread 1Thread 2 a[0]=a[0]+b[0]a[4]=a[4]+b[4] a[1]=a[1]+b[1]a[5]=a[5]+b[5] a[2]=a[2]+b[2]a[6]=a[6]+b[6] a[3]=a[3]+b[3]a[7]=a[7]+b[7] Time

15 USEIMPROVEEVANGELIZE Sun Studio 12 Perils of Parallelism – Example 2 for (i=0; i<n; i++) a[i] = a[i+1] + b[i]; Thread 1Thread 2 a[0]=a[1]+b[0]a[4]=a[5]+b[4] a[1]=a[2]+b[1]a[5]=a[6]+b[5] a[2]=a[3]+b[2]a[6]=a[7]+b[6] a[3]=a[4]+b[3]a[7]=a[8]+b[7] Time The result is not deterministic when run in parallel !

16 USEIMPROVEEVANGELIZE Sun Studio 12 Sun Studio 12 (Demo) ● Thread-aware Debugger – Pause/resume threads, memory access detection, memory leak detection, data race detection tool ● Performance Analyzer – Works with unmodified binaries (-g for source-level information) – Languages supported: C, Fortran C++ and Java – Supports Multi-Threaded programs: automatic parallelization and explicit parallelization (OpenMP, MPI, Pthreads) – Offers top to bottom performance data: routine, statement and instruction level, callers-callees information

17 USEIMPROVEEVANGELIZE Sun Studio 12 Fast Track Your Career with Free Training from Sun Get FREE Web-based training on Java TM, Solaris TM & more! – Visit: http://www.sunacademic.com Increase earnings potential with a Sun Certification! Sun Certified Associate/Programmer for the Java 2 Platform SE Sun Certified Web Component Developer for Java EE Sun Certified Mobile Application Developer for Java ME Sun Certified System/Network Admin for Solaris Operating System Free practice exams Discounted exams fees for academic developers – only US$60 (US$40 in APAC and Latin America)

18 USEIMPROVEEVANGELIZE Thank you! ● Yue Chao ● chaoye@email.uc.edu Sun Campus Ambassador Sun Studio 12 http://developers.sun.com/sunstudio


Download ppt "USEIMPROVEEVANGELIZE ● Yue Chao ● Sun Campus Ambassador High-Performance Computing with Sun Studio 12."

Similar presentations


Ads by Google