In parallel execution, each processor on the system is utilized for calculating a specific chunk of the matrix multiplication.
My system has 4 physical cores and 8 logical processors (via Hyper-Threading), therefore std::thread::hardware_concurrency()
indicates that up to 8 threads can run in parallel on my system.
1-) Create and navigate to build directory
mkdir build
cd build
2-) Generate Makefile
- Windows:
cmake -G "MinGW Makefiles" ..
- Unix-like systems:
cmake ..
3-) Run make command
- Windows:
mingw32-make
- Unix-like systems:
make