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 authored and rdementi committed Dec 19, 2023
1 parent 5806e77 commit 2cd4aa3
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 @@ -1620,7 +1620,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 2cd4aa3

Please sign in to comment.