Back to TILs

C++ hardware_concurrency_01

C++ thread hardware_concurrency number-of-cores

Table of contents

  fmt::print( "Allowed thread count in my device is {}\n", std::thread::hardware_concurrency() );

Possible output

Allowed thread count in my device is 8

References