Patrick

How to find which NUMA node a GPU is attached to

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Patrick

Administrator
Staff member
Dec 21, 2010
12,514
5,807
113
Patrick submitted a new resource:

How to find which NUMA node a GPU is attached to - Important for multiple NUMA node servers

Since many STH'ers have multiple NUMA node servers, whether dual Xeon or even a single AMD EPYC, or Threadripper, knowing where a GPU is attached to can be important.

For example, in a dual AMD EPYC system, how can one find which of the 8 NUMA nodes a GPU is attached to?

A quick tip is to install hwloc utilities using (on Debian / Ubuntu)
Code:
sudo apt install hwloc
From here you can use lstopo or hwloc-ls. Be careful as you will want to set an output format. Here is an example of...
Read more about this resource...
 
  • Like
Reactions: nitrobass24

acquacow

Well-Known Member
Feb 15, 2017
787
439
63
42
We used to do stuff like this back at FIO to find and then pin application processes that were using the ioDrives. Wanted to make sure that the processes were running on the CPU that was actually attached to the pcie-slot of the ioDrive.

Made for some great perf improvements.