jacquemier / optimisation

Simple C code optimisation examples: vectorisation, unroll loop, intrinsic ...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimisation

Simple C code optimisation examples: vectorisation, unroll loop, intrinsic ...

How does it work ?

In these examples we compute the sum element by element of two 2D array (matrix) and store the result in a pre allocated matrix. We test different ways to compute these sums and benchmark the number of CPU cycles by element.

Compile same code with different level of optimisation

$prompt> ./buils.sh

Run and compare results

$prompt> ./run.sh

About

Simple C code optimisation examples: vectorisation, unroll loop, intrinsic ...


Languages

Language:C++ 67.1%Language:C 21.2%Language:Shell 11.7%