I\'m using libnuma on Linux. My threads should be aware of the node/core they\'re running on. Is it possible to get the current threads\'s node/core somehow? I\'ve been thro
You need to use getcpu() system call. As man page says:
determine CPU and NUMA node on which the calling thread is running
So, this should serve your purpose. Needs to include , with kernel version greater than 2.6.19 and for x86_64, i386 arch.