Skip to Content
Parallel and High Performance Computing
book

Parallel and High Performance Computing

by Yuliana Zamora, Robert Robey
July 2021
Intermediate to advanced content levelIntermediate to advanced
704 pages
21h 6m
English
Manning Publications
Content preview from Parallel and High Performance Computing

14 Affinity: Truce with the kernel

This chapter covers

  • Why affinity is an important concern for modern CPUs
  • Controlling affinity for your parallel applications
  • Fine-tuning performance with process placement

We first encountered affinity in section 8.6.2 on the MPI (Message Passing Interface), where we defined it and briefly showed how to handle it. We repeat the definition here and also define process placement.

  • Affinity—Assigns a preference for the scheduling of a process, rank or thread to a particular hardware component. This is also called pinning or binding.

  • Placement—Assigns a process or thread to a hardware location.

We’ll go into more depth about affinity, placement, and the order of threads or ranks in this chapter. Concerns ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Massively Parallel Processors, 4th Edition

Programming Massively Parallel Processors, 4th Edition

Wen-mei W. Hwu, David B. Kirk, Izzat El Hajj
Algorithms: 24-part Lecture Series

Algorithms: 24-part Lecture Series

Robert Sedgewick, Kevin Wayne
Grokking Algorithms

Grokking Algorithms

Aditya Bhargava

Publisher Resources

ISBN: 9781617296468Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link