Use RTM instructions (skylake+)

This commit is contained in:
Nekotekina 2017-07-18 20:03:47 +03:00
parent 0fa148e65e
commit b24eb621ae
8 changed files with 190 additions and 21 deletions

View file

@ -46,5 +46,16 @@ std::string utils::get_system_info()
#endif
fmt::append(result, "%s | %d Threads | %.2f GiB RAM", brand, num_proc, mem_total / (1024.0f * 1024 * 1024));
if (has_avx())
{
result += " | AVX";
}
if (has_rtm())
{
result += " | TSX";
}
return result;
}