blob: ba61061e4979baa6c1e1f1ff633913a93404bc28 [file] [log] [blame]
Austin Schuhd94fb232018-01-28 17:09:21 -08001licenses(["notice"]) # lgpl
2
3cc_library(
4 name = "blasfeo",
5 hdrs = [
6 "include/blasfeo_block_size.h",
7 "include/blasfeo_common.h",
8 "include/blasfeo_d_aux.h",
9 "include/blasfeo_d_kernel.h",
10 "include/blasfeo_s_aux.h",
11 "include/blasfeo_s_kernel.h",
12 "include/blasfeo_target.h",
13 "include/blasfeo_d_blas.h",
14 "include/blasfeo_m_aux.h",
15 "include/blasfeo_s_blas.h",
Austin Schuhf8f95022018-01-28 20:01:10 -080016 "include/blasfeo_v_aux_ext_dep.h",
17 "include/blasfeo_d_aux_ext_dep.h",
18 "include/blasfeo_i_aux_ext_dep.h",
Austin Schuhd94fb232018-01-28 17:09:21 -080019 ],
20 includes = [
21 "include",
22 ],
23 srcs = [
24 # ext
25 "auxiliary/d_aux_lib4.c",
26 "auxiliary/avx/kernel_dgecp_lib4.c",
27 "auxiliary/avx/kernel_dgetr_lib4.c",
28 "auxiliary/s_aux_lib8.c",
29 "auxiliary/m_aux_lib48.c",
30 # kernels
31 "kernel/avx/kernel_dgemm_8x4_lib4.S",
32 "kernel/avx/kernel_dgemm_4x4_lib4.S",
33 "kernel/avx/kernel_dgemm_diag_lib4.c",
34 "kernel/avx/kernel_dgemv_12_lib4.S",
35 "kernel/avx/kernel_dgemv_8_lib4.S",
36 "kernel/avx/kernel_dgemv_4_lib4.S",
37 "kernel/avx/kernel_dsymv_6_lib4.S",
38 "kernel/avx/kernel_dgetrf_pivot_4_lib4.c",
39 "kernel/avx/kernel_dgeqrf_4_lib4.c",
40 "kernel/avx/kernel_dgebp_lib4.S",
41 "kernel/avx/kernel_sgemm_16x4_lib8.S",
42 "kernel/avx/kernel_sgemm_8x8_lib8.S",
43 "kernel/avx/kernel_sgemm_8x4_lib8.S",
44 "kernel/avx/kernel_sgecp_lib8.S",
45 "kernel/avx/kernel_sgemm_diag_lib8.c",
46 "kernel/avx/kernel_sgetr_lib8.S",
47 "kernel/avx/kernel_sgead_lib8.S",
48 "kernel/avx/kernel_sgesc_lib8.S",
49 "kernel/avx/kernel_sgemv_8_lib8.S",
50 "kernel/avx/kernel_sgemv_4_lib8.S",
51 # blas
52 "blas/d_blas1_lib4.c",
53 "blas/d_blas2_lib4.c",
54 "blas/d_blas2_diag_lib.c",
55 "blas/d_blas3_lib4.c",
56 "blas/d_blas3_diag_lib4.c",
57 "blas/d_lapack_lib4.c",
58 "blas/s_blas1_lib8.c",
59 "blas/s_blas2_lib8.c",
60 "blas/s_blas2_diag_lib.c",
61 "blas/s_blas3_lib8.c",
62 "blas/s_blas3_diag_lib8.c",
63 "blas/s_lapack_lib8.c",
64 # ext_dep
65 "auxiliary/d_aux_ext_dep_lib.c",
66 "auxiliary/s_aux_ext_dep_lib.c",
67 "auxiliary/v_aux_ext_dep_lib.c",
68 "auxiliary/i_aux_ext_dep_lib.c",
69 ],
70 copts = [
71 "-mavx",
72 "-DTARGET_X64_INTEL_SANDY_BRIDGE",
73 "-DLA_HIGH_PERFORMANCE",
74 "-DOS_LINUX",
75 "-DEXT_DEP",
76 "-Wno-unused-variable",
77 "-Wno-uninitialized",
78 "-Wno-unused-parameter",
79 "-Wno-unused-label",
80 "-Wno-cast-align",
81 ],
82 textual_hdrs = [
83 "blas/x_blas2_diag_lib.c",
84 ],
85 visibility = ["//visibility:public"],
86 restricted_to = ["//tools:k8"],
87)