Skip to content

Commit 9c5af4b

Browse files
committed
Test google/pthreadpool fix
1 parent e84a418 commit 9c5af4b

7 files changed

Lines changed: 23 additions & 6 deletions

File tree

.ci/scripts/test_lora.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ Okay, so I need to calculate 15% of 80."
139139
EXPECTED_QUANT_LORA_PREFIX="
140140
<|im_start|>user Calculate 15% of 80?<|im_end|><|im_start|>assistant
141141
To calculate 15% of 80, we can multiply 80 by 15/100.
142-
So, 15% of 80 is equal to (80 * 15) / 100 = 1200 / 100 = 12.
142+
80 * 15/100 = 12.
143+
So, 15% of 80 is 12.
143144
#### 12
144145
The answer is: 12<|im_end|>"
145146

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
url = https://github.com/pytorch/cpuinfo.git
2525
[submodule "backends/xnnpack/third-party/pthreadpool"]
2626
path = backends/xnnpack/third-party/pthreadpool
27-
url = https://github.com/google/pthreadpool.git
27+
url = https://github.com/gregorycomer/pthreadpool.git
2828
[submodule "extension/llm/tokenizers"]
2929
path = extension/llm/tokenizers
3030
url = https://github.com/meta-pytorch/tokenizers.git

backends/xnnpack/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,16 @@ install(
154154
xnnpack-normalization
155155
xnnpack-operators
156156
xnnpack-operator-run
157+
xnnpack-operator-delete
157158
xnnpack-operator-utils
158159
xnnpack-pack-lh
159160
xnnpack-packing
160161
xnnpack-sanitizers
161162
xnnpack-subgraph
162163
xnnpack-datatype
164+
xnnpack-fingerprint-id
165+
xnnpack-fingerprint-cache
166+
xnnpack-fingerprint-check
163167
xnnpack-reference-ukernels
164168
xnnpack-logging
165169
EXPORT ExecuTorchTargets
Submodule XNNPACK updated 2893 files

backends/xnnpack/third-party/xnnpack.buck.bzl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ def define_xnnpack():
4141
"XNNPACK/src/memory.c",
4242
"XNNPACK/src/mutex.c",
4343
"XNNPACK/src/normalization.c",
44+
"XNNPACK/src/operator-delete.c",
4445
"XNNPACK/src/operator-utils.c",
46+
"XNNPACK/src/operators/fingerprint_cache.c",
47+
"XNNPACK/src/operators/fingerprint_id.c",
4548
"XNNPACK/src/reference/packing.cc",
4649
],
4750
headers = get_xnnpack_headers(),
@@ -1039,7 +1042,7 @@ def define_xnnpack():
10391042
native.cxx_library(
10401043
name = "ukernels_avx512vnnigfni",
10411044
srcs = select({
1042-
"DEFAULT": prod_srcs_for_arch_wrapper("avx512vnnifgni"),
1045+
"DEFAULT": prod_srcs_for_arch_wrapper("avx512vnnigfni"),
10431046
"ovr_config//cpu:arm32": DEFAULT_DUMMY_SRC,
10441047
"ovr_config//cpu:arm64": DEFAULT_DUMMY_SRC,
10451048
}),
@@ -1068,6 +1071,7 @@ def define_xnnpack():
10681071
"-mavxvnni",
10691072
"-mf16c",
10701073
"-mfma",
1074+
"-mgfni",
10711075
]
10721076

10731077
# @lint-ignore BUCKLINT: native and fb_native are explicitly forbidden in fbcode.
@@ -1172,6 +1176,14 @@ def define_xnnpack():
11721176
# "-DXNN_ENABLE_DWCONV_MULTIPLASS=0",
11731177
"-DXNN_ENABLE_ARM_I8MM=1",
11741178
"-DXNN_ENABLE_ARM_FP16_VECTOR=1",
1179+
"-DXNN_ENABLE_SSE=1",
1180+
"-DXNN_ENABLE_SSE2=1",
1181+
"-DXNN_ENABLE_SSSE3=1",
1182+
"-DXNN_ENABLE_SSE41=1",
1183+
"-DXNN_ENABLE_AVX=1",
1184+
"-DXNN_ENABLE_F16C=1",
1185+
"-DXNN_ENABLE_FMA3=1",
1186+
"-DXNN_ENABLE_AVX2=1",
11751187
"-DXNN_ENABLE_AVX512F=1",
11761188
"-DXNN_ENABLE_AVX512SKX=1",
11771189
"-DXNN_ENABLE_AVX512VNNI=1",

0 commit comments

Comments
 (0)