p12tic / libsimdpp

Portable header-only C++ low level SIMD library
Boost Software License 1.0
1.24k stars 129 forks source link

How to Use This Library? #155

Closed ardianumam closed 3 years ago

ardianumam commented 3 years ago

Hi,

I'm new in this SIMD thing. From what I search in the internet here and there, using this library can be done by just including the header (without any build/cmake, etc). In by case, when I compile this example by gcc -o my_app vector-add.cpp, I got this error: fatal error: simdpp/simd.h: No such file or directory. This is my gcc version: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0.

Could you please provide the "hello word" tutorial how to use this libary? Thanks a lot.

GabrieleGiuseppini commented 3 years ago

You probably want to tell gcc where to find the include files, i.e. the location of your simdpp directory. Have a look at https://www.rapidtables.com/code/linux/gcc/gcc-i.html.

ardianumam commented 3 years ago

Solved, many thank @GabrieleGiuseppini .