Skip to content

Commit

Permalink
hide sse2 behing USE_SSE (apache#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored and tqchen committed Sep 14, 2016
1 parent ca4d4f6 commit 64b6ab0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion make/mshadow.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@
# Add MSHADOW_NVCCFLAGS to the nvcc compile flags
#----------------------------------------------------------------------------------------

MSHADOW_CFLAGS = -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas
MSHADOW_CFLAGS = -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas
MSHADOW_LDFLAGS = -lm
MSHADOW_NVCCFLAGS =
MKLROOT =

ifndef USE_SSE
USE_SSE=1
endif

ifeq ($USE_SSE), 1)
MSHADOW_CFLAGS += -msse3
else
MSHADOW_CFLAGS += -DMSHADOW_USE_SSE=0
endif

ifeq ($(USE_CUDA), 0)
MSHADOW_CFLAGS += -DMSHADOW_USE_CUDA=0
else
Expand Down

0 comments on commit 64b6ab0

Please sign in to comment.