60 likes | 213 Views
HW1. Questions? Compiling/running/vampir/etc.? turnin? MPI?. Makefiles. General Layout: Target : Dependencies Command 2 nd line MUST begin with a tab!! Example (~/School/TA/cs140a) : pi : parpi.c mpcc parpi.c -o pi -lm. MPCC=mpcc nodes=1 threads=8
E N D
HW1 • Questions? • Compiling/running/vampir/etc.? • turnin? • MPI?
Makefiles • General Layout: Target : Dependencies Command • 2nd line MUST begin with a tab!! • Example (~/School/TA/cs140a): pi : parpi.c mpcc parpi.c -o pi -lm
MPCC=mpcc • nodes=1 • threads=8 • stuff=-nodes $(nodes) -tasks_per_node $(threads) -rmpool 1 -euilib us -euidevice sn_all • pi : parpi.c $(MPCC) parpi.c -o pi -lm • vpi : parpi.c $(MPCC) parpi.c -o vpi -L/usr/local/apps/vampirtrace/lib -lVT -lm -lld • runv : vpi poe vpi $(stuff) • runhpm : pi poe hpmcount -a -o hpm_out pi $(stuff)
MPI • Examples • Broadcast • Scatter • Gather • https://computing.llnl.gov/tutorials/mpi/#AppendixA • /home/nlarusso/School/TA/cs140a/exampleMPI
Midterm • Scheduled for Feb. 12, March 6 • Will post sample questions closer to the time • Book should be on reserve in the library
HW2 • Matrix vector multiplication • Power-method to compute eigenvector in parallel • A*xi = x(i + 1) • Repeat until A*x = d*x • Eigenvectors used to find steady state of systems