Commit fc809cb2 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Create a basic library for hadamard product

parent f8830fd9
cmake_minimum_required(VERSION 2.8)
# Let's compile the hadamard product several times to cover architectures from sse2 to avx512f (in -O3 but could be in -O2)
add_library(hadamard_product_sse2 SHARED hadamard_product.cpp)
set_property(TARGET hadamard_product_sse2 PROPERTY COMPILE_FLAGS "-O3 -ftree-vectorize -march=native -mtune=native -msse2 -DFLOAT_VECTOR_ALIGNEMENT=16")
......@@ -20,3 +22,6 @@ add_library(hadamard_product_avx512f SHARED hadamard_product.cpp)
set_property(TARGET hadamard_product_avx512f PROPERTY COMPILE_FLAGS "-O3 -ftree-vectorize -march=native -mtune=native -mavx512f -DFLOAT_VECTOR_ALIGNEMENT=32")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment