Skip to content

Commit

Permalink
add phi @ cnaf run instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
cenit committed Mar 30, 2016
1 parent c3e628f commit 4d06a2a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ doc/src/*.pre
[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ 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: OPT = -O3 -std=c++11 -mmic
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
Expand Down
3 changes: 2 additions & 1 deletion build/cnaf.phi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
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
source /shared/software/compilers/intel/compilers_and_libraries_2016/linux/bin/compilervars.sh intel64
source /shared/software/compilers/intel/compilers_and_libraries_2016/linux/mpi/intel64/bin/mpivars.sh

make cnaf-phi

27 changes: 27 additions & 0 deletions run/cnaf_phi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Edit your .bashrc file on the mic with at least these settings

export LD_LIBRARY_PATH=/lib64:${LD_LIBRARY_PATH}
export I_MPI_MIC_PROXY_PATH=/lib64
export PATH=/bin:$PATH
export I_MPI_MIC=enable




## copy the executable and the input file to your mic home dir

scp piccante.exe mic0:~/
scp inputPiccante.json mic0:~/




## run the executable from the mic

[hpc-200-06-15-mic0]$ mpirun -n N ./piccante.exe

(where N is the number of mic core you want to use)




0 comments on commit 4d06a2a

Please sign in to comment.