blob: 2486692b843f2bad72ea1758600ea24c828516f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# ISA
set(isal_src_dir ${CMAKE_SOURCE_DIR}/src/isa-l)
include_directories(${isal_src_dir}/include)
if(HAVE_NASM_X64_AVX2)
set(CMAKE_ASM_FLAGS "-i ${isal_src_dir}/include/ ${CMAKE_ASM_FLAGS}")
set(isa_srcs
${isal_src_dir}/erasure_code/ec_base.c
${isal_src_dir}/erasure_code/gf_2vect_dot_prod_sse.asm
${isal_src_dir}/erasure_code/gf_3vect_dot_prod_sse.asm
${isal_src_dir}/erasure_code/gf_4vect_dot_prod_sse.asm
${isal_src_dir}/erasure_code/gf_5vect_dot_prod_sse.asm
${isal_src_dir}/erasure_code/gf_6vect_dot_prod_sse.asm
${isal_src_dir}/erasure_code/gf_vect_dot_prod_sse.asm
${isal_src_dir}/erasure_code/gf_2vect_mad_avx2.asm
${isal_src_dir}/erasure_code/gf_3vect_mad_avx2.asm
${isal_src_dir}/erasure_code/gf_4vect_mad_avx2.asm
${isal_src_dir}/erasure_code/gf_5vect_mad_avx2.asm
${isal_src_dir}/erasure_code/gf_6vect_mad_avx2.asm
${isal_src_dir}/erasure_code/gf_vect_mad_avx2.asm
${isal_src_dir}/erasure_code/ec_highlevel_func.c
${isal_src_dir}/erasure_code/gf_2vect_mad_avx.asm
${isal_src_dir}/erasure_code/gf_3vect_mad_avx.asm
${isal_src_dir}/erasure_code/gf_4vect_mad_avx.asm
${isal_src_dir}/erasure_code/gf_5vect_mad_avx.asm
${isal_src_dir}/erasure_code/gf_6vect_mad_avx.asm
${isal_src_dir}/erasure_code/gf_vect_mad_avx.asm
${isal_src_dir}/erasure_code/ec_multibinary.asm
${isal_src_dir}/erasure_code/gf_2vect_mad_sse.asm
${isal_src_dir}/erasure_code/gf_3vect_mad_sse.asm
${isal_src_dir}/erasure_code/gf_4vect_mad_sse.asm
${isal_src_dir}/erasure_code/gf_5vect_mad_sse.asm
${isal_src_dir}/erasure_code/gf_6vect_mad_sse.asm
${isal_src_dir}/erasure_code/gf_vect_mad_sse.asm
${isal_src_dir}/erasure_code/gf_2vect_dot_prod_avx2.asm
${isal_src_dir}/erasure_code/gf_3vect_dot_prod_avx2.asm
${isal_src_dir}/erasure_code/gf_4vect_dot_prod_avx2.asm
${isal_src_dir}/erasure_code/gf_5vect_dot_prod_avx2.asm
${isal_src_dir}/erasure_code/gf_6vect_dot_prod_avx2.asm
${isal_src_dir}/erasure_code/gf_vect_dot_prod_avx2.asm
${isal_src_dir}/erasure_code/gf_vect_mul_avx.asm
${isal_src_dir}/erasure_code/gf_2vect_dot_prod_avx.asm
${isal_src_dir}/erasure_code/gf_3vect_dot_prod_avx.asm
${isal_src_dir}/erasure_code/gf_4vect_dot_prod_avx.asm
${isal_src_dir}/erasure_code/gf_5vect_dot_prod_avx.asm
${isal_src_dir}/erasure_code/gf_6vect_dot_prod_avx.asm
${isal_src_dir}/erasure_code/gf_vect_dot_prod_avx.asm
${isal_src_dir}/erasure_code/gf_vect_mul_sse.asm
${isal_src_dir}/erasure_code/gf_2vect_dot_prod_avx512.asm
${isal_src_dir}/erasure_code/gf_2vect_mad_avx512.asm
${isal_src_dir}/erasure_code/gf_3vect_dot_prod_avx512.asm
${isal_src_dir}/erasure_code/gf_3vect_mad_avx512.asm
${isal_src_dir}/erasure_code/gf_4vect_dot_prod_avx512.asm
${isal_src_dir}/erasure_code/gf_4vect_mad_avx512.asm
${isal_src_dir}/erasure_code/gf_vect_dot_prod_avx512.asm
${isal_src_dir}/erasure_code/gf_vect_mad_avx512.asm
ErasureCodeIsa.cc
ErasureCodeIsaTableCache.cc
ErasureCodePluginIsa.cc
xor_op.cc
)
elseif(HAVE_ARMV8_SIMD)
set(isa_srcs
${isal_src_dir}/erasure_code/ec_base.c
${isal_src_dir}/erasure_code/aarch64/ec_aarch64_highlevel_func.c
${isal_src_dir}/erasure_code/aarch64/ec_aarch64_dispatcher.c
${isal_src_dir}/erasure_code/aarch64/gf_2vect_dot_prod_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_2vect_mad_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_3vect_dot_prod_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_3vect_mad_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_4vect_dot_prod_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_4vect_mad_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_5vect_dot_prod_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_5vect_mad_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_6vect_mad_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_vect_dot_prod_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_vect_mad_neon.S
${isal_src_dir}/erasure_code/aarch64/gf_vect_mul_neon.S
${isal_src_dir}/erasure_code/aarch64/ec_multibinary_arm.S
ErasureCodeIsa.cc
ErasureCodeIsaTableCache.cc
ErasureCodePluginIsa.cc
xor_op.cc
)
set_source_files_properties(
${isal_src_dir}/erasure_code/aarch64/ec_multibinary_arm.S
PROPERTIES COMPILE_FLAGS "-D__ASSEMBLY__"
)
endif()
add_library(ec_isa SHARED
${isa_srcs}
$<TARGET_OBJECTS:erasure_code_objs>)
target_link_libraries(ec_isa ${EXTRALIBS})
set_target_properties(ec_isa PROPERTIES
INSTALL_RPATH "")
install(TARGETS ec_isa DESTINATION ${erasure_plugin_dir})
|