Skip to content

Commit

Permalink
add MSRH hndle to OS thread on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
opcm committed Dec 17, 2023
1 parent 60935ce commit d2ff40f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cpucounters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d2ff40f

Please sign in to comment.