I've built this lib to benchmark different distance measures operations using some __m256d vector functions, and hopefully compare it with the new Java's Panama Vectors API.
Please note that the arrays provided to the operations must be created using aligned_alloc
functions. You can check a working example in apps/main.c
.
$ cmake -S . -B build
$ cmake --build build
$ ./build/apps/runner
$ valgrind -v --leak-check=full ./build/apps/runner
$ sudo cmake -- install build
You can also try to compile apps/main.c
directly:
$ gcc -I/usr/local/include main.c -o main -L/usr/local/lib -Wl,-R/usr/local/lib -ldistance__m256d