Skip to content

Commit

Permalink
Remove AVX optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
saleyn committed Apr 18, 2024
1 parent d2dba7c commit 45f4c9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions c_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ HAVE_FORMAT ?= $(C20_FEATURES)
HAVE_SRCLOC ?= $(C20_FEATURES)

ifeq ($(UNAME_SYS),linux)
ifeq ($(shell gcc -march=native -dM -E - </dev/null | awk '/__AVX2__/ { print $$3 }'),1)
CXXFLAGS += -mavx2
else ifeq ($(shell gcc -march=native -dM -E - </dev/null | awk '/__AVX__/ { print $$3 }'),1)
CXXFLAGS += -mavx
endif
#ifeq ($(shell gcc -march=native -dM -E - </dev/null | awk '/__AVX2__/ { print $$3 }'),1)
# CXXFLAGS += -mavx2
#else ifeq ($(shell gcc -march=native -dM -E - </dev/null | awk '/__AVX__/ { print $$3 }'),1)
# CXXFLAGS += -mavx
#endif

SYSROOT := $(shell $(CXX) -print-sysroot)
CXXFLAGS += -DHAVE_SETRESUID -DHAVE_PIPE2 $(X64)
Expand Down

0 comments on commit 45f4c9b

Please sign in to comment.