Update icc setup
This commit is contained in:
parent
da714d3b7f
commit
2823fa3699
9
Makefile
9
Makefile
@ -64,7 +64,11 @@ clean-emacs:
|
|||||||
|
|
||||||
clean: CLEANING=yes
|
clean: CLEANING=yes
|
||||||
clean:
|
clean:
|
||||||
-rm -v $(OBJ_FILES) $(DEP_FILES)
|
-rm -v \
|
||||||
|
$(OBJ_FILES) \
|
||||||
|
$(DEP_FILES) \
|
||||||
|
$(ATRIP_SHARED_LIBRARY) \
|
||||||
|
$(ATRIP_STATIC_LIBRARY)
|
||||||
|
|
||||||
clean-all: CLEANING=yes
|
clean-all: CLEANING=yes
|
||||||
clean-all: bench-clean clean-emacs clean clean-extern
|
clean-all: bench-clean clean-emacs clean clean-extern
|
||||||
@ -102,4 +106,5 @@ html: $(HTML_MAIN)
|
|||||||
|
|
||||||
.PHONY: dbg
|
.PHONY: dbg
|
||||||
dbg: include/dbg.h
|
dbg: include/dbg.h
|
||||||
wget https://raw.githubusercontent.com/sharkdp/dbg-macro/master/dbg.h -O $<
|
include/dbg.h:
|
||||||
|
wget -O $@ "https://raw.githubusercontent.com/sharkdp/dbg-macro/master/dbg.h"
|
||||||
|
|||||||
25
etc/config/icc-debug.mk
Normal file
25
etc/config/icc-debug.mk
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
include etc/make/ctf.mk
|
||||||
|
|
||||||
|
CXX = mpic++
|
||||||
|
|
||||||
|
bench: static
|
||||||
|
|
||||||
|
CTF_CONFIG_FLAGS = CXX=$(CXX) \
|
||||||
|
CXXFLAGS="-O3" \
|
||||||
|
LIBS="-lmkl" \
|
||||||
|
--no-dynamic
|
||||||
|
|
||||||
|
CXXFLAGS += -I$(ATRIP_ROOT)/include
|
||||||
|
|
||||||
|
CXXFLAGS += -I$(CTF_INCLUDE_PATH)
|
||||||
|
CXXFLAGS += -fPIC
|
||||||
|
CXXFLAGS += -g -O0
|
||||||
|
|
||||||
|
MKL_LIB = -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64
|
||||||
|
LDFLAGS += -qopenmp -mkl
|
||||||
|
LDFLAGS += -lpthread -std=c++11
|
||||||
|
LDFLAGS += $(MKL_LIB)
|
||||||
|
LDFLAGS += -L$(CTF_BUILD_PATH)/lib -lctf
|
||||||
|
|
||||||
|
bench: CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS))
|
||||||
|
bench: LDFLAGS += -L$(dir $(ATRIP_STATIC_LIBRARY)) -latrip
|
||||||
@ -6,7 +6,6 @@ bench: static
|
|||||||
|
|
||||||
CTF_CONFIG_FLAGS = CXX=$(CXX) \
|
CTF_CONFIG_FLAGS = CXX=$(CXX) \
|
||||||
CXXFLAGS="-O3" \
|
CXXFLAGS="-O3" \
|
||||||
LIBS="-lmkl" \
|
|
||||||
--no-dynamic
|
--no-dynamic
|
||||||
|
|
||||||
CXXFLAGS += -I$(ATRIP_ROOT)/include
|
CXXFLAGS += -I$(ATRIP_ROOT)/include
|
||||||
@ -22,4 +21,4 @@ LDFLAGS += $(MKL_LIB)
|
|||||||
LDFLAGS += -L$(CTF_BUILD_PATH)/lib -lctf
|
LDFLAGS += -L$(CTF_BUILD_PATH)/lib -lctf
|
||||||
|
|
||||||
bench: CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS))
|
bench: CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS))
|
||||||
bench: LDFLAGS += -Llib/ -latrip
|
bench: LDFLAGS += -L$(dir $(ATRIP_STATIC_LIBRARY)) -latrip
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user