Skip to content

Commit

Permalink
Fix XNNPACK workload build error (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
lum1n0us authored Dec 29, 2021
1 parent 90cccda commit 20867c9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions samples/workload/XNNPACK/xnnpack.patch
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ index ec740f38..29f9d56e 100644
+build:wasm --copt=-msimd128
+build:wasm --crosstool_top=@emsdk//emscripten_toolchain:everything
+build:wasm --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
diff --git a/BUILD.bazel b/BUILD.bazel
index 3fc8139f..c893356d 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -11988,7 +11988,6 @@ config_setting(
values = {
"crosstool_top": "@emsdk//emscripten_toolchain:everything",
"cpu": "wasm",
- "copt": "-msimd128",
"copt": "-mrelaxed-simd",
},
)
diff --git a/WORKSPACE b/WORKSPACE
index c58e76b6..30934678 100644
--- a/WORKSPACE
Expand Down Expand Up @@ -47,10 +59,10 @@ index c58e76b6..30934678 100644
android_ndk_repository(name = "androidndk")

diff --git a/build_defs.bzl b/build_defs.bzl
index 2442bed1..b860dfef 100644
index fbadb400..e496b78d 100644
--- a/build_defs.bzl
+++ b/build_defs.bzl
@@ -414,7 +414,7 @@ def xnnpack_benchmark(name, srcs, copts = [], deps = [], tags = []):
@@ -430,7 +430,7 @@ def xnnpack_benchmark(name, srcs, copts = [], deps = [], tags = []):
explicitly specified.
"""
native.cc_binary(
Expand Down

0 comments on commit 20867c9

Please sign in to comment.