diff --git a/src/cpucounters.cpp b/src/cpucounters.cpp index e2b4609e..d842a04f 100644 --- a/src/cpucounters.cpp +++ b/src/cpucounters.cpp @@ -1602,7 +1602,12 @@ void PCM::printSystemTopology() const bool PCM::initMSR() { -#ifndef __APPLE__ +#ifdef __APPLE__ + for (size_t i=0; i < MSR.size(); ++i) + { + systemTopology->addMSRHandleToOSThread(MSR[i], (uint32)i); + } +#else try { for (int i = 0; i < (int)num_cores; ++i)