Back to TILs

C++ hardware_concurrency_01

Date: 2024-02-17Last modified: 2024-02-26

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