HW1
Download
1 / 6

HW1 - PowerPoint PPT Presentation


  • 128 Views
  • Uploaded on

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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' HW1' - garron


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
HW1

  • Questions?

    • Compiling/running/vampir/etc.?

    • turnin?

    • MPI?


Makefiles
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
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