section3 - Administrivia Expectations and Confidence...

Info icon This preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
January 21, 2011
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Administrivia Expectations and Confidence Homework #1 Homework #2 Moving forward Read the materials provided. If you need help come work with me!
Image of page 2
Hw1 MPI Communication void powerMethod(int dims[2], double** splitA, double* x, int my_rank, int iters) { int i; double r[dims[0]]; for (i = 0; i < iters; i++) { if (my_rank == 0) norm(x, dims[1]); MPI_Bcast(x, dims[1], MPI_DOUBLE, ROOT, MPI_COMM_WORLD); matVec(dims, splitA, x, r); MPI_Gather(r, dims[0], MPI_DOUBLE, x, dims[0], MPI_DOUBLE, ROOT, MPI_COMM_WORLD); } }
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Planet MGR 1. Send my planets 1. Rotate others
Image of page 4
Planet MGR ! ! 3. When Cycle is complete update!
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Derived Data Types We can leverage the typedef struct in C to package data. MPI allows you to construct an MPI datatype this way. Through this discussion, think about what you would ideally send in a message in Hw3.
Image of page 6
What do we need? Part 1/4 First define the structure: typedef struct { double a; double b; int n; } MY_TYPE;
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Derived Types: Part 2/4 In main declare a var of type MY_TYPE
Image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern