Category : amd

I am using thread library in different machines (including Linux and Windows, and also both Intel and AMD CPUs and with clang++, GNU and MSVC). in all of them, std::thread::hardware_concurrency() returns what is called Logical Processors in Windows or the maximum number of threads including the hyper threads, however in a new machine which has ..

Read more

I have the following C++17 code that I compile with VS 2019 (version 16.8.6) in x64 mode: struct __declspec(align(16)) Vec2f { float v[2]; }; struct __declspec(align(16)) Vec4f { float v[4]; }; static constexpr std::uint64_t N = 100’000’000ull; const Vec2f p{}; Vec4f acc{}; // Using virtual method: for (std::uint64_t i = 0; i < N; ++i) ..

Read more