Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pybind_interface/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ endif
# The flags for the compilation of the simd-specific Pybind11 interfaces
PYBINDFLAGS_BASIC = $(PYBINDFLAGS)
PYBINDFLAGS_SSE = -msse4 $(PYBINDFLAGS)
PYBINDFLAGS_AVX2 = -mavx2 -mfma $(PYBINDFLAGS)
PYBINDFLAGS_AVX2 = -mavx2 -mfma -mbmi2 $(PYBINDFLAGS)
PYBINDFLAGS_AVX512 = -mavx512f -mbmi2 $(PYBINDFLAGS)

# The flags for the compilation of CUDA-specific Pybind11 interfaces
Expand Down
2 changes: 1 addition & 1 deletion pybind_interface/avx2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(WIN32)
# This prevents a conflict with /RTC1 in DEBUG builds.
add_compile_options($<$<NOT:$<CONFIG:Debug>>:/O2>)
else()
add_compile_options(-mavx2 -mfma -O3 -flto=auto)
add_compile_options(-mavx2 -mfma -mbmi2 -O3 -flto=auto)
endif()

if(APPLE)
Expand Down
1 change: 1 addition & 0 deletions tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
# Options for testing different simulator types.
avx_copts = [
"-mavx2",
"-mbmi2",
"-mfma",
]

Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ifneq (,$(HAVE_SSE))
SSE_FILES := $(wildcard *_sse_test.cc)
endif
ifneq (,$(HAVE_AVX2))
AVX2_FLAGS ?= -mavx2 -mfma
AVX2_FLAGS ?= -mavx2 -mfma -mbmi2
AVX2_FILES := $(wildcard *_avx_test.cc)
endif
ifneq (,$(HAVE_AVX512))
Expand Down
Loading