Intel Tuning for JURECA and JUWELS

Total Page:16

File Type:pdf, Size:1020Kb

Intel Tuning for JURECA and JUWELS FZJ, May 20th, 2020 Dr. Heinrich Bockhorst, Intel Agenda Introduction Processor Architecture Overview Composer XE – Compiler Intel Python APS – Application Performance Snapshot MPI and ITAC analysis VTune Amplifier XE - analysis Advisor XE - Vectorization Selected Intel® Tools References Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. The “Free Lunch” is over, really Processor clock rate growth halted around 2005 Source: © 2014, James Reinders, Intel, used with permission Software must be parallelized to realize all the potential performance Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. What platform should I use for code modernization? Juwels The world is going Intel® Xeon® Processor Intel® Xeon Phi™ x100 Intel® Xeon® Processor Intel® Xeon Phi™ x200 parallel – stick E5-2600 v3 Product Product Family E5-2600 v4 Product Product Family with sequential Family formerly formerly codenamed Family codenamed codenamed … code and you will codenamed Knights Broadwell Knights Skylake fall behind. Haswell Corner Landing Cores 18 61 22 72 28 Threads/Core 2 4 2 4 2 Vector Width 256-bit 512-bit 256-bit 512-bit (x2) 512-bit (x2) Peak Memory Bandwidth 68 GB/s 352 GB/s 77 GB/s >500 GB/s 228 GB/s Both Xeon and KNL are suitable platforms; KNL provides higher scale & memory bandwidth. Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Intel® Parallel Studio XE Intel® Inspector Intel® Advisor Vectorization Optimization and Thread Prototyping Memory and Threading Checking Intel® Cluster Checker Cluster Diagnostic Expert System Intel® VTune™ Amplifier Architecture Performance Profiler Intel® Trace Analyzer and Collector MPI Profiler Profiling, Analysis, Profiling,and Intel® Data Analytics Acceleration Library Intel® MPI Library Tools Cluster Optimized for Data Analytics & Machine Learning Intel® Integrated Performance Primitives Image, Signal, and Compression Routines Libraries Intel® Math Kernel Library Performance Intel® Threading Building Blocks Optimized Routines for Science, Engineering, and Financial Task-Based Parallel C++ Template Library Intel® C/C++ and Fortran Compilers Intel® Distribution for Python Performance Scripting Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Intel® ONEAPI toolkits(beta) Toolkits Tailored to Your Needs Domain-specific sets of tools to get your job done quickly. Intel® oneAPI Base Toolkit A core set of high-performance tools for building Data Parallel C++ applications and oneAPI library based applications Learn More Intel® oneAPI HPC Toolkit Intel® oneAPI IoT Toolkit Intel® oneAPI DL Framework Intel® oneAPI Rendering Developer Toolkit Toolkit Everything HPC developers need to Tools for building high-performing, Tools for developers & researchers Powerful rendering libraries to create deliver fast C++, Fortran, & OpenMP* efficient, reliable solutions that run at who build deep learning frameworks high-performance, high-fidelity applications that scale the network’s edge or customize existing ones so visualization applications applications run faster Learn More Learn More Learn More Learn More Toolkits Powered by oneAPI Intel® System Bring-Up Toolkit Intel® Distribution of OpenVINO™ Intel® AI Analytics Toolkit Toolkit Tools to debug & tune power & Tools to build high performance deep Tools to build applications that performance in pre- & post-silicon learning inference & computer vision leverage machine learning & deep development applications (production-level tool) learning models Learn More Learn More Learn More Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. 9 *Other names and brands may be claimed as the property of others. Some useful links ▪ Intro: https://software.intel.com/en-us/oneapi ▪ oneAPI initiative: https://www.oneapi.com/ ▪ Code migration: https://software.intel.com/en-us/oneapi-programming- guide-migrating-code-to-dpc ▪ Windows and Linux toolkits available on https://software.intel.com/en- us/oneapi ▪ Access to hardware in DevCloud: https://software.intel.com/content/www/us/en/develop/tools/devcloud.html Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. 10 *Other names and brands may be claimed as the property of others. Common Optimization Options Windows* Linux*, OS* X Disable optimization /Od -O0 Optimize for speed (no code size increase) /O1 -O1 Optimize for speed (default) /O2 -O2 High-level loop optimization /O3 -O3 Create symbols for debugging /Zi -g Multi-file inter-procedural optimization /Qipo -ipo Profile guided optimization (multi-step build) /Qprof-gen -prof-gen /Qprof-use -prof-use Optimize for speed across the entire program /fast -fast (“prototype switch”) same as: /O3 /Qipo same as: /Qprec-div-, Linux: -ipo –O3 -no-prec-div –static – fast options definitions changes over time! /fp:fast=2 /QxHost) fp-model fast=2 -xHost) OS X: -ipo -mdynamic-no-pic -O3 - no-prec-div -fp-model fast=2 -xHost OpenMP support /Qopenmp -qopenmp Automatic parallelization /Qparallel -parallel Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Vectorization Single Instruction Multiple Data (SIMD): – Processing vector with a single operation – Provides data level parallelism (DLP) – Because of DLP more efficient than scalar processing Vector: A B – Consists of more than one element AAi i BBi i A B Ai i Bi i – Elements are of same scalar data types (e.g. floats, integers, …) + + Ci Vector length (VL): Elements of the vector CCi C Ci i Scalar Vector VL Processing Processing Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Many Ways to Vectorize Compiler: Ease of use Auto-vectorization (no change of code) Compiler: Auto-vectorization hints (#pragma vector, …) Compiler: Intel® Cilk™ Plus Array Notation Extensions SIMD intrinsic class (e.g.: F32vec, F64vec, …) Vector intrinsic (e.g.: _mm_fmadd_pd(…), _mm_add_ps(…), …) Assembler code (e.g.: [v]addps, [v]addss, …) Programmer control Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Basic Vectorization Switches I Linux*, OS X*: -x<feature> ▪ Might enable Intel processor specific optimizations ▪ Processor-check added to “main” routine: Application errors in case SIMD feature missing or non-Intel processor with appropriate/informative message ▪ Example: -xCORE-AVX2 (Jureca Xeon HSW) ▪ Example: -xMIC-AVX512 (Jureca Booster KNL) ▪ Example: -xCORE-AVX512 (Juwels Xeon SKL) Linux*, OS X*: -ax<features> ▪ Multiple code paths: baseline and optimized/processor-specific ▪ Multiple SIMD features/paths possible, e.g.: -axSSE2,CORE-AVX512 ▪ Baseline code path defaults to –xSSE2 Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Basic Vectorization Switches II Special switch for Linux*, OS X*: -xHost ▪ Compiler checks SIMD features of current host processor (where built on) and makes use of latest SIMD feature available ▪ Code only executes on processors with same SIMD feature or later as on build host Refer to software.intel.com/articles/optimization-notice for more information regarding performance & optimization choices in Intel software products. Copyright ©, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Basic Vectorization Switches III Special switch in addition to CORE-AVX512: -qopt-zmm-usage=[keyword] ▪ [keyword] = [high | low] ; Note: “low” is the default ▪ Why choosing a defensive vectorization level? Frequency drops in vectorized parts. Frequency does not immediately increases after the vectorized loop. Too many small vectorized loops will decrease the performance for the serial part. Refer to software.intel.com/articles/optimization-notice for more information regarding
Recommended publications
  • Beyond BIOS Developing with the Unified Extensible Firmware Interface
    Digital Edition Digital Editions of selected Intel Press books are in addition to and complement the printed books. Click the icon to access information on other essential books for Developers and IT Professionals Visit our website at www.intel.com/intelpress Beyond BIOS Developing with the Unified Extensible Firmware Interface Second Edition Vincent Zimmer Michael Rothman Suresh Marisetty Copyright © 2010 Intel Corporation. All rights reserved. ISBN 13 978-1-934053-29-4 This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. It is sold with the understanding that the publisher is not engaged in professional services. If professional advice or other expert assistance is required, the services of a competent professional person should be sought. Intel Corporation may have patents or pending patent applications, trademarks, copyrights, or other intellectual property rights that relate to the presented subject matter. The furnishing of documents and other materials and information does not provide any license, express or implied, by estoppel or otherwise, to any such patents, trademarks, copyrights, or other intellectual property rights. Intel may make changes to specifications, product descriptions, and plans at any time, without notice. Fictitious names of companies, products, people, characters, and/or data mentioned herein are not intended to represent any real individual, company, product, or event. Intel products are not intended for use in medical, life saving, life sustaining, critical control or safety systems, or in nuclear facility applications. Intel, the Intel logo, Celeron, Intel Centrino, Intel NetBurst, Intel Xeon, Itanium, Pentium, MMX, and VTune are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
    [Show full text]
  • Intel Advisor for Dgpu Intel® Advisor Workflows
    Profile DPC++ and GPU workload performance Intel® VTune™ Profiler, Advisor Vladimir Tsymbal, Technical Consulting Engineer, Intel, IAGS Agenda • Introduction to GPU programming model • Overview of GPU Analysis in Intel® VTune Profiler • Offload Performance Tuning • GPU Compute/Media Hotspots • A DPC++ Code Sample Analysis Demo • Using Intel® Advisor to increase performance • Offload Advisor discrete GPUs • GPU Roofline for discrete GPUs Copyright © 2020, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. 2 Intel GPUs and Programming Model Gen9 Application Workloads • Most common Optimized Middleware & Frameworks in mobile, desktop and Intel oneAPI Product workstations Intel® Media SDK Direct Direct API-Based Gen11 Programming Programming Programming • Data Parallel Mobile OpenCL platforms with C API C++ Libraries Ice Lake CPU Gen12 Low-Level Hardware Interface • Intel Xe-LP GPU • Tiger Lake CPU Copyright © 2020, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. 3 GPU Application Analysis GPU Compute/Media Hotspots • Visibility into both host and GPU sides • HW-events based performance tuning methodology • Provides overtime and aggregated views GPU In-kernel Profiling • GPU source/instruction level profiling • SW instrumentation • Two modes: Basic Block latency and memory access latency Identify GPU occupancy and which kernel to profile. Tune a kernel on a fine grain level Copyright © 2020, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. 4 GPU Analysis: Aggregated and Overtime Views Copyright © 2020, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.
    [Show full text]
  • Hands-On Intel® Software Development & Oneapi WORKSHOP
    Hands-on Intel® Software Development & oneAPI WORKSHOP May 26-27, 2020 Scandic Solli, Parkveien 68 Box 2458 Solli, 0202 Oslo AGENDA DAY 1 - Technical Computing & Developer Tools - May 26 Timing Sessions 08:30 – 09:00 Registration & Light breakfast Part 1: Coding for maximum performance using the new Intel® Parallel Studio XE 2020 A refresher on the Intel® Hardware Architecture for Software Developers and Architects This session will offer in-depth insights into the current and future Intel® hardware platforms tailored to the 09:00 -09:45 needs of software developers, software architects, HPC and AI experts. We will cover the latest Intel® processors and the future Intel® GPU architecture. Developing code for Intel® architecture: how to achieve maximum performance using the new Intel® Parallel Studio XE 2020 09:45 – 10:30 Learn how Intel® Software Development Tools will help you to achieve optimal performance in your High Performance Computing, Artificial Intelligence ,and IoT projects. Includes a look at the new Intel® Parallel Studio XE 2020 tools which are designed to take advantage of the latest generation of Intel processors. 10:30 – 11:00 Coffee Break How to optimize and maximize code performance Learn how to use some of the advanced features of Intel® VTune™ Amplifier profile your applications. See how you can use event-based and architectural analysis to fine-tune your code so that it is taking full 11:00 – 12:00 advantage of the latest processor features of the target CPU. Learn how to use Intel Advisor, a powerful tool for tracking down and solving vectorization problems. In this session we will demonstrate how the Intel Advisor vector analysis and associated Roofline Model can be used to identify and help fixing vectorization problems.
    [Show full text]
  • Evaluating Techniques for Parallelization Tuning in MPI, Ompss and MPI/Ompss
    Evaluating techniques for parallelization tuning in MPI, OmpSs and MPI/OmpSs Advisors: Author: Prof. Jesús Labarta Vladimir Subotic´ Prof. Mateo Valero Prof. Eduard Ayguade´ A THESIS SUBMITTED IN FULFILMENT OF THE REQUIREMENTS FOR THE DEGREE OF Doctor per la Universitat Politècnica de Catalunya Departament d’Arquitectura de Computadors Barcelona, 2013 i Abstract Parallel programming is used to partition a computational problem among multiple processing units and to define how they interact (communicate and synchronize) in order to guarantee the correct result. The performance that is achieved when executing the parallel program on a parallel architec- ture is usually far from the optimal: computation unbalance and excessive interaction among processing units often cause lost cycles, reducing the efficiency of parallel computation. In this thesis we propose techniques oriented to better exploit parallelism in parallel applications, with especial emphasis in techniques that increase asynchronism. Theoretically, this type of parallelization tuning promises multiple benefits. First, it should mitigate communication and synchro- nization delays, thus increasing the overall performance. Furthermore, parallelization tuning should expose additional parallelism and therefore increase the scalability of execution. Finally, increased asynchronism would allow more flexible communication mechanisms, providing higher toler- ance to slower networks and external noise. In the first part of this thesis, we study the potential for tuning MPI par- allelism. More specifically, we explore automatic techniques to overlap communication and computation. We propose a speculative messaging technique that increases the overlap and requires no changes of the orig- inal MPI application. Our technique automatically identifies the applica- tion’s MPI activity and reinterprets that activity using optimally placed non-blocking MPI requests.
    [Show full text]
  • Introduction to Intel Performance Tools Part
    Introduction to Intel Performance Tools Part 1/2 Doug Roberts SHARCNET / COMPUTE CANADA Intel® Performance Tools o Intel Advisor - Optimize Vectorization and Thread Prototyping for C, C++, Fortran o Intel Inspector - Easy-to-use Memory and Threading Error Debugger for C, C++, Fortran o Intel Vtune Amplifier - Serial/Threaded Performance Profiler for C, C++, Fortran, Mixed Python o Intel Trace Analyzer and Collector - Understand MPI application behavior for C, C++, Fortran, OpenSHMEM o Intel Distribution for Python - High-performance Python powered by native Intel Performance Libraries Intel® Parallel Studio XE – Cluster Edition https://software.intel.com/en-us/parallel-studio-xe o Intel Advisor* https://software.intel.com/en-us/intel-advisor-xe o Intel Inspector* https://software.intel.com/en-us/intel-inspector-xe o Intel Vtune Amplifier* https://software.intel.com/en-us/intel-vtune-amplifier-xe o Intel Trace Analyzer and Collector* https://software.intel.com/en-us/intel-trace-analyzer o Intel Distribution for Python https://software.intel.com/en-us/distribution-for-python * Product Support → Training, Docs, Faq, Code Samples Initializating the Components – The Intel Way ssh graham.sharcnet.ca cd /opt/software/intel/18.0.1/parallel_studio_xe_2018.1.038 source psxevars.sh → linux/bin/compilervars.sh → clck_2018/bin/clckvars.sh → itac_2018/bin/itacvars.sh → inspector_2018/inspxe-vars.sh → vtune_amplifier_2018/amplxe-vars.sh → advisor_2018/advixe-vars.sh Examples ls /opt/software/intel/18.0.1/parallel_studio_xe_2018.1.038/samples_2018/en
    [Show full text]
  • Intel® Software Products Highlights and Best Practices
    Intel® Software Products Highlights and Best Practices Edmund Preiss Business Development Manager Entdecken Sie weitere interessante Artikel und News zum Thema auf all-electronics.de! Hier klicken & informieren! Agenda • Key enhancements and highlights since ISTEP’11 • Industry segments using Intel® Software Development Products • Customer Demo and Best Practices Copyright© 2012, Intel Corporation. All rights reserved. 2 *Other brands and names are the property of their respective owners. Key enhancements & highlights since ISTEP’11 3 All in One -- Intel® Cluster Studio XE 2012 Analysis & Correctness Tools Shared & Distributed Memory Application Development Intel Cluster Studio XE supports: -Shared Memory Processing MPI Libraries & Tools -Distributed Memory Processing Compilers & Libraries Programming Models -Hybrid Processing Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners. Intel® VTune™ Amplifier XE New VTune Amplifier XE features very well received by Software Developers Key reasons : • More intuitive – Improved GUI points to application inefficiencies • Preconfigured & customizable analysis profiles • Timeline View highlights concurrency issues • New Event/PC counter ratio analysis concept easy to grasp Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners. Intel® VTune™ Amplifier XE The Old Way versus The New Way The Old Way: To see if there is an issue with branch misprediction, multiply event value (86,400,000) by 14 cycles, then divide by CPU_CLK_UNHALTED.THREAD (5,214,000,000). Then compare the resulting value to a threshold. If it is too high, investigate. The New Way: Look at the Branch Mispredict metric, and see if any cells are pink.
    [Show full text]
  • Intel® Offload Advisor
    NHR@ZIB - Intel oneAPI Workshop, 2-3 March 2021 Intel® Advisor Offload Modelling and Analysis Klaus-Dieter Oertel Intel® Advisor for High Performance Code Design Rich Set of Capabilities Offload Modelling Design offload strategy and model performance on GPU. One Intel Software & Architecture (OISA) 2 Agenda ▪ Offload Modelling ▪ Roofline Analysis – Recap ▪ Roofline Analysis for GPU code ▪ Flow Graph Analyzer One Intel Software & Architecture (OISA) 3 Offload Modelling 4 Intel® Advisor - Offload Advisor Find code that can be profitably offloaded Starting from an optimized binary (running on CPU): ▪ Helps define which sections of the code should run on a given accelerator ▪ Provides performance projection on accelerators One Intel Software & Architecture (OISA) 5 Intel® Advisor - Offload Advisor What can be expected? Speedup of accelerated code 8.9x One Intel Software & Architecture (OISA) 6 Modeling Performance Using Intel® Advisor – Offload Advisor Baseline HW (Programming model) Target HW 1. CPU (C,C++,Fortran, Py) CPU + GPU measured measured estimated 1.a CPU (DPC++, OCL, OMP, CPU + GPU measured “target=host”) measured estimated 2 CPU+iGPU (DPC++, OCL, OMP, CPU + GPU measured “target=offload”) measured Estimated Optimization Notice Copyright © 2019, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Modeling Performance Using Intel® Advisor – Offload Advisor Region X Region Y Execution time on baseline platform (CPU) • Execution time on accelerator. Estimate assuming bounded exclusively
    [Show full text]
  • Intel® Composer XE 2013 Product Brief
    HIGH PERFORMANCE INTEL C++ AND FORTRAN COMPILERS WITH INTEL PERFORMANCE LIBRARIES Intel® Composer XE 2013 Product Brief Key Features Fortran, C++, and Libraries in One Convenient Package . Leadership Application Intel Composer XE 2013 SP1 is for Fortran developers who want a matching C++ compiler. It Performance combines all the compilers and tools from Intel® C++ Composer XE and Intel® Fortran Composer . Powerful Parallelism Models XE to help deliver outstanding performance for your applications as they run on systems using Simplify Multicore Support Intel® Core™ or Xeon® processors, compatible processors, and Intel® Xeon Phi™ coprocessors. Take advantage of a significant savings compared to purchasing individual components. Optimized Libraries For Threading, Math, Media And Data Processing It’s available on Windows* and Linux*. For Windows users, use of this suite requires that Compatible with Leading Microsoft Visual Studio* 2008, 2010 or 2012 is installed on your system. Development Environments Intel Composer XE features compiler-based innovations in vectorization and parallel programming to simplify development of performance-oriented application software. Among these are Intel® Cilk™ Plus, OpenMP* 4.0 features, and guided auto-parallelization. It’s compatible with leading C++ compilers and developer environments on Windows and Linux. “Intel makes great C++ and Fortran compilers as well as math libraries” Intel Performance Libraries are also included – Intel® Math Kernel Library (Intel® MKL) for Dr. Ronald C. Young, President, Multipath advanced math processing and Intel® Integrated Performance Primitives (Intel® IPP) for Corporation multimedia, signal and data processing. These libraries offer highly optimized, threaded, and specialized functions that speed development and add application performance. A bonus for C++ developers is Intel® Threading Building Blocks (Intel® TBB), which helps simplify adding Also available with one language: parallelism so that applications can take advantage of Intel multicore and many-core processor .
    [Show full text]
  • Driving Performance with Intel® Advisor's Flow Graph Analyzer
    Software THE PARALLEL UNIVERSE Driving Code Performance with Intel® Advisor’s Flow Graph Analyzer Modernize your Code with Issue Intel® Parallel Studio XE 30 Enabling FPGAs for Software Developers 2017 CONTENTS Letter from the Editor 3 Meet Intel® Parallel Studio XE 2018 by Henry A. Gabb, Senior Principal Engineer, Intel Corporation Driving Performance with Intel® Advisor’s Flow Graph Analyzer 5 by Vasanth Tovinkere, Architect, Intel® Flow Graph Analyzer; Pablo Reble, Software Engineer; Farshad Akhbari, Perceptual Computing Technical Lead; and Palanivel Guruvareddiar, Perceptual Computing Software Architect; Intel Corporation FEATURE Welcome to the Adult World, OpenMP* 19 by Barbara Chapman, Professor, Stony Brook University, and Director of Computer Science and Mathematics, Brookhaven National Laboratory Enabling FPGAs for Software Developers 25 by Bernhard Friebe, Senior Director of FPGA Software Solutions Marketing, Intel Corporation, and James Reinders, HPC Enthusiast Modernize Your Code for Performance, Portability, and Scalability 37 by Jackson Marusarz, Technical Consulting Engineer, Intel Corporation Dealing with Outliers 45 by Oleg Kremnyov, QA Engineer; Mikhail Averbukh, Software Engineer; and Ivan Kuzmin, Software Engineering Manager; Intel Corporation Tuning for Success with the LatestSIMD Extensions 57 and Intel® Advanced Vector Extensions 512 by Xinmin Tian, Senior Principal Engineer; Hideki Saito, Principal Engineer; Sergey Kozhukhov, Senior Staff Engineer; and Nikolay Panchenko, Staff Engineer; Intel Compiler and Language Lab, Intel Corporation Effectively Using Your Whole Cluster 77 by Rama Kishan Malladi, Technical Marketing Engineer, Intel Corporation Is Your Cluster Healthy? 85 by Brock A. Taylor, HPC Solution Architect, Intel Corporation Optimizing HPC Clusters 89 by Michael Hebenstreit, Data Center Engineer, Intel Corporation For more complete information about compiler optimizations, see our Optimization Notice.
    [Show full text]
  • Openmp Instrumentation In
    Vishakha Agrawal Mark Lubin Pablo Reble Vasanth Tovinkere Michael Voss Overview • Motivation: Task based Parallel Programing • Threading Building Blocks (TBB) and OpenMP* Tasking with dependencies • Introduction to Intel® Advisor -- Flow Graph Analyzer (FGA) • FGA extension to support OpenMP tasks with dependencies • Future work • Summary Optimization Notice Copyright © 2018, Intel Corporation. All rights reserved. IXPUG Sept 24, 2018 2 *Other names and brands may be claimed as the property of others. Task based parallel programming with dependencies Advantages of task-based parallelism: • Makes parallelization efficient for irregular and runtime dependent execution • Higher level thinking • Improved load balancing Additional benefits for tasks with dependencies: • Extends the expressiveness of task-based parallel programming • Reduces need for global synchronization mechanisms like task barriers Optimization Notice Copyright © 2018, Intel Corporation. All rights reserved. IXPUG Sept 24, 2018 3 *Other names and brands may be claimed as the property of others. OpenMP* Task dependencies Optimization Notice Copyright © 2018, Intel Corporation. All rights reserved. IXPUG Sept 24, 2018 4 *Other names and brands may be claimed as the property of others. Explicit vs implicit graphs: Implicit graph, Explicit graph, nodes, and edge nodes, and Hello World edges graph g; #pragma omp parallel { continue_node< continue_msg > h( g, #pragma omp single []( const continue_msg & ) { { std::string s =“”; cout << “Hello “; { } ); #pragma omp task depend(out: s) { continue_node< continue_msg > w( g, s = “Hello ”; []( const continue_msg & ) { printf(“%s”, s); cout << “World\n“; } #pragma omp task depend(out : s) } ); { make_edge( h, w ); s = “World”; printf(“%s, s); h.try_put(continue_msg()); } g.wait_for_all(); } } Threading Building Blocks (TBB) Flow Graph OpenMP* Tasks with dependencies example Optimization Notice Copyright © 2018, Intel Corporation.
    [Show full text]
  • Optimization Workshop
    Optimization workshop Intel® VTune™ Amplifier and Intel® Advisor Kevin O’Leary, Technical Consulting Engineer Changing Hardware Affects Software Development More cores and wider vector registers mean more threads and more maximum performance! … but you need to need to write software that takes advantage of those cores and registers. More threads means more potential speedup. Intel® Xeon® 5100 5500 5600 E5-2600 E5-2600 E5-2600 Platinum 64-bit E5-2600 Processor series series series V2 V3 V4 8180 Cores 1 2 4 6 8 12 18 22 28 Threads 2 2 8 12 16 24 36 44 56 SIMD Width 128 128 128 128 256 256 256 256 512 Copyright © Intel Corporation 2019 *Other names and brands may be claimed as the property of others. 2 The Agenda Optimization 101 Threading The uOp Pipeline Tuning to the Architecture Vectorization ? ? Q & A ? Copyright © Intel Corporation 2019 *Other names and brands may be claimed as the property of others. 3 Optimization 101 Take advantage of compiler optimizations with the right flags. Linux* Windows* Description -xCORE-AVX512 /QxCORE-AVX512 Optimize for Intel® Xeon® Scalable processors, including AVX-512. -xCOMMON-AVX512 /QxCOMMON-AVX512 Alternative, if the above does not produce expected speedup. -fma /Qfma Enables fused multiply-add instructions. (Warning: affects rounding!) -O2 /O2 Optimize for speed (enabled by default). -g /Zi Generate debug information for use in performance profiling tools. Use optimized libraries, like Intel® Math Kernel Library (MKL). Deep Neural Linear Algebra Fast Fourier Transforms Vector Math Summary Statistics
    [Show full text]
  • Intel® Parallel Studio XE 2013 SP1 Product Brief
    EFFICIENTLY PRODUCE FAST, SCALABLE, AND RELIABLE APPLICATIONS Intel® Parallel Studio XE 2013 SP1 Product Brief Top Features Leading Development Tools for Top Performance . Industry-leading application Deliver top application performance while minimizing development, tuning and testing time, and performance that scales as effort. Intel® Parallel Studio XE provides C/C++ and Fortran developers cutting edge performing processor core count and vector compilers and libraries, the right parallel programming models, and complementary and width increase compatible analysis tools. It plugs seamlessly into Microsoft Visual Studio* and the GNU tool chain to keep you productive while preserving your development environment investment. Efficiently scale on tomorrow’s Boost performance for your applications as they run on today’s and tomorrow’s IA-compatible hardware while preserving processors and coprocessors, including Intel® Xeon® processors and Intel® Xeon Phi™ investment in existing code coprocessors. Compatible with leading development environments Intel Parallel Studio XE includes the next generation of software development tools: . Intel® C, C++ and Fortran Compilers – Industry-Leading Compilers “If you need performance for your . Intel® Math Kernel Library (Intel® MKL) and Intel® Integrated Performance Primitives C++ and/or Fortran applications, (Intel® IPP) – Performance Libraries you need to try Intel software . Intel® Threading Building Blocks (Intel® TBB) and Intel® Cilk™ Plus – Parallel Programming development products." Models Dr. Artur Guzik, Senior Engineer, Neubrex. Co., . Intel® Advisor XE – Threading Prototyping Tool Ltd. Intel® VTune™ Amplifier XE – Advanced Threading and Performance Profiler . Intel® Inspector XE – Memory and Threading Debugger "The new VTune Amplifier XE Get more performance with less effort. Optimize performance by using the latest versions of brings even more capability to an broadly used Intel® Software Development Products.
    [Show full text]