1

I would like to find the NUMA node for the current thread in Windows.

I found the answer here for Linux but I need it in Windows.

Community
  • 1
  • 1
gerstla
  • 587
  • 1
  • 5
  • 20

1 Answers1

3

Window's NUMA support is covered on MSDN. You can query GetCurrentProcessorNumber to get the processor number of the current thread and pass the result to GetNumaProcessorNode.

Brian
  • 2,693
  • 5
  • 26
  • 27