HOW Series “Deep Dive”: Webinars on Performance Optimization – 2017 Edition

 

In a Nutshell

HOW Series “Deep Dive” is a free Web-based training on parallel programming and performance optimization on Intel architecture. The workshop includes 20 hours of instruction and up to 2 weeks of remote access to dedicated training servers for hands-on exercises. This training is free to everyone thanks to Intel’s sponsorship.

 

You can get trained in one of the two ways:

Self-paced: Start Right Now

You can access the video recordings of lectures, slides of presentations and code of practical exercises on this page using a free Colfax Research account.

This option is free and open to everyone, however, self-paced study does not give you the benefits that you get by joining a workshop (which is also free, but tied to specific dates).


 

Join a Workshop: Interact and Practice

You can join one of the 2-week long HOW series workshops to get these additional benefits:

  • Access a dedicated computing cluster to run exercises
  • Get reminders to join daily online broadcasts of recordings
  • Live chat with instructor during broadcasts
  • Receive a certificate of completion


 

Upcoming Workshops:

(the 10-day workshops occurring in different months have the same agenda)

October 2017
MTWHFSaSu
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345
    — 16:00 GMT (for America/Europe)
November 2017
MTWHFSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
 
    — 04:00 GMT (for Asia/Pacific) + 16:00 GMT on same day

All times and dates are in the GMT time zone. Conversion chart from GMT to your time zone *:

GMT (24h) Your time (24h)
04:00 240
16:00 960
* For correct conversion, check this:

  1. We used your browser time to place you in . Is this the correct time zone for you?
  2. Does your locale change to/from daylight saving time before or during the workshop?
  3. Does the time difference put you into the next or previous day?

Registration:

Do you have a free account at Colfax Research? Save time by logging in - we will fill in the fields with data from your profile.

The registration form should appear here in a moment. If you don't see a registration form, it could be because your browser

  • has JavaScript disabled
  • is running an advertisement blocking tool
  • is too old

Please try to enable JavaScript, disable the ad block, upgrade your browser, or try a different one.
If nothing helps, contact us for help.



xeon-phi-in-server-1800

Why Attend the HOW Series

Here is what the HOW Series training will deliver for you:

Learn Modern Code

Are you realizing the payoff of parallel processing? Are you aware that without code optimization, computational applications may perform orders of magnitude worse than they are supposed to?

The Web-based HOW Series training provides the extensive knowledge needed to extract more of the parallel compute performance potential found in both Intel® Xeon® and Intel® Xeon Phi™ processors and coprocessors. Course materials and practical exercises are appropriate for developers beginning their journey to parallel programming, with enough detail to also cater to high-performance computing experts.

Jump to detailed descriptions of sessions to see what you will learn.

Practice New Skills

The HOW series is an experiential learning program because you get to see code optimization performed live and also get to practice it with your own hands. The workshop consists of instructional and hands-on self-study components:

The instructional part of each workshop consists of 10 lecture sessions. Each session presents 1 hour of theory and 1 hour of practical demonstrations. Lectures can be viewed live by joining live broadcast, or offline as streaming video.

In the self-study part, for the duration of the workshop attendees are provided with remote access over SSH to a Linux-based cluster of training servers. These machines feature Intel Xeon Phi processors (KNL) and Intel software development tools. Students can use these training servers to run exercises provided in the course or experiment with their own applications.

Receive Certificate

certificate

Attendees of these workshops may receive a certificate of completion. The certificate states the Fundamental level of accomplishment in the Parallel Programming Track.

Attending at least 6 out of 10 live broadcast sessions is required to receive the certificate. Certificates are delivered via email within 7 days after the last webinar.

What HOW Series Graduates are Saying:

"An un-parallel resource for learning trade skills of using Intel Xeon Phi platform for Parallel Computing. What makes this program all the more engaging is its focus on the 'doing' aspect as there is no substitute to 'learning by doing'."

Gaurav Verma
HOW attendee


"I am a physicist working with Monte Carlo models of particle transport on matter. My main working language is Fortran and I was able to follow the course without problems. The course gave me all the tools needed to start working with the Intel Xeon Phi MICs."

Edgardo Doerner
HOW attendee


"This is a very well thought out course that gradually introduces the important concepts. The presenter and his team are experts with a lot of experience as evident from the lectures. The live demos for optimizations are very educative and well executed."

Vikram K. Narayana
HOW attendee

Course Roadmap

Instructor Bio

Andrey Vladimirov Andrey Vladimirov, Ph. D., is Head of HPC Research at Colfax International. His primary interest is the application of modern computing technologies to computationally demanding scientific problems. Prior to joining Colfax, A. Vladimirov was involved in computational astrophysics research at Stanford University, North Carolina State University, and the Ioffe Institute (Russia), where he studied cosmic rays, collisionless plasmas and the interstellar medium using computer simulations. He is the lead author of the book "Parallel Programming and Optimization with Intel Xeon Phi Coprocessors", a regular contributor to the online resource Colfax Research, author of invited papers in "High Performance Parallelism Pearls" and Intel Xeon Phi Processor High Performance Programming: Knights Landing Edition, and an author or co-author of over 10 peer-reviewed publications in the fields of theoretical astrophysics and scientific computing.

Prerequisites

remote-access We assume that you know the fundamentals of programming in C or C++ in Linux. If you are not familiar with Linux, read a basic tutorial such as this one. We assume that you know how to use a text-based terminal to manipulate files, edit code and compile applications.

Remote Access for Hands-On Exercises

chassisfabric-angle
All registrants will receive remote access to a cluster of training servers. The compute nodes in the cluster are based on Intel Xeon Phi x200 family processors (formerly KNL), and additional nodes with Intel Xeon processors and Intel Xeon Phi coprocessors (KNC) are available. Intel software development tools are provided in the cluster under the Evaluation license.

Remote access is be granted a few days before the start of the series. It is active for the entire duration the training, including nights and weekends. However, technical support is available only during normal business hours Pacific time.

You do not have to use remote access to the Colfax Cluster to participate in the hands-on part. During live webinars, the instructor will demonstrate the discussed programming exercises. You can either follow along or use your own computing system (Intel compilers required).

Slides, Code and Video:

Code

code-download Practical exercises in this training were originally published as supplementary code for Programming and Optimization for Intel Xeon Phi Coprocessors. Since then, we have re-released them under the MIT license and posted on GitHub with the latest updates.

You can download the labs as a ZIP archive or clone from GitHub:

git clone https://github.com/ColfaxResearch/HOW-Series-Labs.git

Video

Session 01
Intel Architecture and Modern Code

We introduce Intel Xeon and Intel Xeon Phi processors and discuss their features and purpose. We also begin an introduction to portable, future-proof parallel programming: thread parallelism, vectorization, and optimized memory access pattern. The hands-on part introduces Intel compilers and additional software for efficient solution of computational problems. The hands-on part illustrates the usage of the Colfax Cluster for programming exercises presented in the course.

Slides:  Colfax_HOW_Series_01.pdf (13 MB) — this file is available only to registered users. Register or Log In.

Session 02
Xeon Phi, Coprocessors, Omni-Path

We talk about high-bandwidth memory (MCDRAM) in Intel Xeon Phi processors and demonstrate programming techniques for using it. We also discuss the coprocessor form-factor of the Intel Xeon Phi platform, learning to use the native and the explicit offload programming models. The session introduces the high-bandwidth interconnects based on the Intel Omni-Path Architecture, and discusses its application in heterogeneous programming with offload over fabric.

Slides:  Colfax_HOW_Series_02.pdf (4 MB) — this file is available only to registered users. Register or Log In.

Session 03
Expressing Parallelism with Vectors

This session introduces data parallelism and automatic vectorization. Topics include: the concept of SIMD operations, history and future of vector instructions in Intel Architecture, including AVX-512, using intrinsics to vectorize code, automatic vectorization with Intel compilers for loops, expressions with array notations and SIMD-enabled functions. The hands-on part focuses on using the Intel compiler to perform automatic vectorization, diagnose its success, and making automatic vectorization happen when the compiler does not see opportunities for data parallelism.

Slides:  Colfax_HOW_Series_03.pdf (3 MB) — this file is available only to registered users. Register or Log In.

Session 04
Multi-threading with OpenMP

Crash-course on thread parallelism and the OpenMP framework. We will talk about using threads to utilize multiple processor cores, coordination of thread and data parallelism, using OpenMP to create threads and team them up to process loops and trees of tasks. You will learn to control the number of threads, variable sharing, loop scheduling modes, to use mutexes to protect race conditions, and implementing parallel reduction. The hands-on part demonstrates using OpenMP to parallelize serial computation and shows for-loops, variable sharing, mutexes and parallel reduction on an example application performing numerical integration.

Slides:  Colfax_HOW_Series_04.pdf (3 MB) — this file is available only to registered users. Register or Log In.

Session 05
Distributed Computing, MPI


The last session of the week is an introduction to distributed computing with the Message Passing Interface (MPI) framework. We illustrate the usage of MPI on standard processors as well as Intel Xeon Phi processors and heterogeneous systems with coprocessors. Inter-operation between Intel MPI and OpenMP is illustrated.

Slides:  Colfax_HOW_Series_05.pdf (6 MB) — this file is available only to registered users. Register or Log In.

Session 06
Optimization Overview: N-body

Here we begin the discussion of performance optimization. This episode lays out the optimization roadmap that classifies optimization techniques into five categories. The lecture part of demonstrates the application of some of the techniques from these 5 categories to an example application implementing the direct N-body simulation. The hands-on part of the episode demonstrates the optimization process for the N-body simulation and measures performance gains obtained on an Intel Xeon E5 processor and their scalability to an Intel Xeon Phi coprocessor (KNC) and processor (KNL).

Slides:  Colfax_HOW_Series_06.pdf (3 MB) — this file is available only to registered users. Register or Log In.

Session 07
Scalar Tuning, Vectorization

We start going into the details of performance tuning. The session will cover essential compiler arguments, control of precision and accuracy, unit-stride memory access, data alignment, padding and compiler hints, and the usage of strip-mining for vectorization. The hands-on part will illustrate these techniques in the implementation of LU decomposition of small matrices. We will begin demonstrating strip-mining and AVX-512CD in the computation of binning.

Slides:  Colfax_HOW_Series_07.pdf (2 MB) — this file is available only to registered users. Register or Log In.

Session 08
Common Multi-threading Problems

This session talks about common problems in the optimization of multi-threaded applications. We re-visit OpenMP and the binning example from Session 6 to implement multi-threading in that code. The process takes us to the discussion of race conditions, mutexes, efficient parallel reduction with thread-private variables. We also encounter false sharing and demonstrate how it can be eliminated. The second example discussed in this episode represents stencil operations, and the discussion of this example deals with the problem of insufficient parallelism and demonstrates how to move parallelism from vectors to cores using strip-mining and loop collapse.

Slides:  Colfax_HOW_Series_08.pdf (3 MB) — this file is available only to registered users. Register or Log In.

Session 09
Multi-Threading, Memory Aspect

We continue talking about optimization of multi-threading, this time from the memory access point of view. The material includes principles and methods of affinity control and best practices for NUMA architecture, which includes two-way and four-way Xeon processors and Intel Xeon Phi processors in SNC-2/SNC-4 clustering modes. The hands-on part of the episode demonstrates the tuning of matrix multiplication and array copying on a standard processor as well as an Intel Xeon Phi processor and coprocessor.

Slides:  Colfax_HOW_Series_09.pdf (4 MB) — this file is available only to registered users. Register or Log In.

Session 10
Access to Caches and Memory

Memory traffic optimization: how to optimize the utilization of caches, and how to optimally access the main memory. We discuss the requirement of data access locality in space and time and demonstrate techniques for achieving it: unit-stride access, loop fusion, loop tiling and cache-oblivious recursion. We also talk about optimizing memory bandwidth, focusing on the MCDRAM in Intel Xeon Phi processors. The hands-on part demonstrates the application of the discussed methods to the matrix-vector multiplication code.

Slides:  Colfax_HOW_Series_10.pdf (4 MB) — this file is available only to registered users. Register or Log In.

System Requirements (IMPORTANT!)

Get Your System Ready

dap-workstation

To join the webinars:

  • Windows Vista – Windows 10 / Mac OS X 10.6 (Snow Leopard) or later / Google Chrome OS
  • Linux - only with the Google Chrome Browser (Firefox will not work!)
  • Any modern browser for Windows and Mac OS X; Only Google Chrome browser for Linux (Firefox will not work!)
  • 1 Mbps or better Internet connection
  • 2 GB or more RAM
  • Speakers or a headset
  • Recommended: two displays - one for slides, the other for chat and remote access

For remote access:

  • Any recent Linux, Mac OS X, or Windows (additional software required for Windows)
  • 200 Kbps or better Internet connection
  • Allowed outgoing SSH traffic (port 22)

Supplementary Materials

front-cover-2

The course is based on Colfax's book "Parallel Programming and Optimization with Intel Xeon Phi Coprocessors", second edition. All topics discussed in the training are covered in the book. Practical exercises used in the code come with the paper and with the electronic edition. The book is an optional guide for the HOW series training. Members of Colfax Research can get a discount.

Getting Your Questions Answered

At any time, feel free to post your questions at the Colfax Forums. We even have a special forum for HOW series-related discussion.

During the broadcast training sessions, you can ask questions in the chat window shown below. Instructors will respond either immediately, or during a question/answer session.

Chat Logs

  • September 18, 2017 8:20 am - September 29, 2017 9:51 am
  • August 14, 2017 8:10 am - August 24, 2017 12:04 am
  • July 21, 2017 8:00 am - July 25, 2017 9:05 am close

    AndreyAndrey Hello everyone! I will be in the chat in case anyone has any questions.

    akhauriyashakhauriyash Hello! I am using the colfax node for deep learning, and i wanted to know how i can optimize my python code for this purpose, if possible. Are the python imports i do on the cluster optimized to work on Intel architecture as is being taught in this course? Thank you!

    AndreyAndrey If you are looking for Intel-optimized Python, you need the Intel Distribution for Python. On the cluster, the default python is indeed from that distribution. Many modules are optimized, but not all. You don't need to do anything specific to take advantage of these optimizations. For details see https://software.intel.com/en-us/distribution-for-python

    akhauriyashakhauriyash Thank you for your response, Andrey!

    john1103john1103 My how-series webpage shows all videos available through session 10. It has been this way since session 1 so I assume it is showing videos from a previous session. Is there an easy fix for this? Thanks.

    akhauriyashakhauriyash You have two options, attending the live webinar earns you a certificate. However you are free to do the course through those videos as well. This has been done intentionally.

    akhauriyashakhauriyash You must attend at least 6 online webinars to earn the certificate. That is my understanding of it.

    john1103john1103 Thanks but my question has nothing to do with certificates. I can click on the session 10 video and it plays what I assume is a video from a previous session. My guess is there is a database entry that points to a previous session instead of the current one. When I signed up for the course, I received 10 session confirmation emails all at once. No big deal, but I assume the misbehavior is related.

    akhauriyashakhauriyash I don't think it is a misbehaviour. It is redundant to update the same content on the website every time. They probably have the same content persisting since the inception of this course.

    AndreyAndrey @john1103 John, the video lectures are pre-recorded. What you see when you click the video for session 10 is the same as what you will see when you attend webinar #10 next Friday. So if you like to study on your schedule, you can watch the video recordings now. If you like to stay on schedule, ask questions in the chat and earn the certificate, then join the webinars.

    AndreyAndrey @akhauriyash The course started back in 2015 and has been updated ever since then. The current version is from June 2017

    akhauriyashakhauriyash Good to know! Thank you, it's a great course.

    akhauriyashakhauriyash @Andrey The webinar stream suddenly stopped. Is this a problem on your end?

    akhauriyashakhauriyash It began now its ok.

    akhauriyashakhauriyash Also @Andrey how can I earn a Craftsman certificate instead of the Fundamental? Is there a test portal of sorts? Just asking out of curiosity. Thank you

    AndreyAndrey We are going to launch the next level program soon.

    akhauriyashakhauriyash Thanks!