Back to TILs

C++ hardware_concurrency_01

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

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