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
commit 7eefccc6bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()) {
LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag);
if (!threads.empty()) {
LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag);
}
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()) {
LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag);
if (!threads.empty()) {
LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag);
}
cache_qos = false;
}