In windows 获取当前线程的NUMA节点

In windows get NUMA Node of current thread

我想在 Windows 中找到当前线程的 NUMA 节点。

我找到了 here Linux 的答案,但我在 Windows 中需要它。

Window 的 NUMA 支持包含在 MSDN. You can query GetCurrentProcessorNumber to get the processor number of the current thread and pass the result to GetNumaProcessorNode