Skip to content

Commit

Permalink
update to build on Phi at cnaf
Browse files Browse the repository at this point in the history
  • Loading branch information
cenit committed Mar 29, 2016
1 parent acf4f1f commit c3e628f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ OBJ = $(addprefix $(OBJ_FOLDER)/, $(addsuffix .o, $(basename $(FILES))))
OBJ += $(addprefix $(OBJ_FOLDER)/, $(addsuffix .o, $(basename $(MAINFILE))))
OBJDEV = $(addprefix $(OBJ_FOLDER)/, $(addsuffix .o, $(basename $(MAINFILE_DEV))))
LIB =
RPATH =
OPT = -O3 -std=c++11

BOOST_LIB = $(SRC_FOLDER)
Expand Down Expand Up @@ -49,6 +50,14 @@ cnaf-intel: OPT += -axSSE4.2,AVX -ipo
cnaf-intel: OPT_REPORT += -vec-report -opt-report 3
cnaf-intel: all

cnaf-phi: COMPILER = mpiicpc
cnaf-phi: BOOST_LIB = /shared/software/project/aladyn/boost_1_60_0_MIC/lib
cnaf-phi: BOOST_INC = /shared/software/project/aladyn/boost_1_60_0_MIC/include
cnaf-phi: OPT = -O3 -std=c++11 -mmic -DUSE_BOOST
cnaf-phi: RPATH = -Wl,-rpath=/shared/software/compilers/intel/compilers_and_libraries_2016.0.109/linux/compiler/lib/intel64_lin_mic
cnaf-phi: LIB = -lboost_filesystem -lboost_system
cnaf-phi: all

brew: boost
brew: BOOST_LIB = /usr/local/Cellar/boost/1.60.0_1/lib
brew: BOOST_INC = /usr/local/Cellar/boost/1.60.0_1/include
Expand Down Expand Up @@ -125,7 +134,7 @@ juqueen: all


$(EXE): $(OBJ)
$(COMPILER) $(OPT) -L$(BOOST_LIB) -L$(HDF5_LIB) -o $(EXE) $(OBJ) $(LIB)
$(COMPILER) $(OPT) -L$(BOOST_LIB) -L$(HDF5_LIB) $(RPATH) -o $(EXE) $(OBJ) $(LIB)

$(OBJ_FOLDER)/%.o: $(SRC_FOLDER)/%.cpp
$(COMPILER) $(OPT) -I$(BOOST_INC) -I$(HDF5_INC) -c -o $@ $<
Expand Down
11 changes: 11 additions & 0 deletions build/cnaf.phi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

#! /bin/bash


module purge
module load compilers/gcc-4.8.2
module load compilers/intel-parallel-studio-2016
source /shared/software/compilers/intel/bin/compilervars.sh intel64

make cnaf-phi

0 comments on commit c3e628f

Please sign in to comment.