O'Reilly logo

Intel Xeon Phi Processor High Performance Programming, 2nd Edition by Avinash Sodani, James Reinders, James Jeffers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 23

N-Body simulation

Abstract

Presents performance optimization methods applicable to N-body simulations on Knights Landing. Discusses the optimization of arithmetic expressions, data structures, thread parallelism, and memory traffic on Knights Landing. Results demonstrate that the N-body simulation, previously optimized for parallelism on Knights Corner, achieves most of the performance improvements available with Knights Landing without any code adaptation—only a recompilation is necessary to take advantage of AVX-512.

Keywords

N-body; Strength reduction; Alignment; Vectorization; SoA; AoS; Unit-stride; OpenMP; Threads; Affinity; Tiling; MCDRAM

What is new with Knights Landing in this chapter?

MCDRAM flat mode + numactl can be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required