Skip to content

Commit

Permalink
change makefile to use gcc7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wwyf committed Apr 18, 2019
1 parent be26452 commit a8c835b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ BIN := /usr/local/bin
##############################################

# gcc and intelmpi
# use gcc 7.4

##############################################
CC := mpicc -cc=gcc
CX := mpicxx -cxx=g++
ifeq (1, ${DEBUG})
CFLAGS=-g3 -W -Wall -Wno-unused-but-set-variable -O0 -DDEBUG=1 -DVERSION="$(VERSION)" -DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -xHost -O3 -msse4.2
else
CFLAGS=-g3 -w -Wall -Wno-unused-but-set-variable -O4 -DVERSION="$(VERSION)" -DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -msse4.2
CFLAGS=-g3 -w -Wall -Wno-unused-but-set-variable -O4 -DVERSION="$(VERSION)" -DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -mpopcnt -msse4.2 -mavx
endif
##############################################

Expand Down

0 comments on commit a8c835b

Please sign in to comment.