@@ -36,115 +36,115 @@ def xnnpack_select_if(cond = None, val_true = [], val_false = []):
36
36
37
37
def xnnpack_configurable_defines ():
38
38
return xnnpack_select_if (
39
- ":cpuinfo_enabled" ,
39
+ "// :cpuinfo_enabled" ,
40
40
["XNN_ENABLE_CPUINFO=1" ],
41
41
["XNN_ENABLE_CPUINFO=0" ],
42
42
) + xnnpack_select_if (
43
- ":memopt_enabled" ,
43
+ "// :memopt_enabled" ,
44
44
["XNN_ENABLE_MEMOPT=1" ],
45
45
["XNN_ENABLE_MEMOPT=1" ],
46
46
) + xnnpack_select_if (
47
- ":sparse_enabled" ,
47
+ "// :sparse_enabled" ,
48
48
["XNN_ENABLE_SPARSE=1" ],
49
49
["XNN_ENABLE_SPARSE=0" ],
50
50
) + xnnpack_select_if (
51
- ":assembly_enabled" ,
51
+ "// :assembly_enabled" ,
52
52
["XNN_ENABLE_ASSEMBLY=1" ],
53
53
["XNN_ENABLE_ASSEMBLY=0" ],
54
54
) + xnnpack_select_if (
55
- ":arm_fp16_scalar_enabled" ,
55
+ "// :arm_fp16_scalar_enabled" ,
56
56
["XNN_ENABLE_ARM_FP16_SCALAR=1" ],
57
57
["XNN_ENABLE_ARM_FP16_SCALAR=0" ],
58
58
) + xnnpack_select_if (
59
- ":arm_fp16_vector_enabled" ,
59
+ "// :arm_fp16_vector_enabled" ,
60
60
["XNN_ENABLE_ARM_FP16_VECTOR=1" ],
61
61
["XNN_ENABLE_ARM_FP16_VECTOR=0" ],
62
62
) + xnnpack_select_if (
63
- ":arm_bf16_enabled" ,
63
+ "// :arm_bf16_enabled" ,
64
64
["XNN_ENABLE_ARM_BF16=1" ],
65
65
["XNN_ENABLE_ARM_BF16=0" ],
66
66
) + xnnpack_select_if (
67
- ":arm_dotprod_enabled" ,
67
+ "// :arm_dotprod_enabled" ,
68
68
["XNN_ENABLE_ARM_DOTPROD=1" ],
69
69
["XNN_ENABLE_ARM_DOTPROD=0" ],
70
70
) + xnnpack_select_if (
71
- ":arm_i8mm_enabled" ,
71
+ "// :arm_i8mm_enabled" ,
72
72
["XNN_ENABLE_ARM_I8MM=1" ],
73
73
["XNN_ENABLE_ARM_I8MM=0" ],
74
74
) + xnnpack_select_if (
75
- ":riscv_fp16_vector_enabled" ,
75
+ "// :riscv_fp16_vector_enabled" ,
76
76
["XNN_ENABLE_RISCV_FP16_VECTOR=1" ],
77
77
["XNN_ENABLE_RISCV_FP16_VECTOR=0" ],
78
78
) + xnnpack_select_if (
79
- ":avx512amx_enabled" ,
79
+ "// :avx512amx_enabled" ,
80
80
["XNN_ENABLE_AVX512AMX=1" ],
81
81
["XNN_ENABLE_AVX512AMX=0" ],
82
82
) + xnnpack_select_if (
83
- ":avx512fp16_enabled" ,
83
+ "// :avx512fp16_enabled" ,
84
84
["XNN_ENABLE_AVX512FP16=1" ],
85
85
["XNN_ENABLE_AVX512FP16=0" ],
86
86
) + xnnpack_select_if (
87
- ":avx512bf16_enabled" ,
87
+ "// :avx512bf16_enabled" ,
88
88
["XNN_ENABLE_AVX512BF16=1" ],
89
89
["XNN_ENABLE_AVX512BF16=0" ],
90
90
) + xnnpack_select_if (
91
- ":avxvnni_enabled" ,
91
+ "// :avxvnni_enabled" ,
92
92
["XNN_ENABLE_AVXVNNI=1" ],
93
93
["XNN_ENABLE_AVXVNNI=0" ],
94
94
) + xnnpack_select_if (
95
- ":avxvnniint8_enabled" ,
95
+ "// :avxvnniint8_enabled" ,
96
96
["XNN_ENABLE_AVXVNNIINT8=1" ],
97
97
["XNN_ENABLE_AVXVNNIINT8=0" ],
98
98
) + xnnpack_select_if (
99
- ":avx512f_enabled" ,
99
+ "// :avx512f_enabled" ,
100
100
["XNN_ENABLE_AVX512F=1" ],
101
101
["XNN_ENABLE_AVX512F=0" ],
102
102
) + xnnpack_select_if (
103
- ":avx256skx_enabled" ,
103
+ "// :avx256skx_enabled" ,
104
104
["XNN_ENABLE_AVX256SKX=1" ],
105
105
["XNN_ENABLE_AVX256SKX=0" ],
106
106
) + xnnpack_select_if (
107
- ":avx256vnni_enabled" ,
107
+ "// :avx256vnni_enabled" ,
108
108
["XNN_ENABLE_AVX256VNNI=1" ],
109
109
["XNN_ENABLE_AVX256VNNI=0" ],
110
110
) + xnnpack_select_if (
111
- ":avx256vnnigfni_enabled" ,
111
+ "// :avx256vnnigfni_enabled" ,
112
112
["XNN_ENABLE_AVX256VNNIGFNI=1" ],
113
113
["XNN_ENABLE_AVX256VNNIGFNI=0" ],
114
114
) + xnnpack_select_if (
115
- ":avx512skx_enabled" ,
115
+ "// :avx512skx_enabled" ,
116
116
["XNN_ENABLE_AVX512SKX=1" ],
117
117
["XNN_ENABLE_AVX512SKX=0" ],
118
118
) + xnnpack_select_if (
119
- ":avx512vbmi_enabled" ,
119
+ "// :avx512vbmi_enabled" ,
120
120
["XNN_ENABLE_AVX512VBMI=1" ],
121
121
["XNN_ENABLE_AVX512VBMI=0" ],
122
122
) + xnnpack_select_if (
123
- ":avx512vnni_enabled" ,
123
+ "// :avx512vnni_enabled" ,
124
124
["XNN_ENABLE_AVX512VNNI=1" ],
125
125
["XNN_ENABLE_AVX512VNNI=0" ],
126
126
) + xnnpack_select_if (
127
- ":avx512vnnigfni_enabled" ,
127
+ "// :avx512vnnigfni_enabled" ,
128
128
["XNN_ENABLE_AVX512VNNIGFNI=1" ],
129
129
["XNN_ENABLE_AVX512VNNIGFNI=0" ],
130
130
) + xnnpack_select_if (
131
- ":hvx_enabled" ,
131
+ "// :hvx_enabled" ,
132
132
["XNN_ENABLE_HVX=1" ],
133
133
["XNN_ENABLE_HVX=0" ],
134
134
) + xnnpack_select_if (
135
- ":kleidiai_enabled" ,
135
+ "// :kleidiai_enabled" ,
136
136
["XNN_ENABLE_KLEIDIAI=1" ],
137
137
["XNN_ENABLE_KLEIDIAI=0" ],
138
138
) + xnnpack_select_if (
139
- ":arm_sme_enabled" ,
139
+ "// :arm_sme_enabled" ,
140
140
["XNN_ENABLE_ARM_SME=1" ],
141
141
["XNN_ENABLE_SRM_SME=0" ],
142
142
) + xnnpack_select_if (
143
- ":arm_sme2_enabled" ,
143
+ "// :arm_sme2_enabled" ,
144
144
["XNN_ENABLE_ARM_SME2=1" ],
145
145
["XNN_ENABLE_ARM_SME2=0" ],
146
146
) + xnnpack_select_if (
147
- ":wasm_revectorize_enabled" ,
147
+ "// :wasm_revectorize_enabled" ,
148
148
["XNN_ENABLE_WASM_REVECTORIZE=1" ],
149
149
["XNN_ENABLE_WASM_REVECTORIZE=0" ],
150
150
) + xnnpack_slinky_defines ()
0 commit comments