Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
cpu detection remove cout
Browse files Browse the repository at this point in the history
  • Loading branch information
S74nk0 committed Oct 16, 2020
1 parent a98d6fc commit 6f56978
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions device_detection_cpu/InstructionSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,15 +317,12 @@ std::tuple<int32_t, bool> detectL3SizeAndZen()
memcpy(cpustr, &cpu_info[1], 4);
memcpy(cpustr + 4, &cpu_info[3], 4);
memcpy(cpustr + 8, &cpu_info[2], 4);

if (strcmp(cpustr, "GenuineIntel") == 0)
{
cpuid(4, 3, cpu_info);

if (get_masked(cpu_info[0], 7, 5) != 3)
{
//printer::inst()->print_msg(L0, "Autoconf failed: Couldn't find L3 cache page.");
std::cout << "Autoconf failed: Couldn't find L3 cache page." << std::endl;
return { L3KB_size, isZen };
}

Expand All @@ -349,8 +346,6 @@ std::tuple<int32_t, bool> detectL3SizeAndZen()
}
else
{
//printer::inst()->print_msg(L0, "Autoconf failed: Unknown CPU type: %s.", cpustr);
std::cout << "Autoconf failed: Unknown CPU type: " << cpustr << std::endl;
return { L3KB_size, isZen };
}
}
Expand Down

0 comments on commit 6f56978

Please sign in to comment.