This repository contains the source code for a simple CUDA benchmark. It demonstrates the performance differences between CPU (Single-threaded), CPU (Multi-threaded with OpenMP), and GPU (CUDA) implementations of matrix multiplication.
- NVIDIA GPU with CUDA support
- CUDA Toolkit (NVCC)
- C++ compiler with OpenMP support
- CMake (version 3.20 or higher)
In this project CMake is used for automatic setup for your GPU.
git clone https://github.com/andrvolkov013/MatrixMultiplicationBench.git
cd MatrixMultiplicationBench
mkdir build
cd build
For Windows:
cmake ..
cmake --build . --config Release
For Linux:
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
For Windows:
.\Release\MatrixMultiplicationBench.exe
For Linux:
./MatrixMultiplicationBench