aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/hwaccelrated/CMakeLists.txt
blob: d5a3ab429a908c6a99fbe49c48601a03da17b71b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
  set(ACCEL_FILES "avx2.cpp" "avx512.cpp")
else()
  unset(ACCEL_FILES)
endif()

vespa_add_library(vespalib_vespalib_hwaccelrated OBJECT
    SOURCES
    iaccelrated.cpp
    generic.cpp
    ${ACCEL_FILES}
    DEPENDS
)
set_source_files_properties(avx2.cpp PROPERTIES COMPILE_FLAGS -march=haswell)
set_source_files_properties(avx512.cpp PROPERTIES COMPILE_FLAGS -march=skylake-avx512)