Skip to content

aydinsimsek/Parallelism-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Method

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.

Build Steps

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 

Sample Result on Ubuntu

screenshotUbuntu

Sample Result on Windows

screenshotWindows

About

A Unix and Windows compatible program that compares single vs. multi threaded execution durations for 1000x1000 matrix multiplication.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors