Skip to content

Pranay711/FindMinimumIndex

 
 

Repository files navigation

FindMinimumIndex

Playground for using SIMD for calculating the Index of the minimum in a array of floats.

If you have already google benchmark installed

git clone https://github.com/AnChristos/FindMinimumIndex.git

Also install google benchmark

Assuming you want also the google bench mark code

git clone --recursive https://github.com/AnChristos/FindMinimumIndex.git

cd findMinimumIndex/

The following will install the benchmark under ${HOME}/.local

source buildGoogleBenchmark.sh

edit

cmake -DCMAKE_BUILD_TYPE=Release -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DCMAKE_INSTALL_PREFIX=${HOME}/.local ../

to change location

Build with CMake

mkdir build; cd build

cmake ../FindMinimumIndex

make

./findMinimumIndex_bench --benchmark_report_aggregates_only=true --benchmark_repetitions=20

What is included so far

  • "C" style (2 variations)
  • "STL" style
  • Using SSE intrinsics
  • Using AVX2 intrinsics
  • Using SSE/AVX2 via compiler vector extension

About

Find Minimum Index of array C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.6%
  • CMake 2.5%
  • Shell 0.9%