1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-23 06:52:33 -05:00

Merge pull request #1776 from SChernykh/dev

Removed cache QoS warning at exit on unsupported CPUs
This commit is contained in:
xmrig
2020-07-14 01:45:18 +07:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -204,7 +204,9 @@ static bool wrmsr(const MsrItems& preset, const std::vector<CpuThread>& threads,
} }
if (cache_qos && !Cpu::info()->hasCatL3()) { if (cache_qos && !Cpu::info()->hasCatL3()) {
if (!threads.empty()) {
LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag); LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag);
}
cache_qos = false; cache_qos = false;
} }

View File

@@ -303,7 +303,9 @@ static bool wrmsr(const MsrItems &preset, const std::vector<CpuThread>& threads,
} }
if (cache_qos && !Cpu::info()->hasCatL3()) { if (cache_qos && !Cpu::info()->hasCatL3()) {
if (!threads.empty()) {
LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag); LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag);
}
cache_qos = false; cache_qos = false;
} }