1 / 6

HW1

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

garron
Télécharger la présentation

HW1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HW1 • Questions? • Compiling/running/vampir/etc.? • turnin? • MPI?

  2. 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

  3. 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)‏

  4. MPI • Examples • Broadcast • Scatter • Gather • https://computing.llnl.gov/tutorials/mpi/#AppendixA • /home/nlarusso/School/TA/cs140a/exampleMPI

  5. Midterm • Scheduled for Feb. 12, March 6 • Will post sample questions closer to the time • Book should be on reserve in the library

  6. 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

More Related