Skip to content

Commit

Permalink
Enable -mavx512fp16 needed for avx512fp16 microkernels
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 633580841
  • Loading branch information
alankelly authored and xnnpack-bot committed May 15, 2024
1 parent 1ea7244 commit f1ba939
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ jobs:
add-to-path: false
- name: Build and run tests
run: |
bazel test test:all
bazel test --define=xnn_enable_avx512fp16=false test:all
working-directory: ${{ github.workspace }}
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
6 changes: 3 additions & 3 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2715,7 +2715,7 @@ xnnpack_cc_library(
"-mavx512vl",
"-mavx512vnni",
"-mgfni",
"-march=sapphirerapids",
"-mavx512fp16",
],
mingw_copts = ["-fno-asynchronous-unwind-tables"],
msvc_copts = xnnpack_msvc_std_copts(),
Expand Down Expand Up @@ -2747,7 +2747,7 @@ xnnpack_cc_library(
"-mavx512vl",
"-mavx512vnni",
"-mgfni",
"-march=sapphirerapids",
"-mavx512fp16",
],
mingw_copts = ["-fno-asynchronous-unwind-tables"],
msvc_copts = xnnpack_msvc_std_copts(),
Expand Down Expand Up @@ -2783,7 +2783,7 @@ xnnpack_cc_library(
"-mavx512vl",
"-mavx512vnni",
"-mgfni",
"-march=sapphirerapids",
"-mavx512fp16",
],
mingw_copts = ["-fno-asynchronous-unwind-tables"],
msvc_copts = xnnpack_msvc_std_copts(),
Expand Down

0 comments on commit f1ba939

Please sign in to comment.