Lecture 6: Task-based Models and Charm++
Abhinav Bhatele, Department of Computer Science
High Performance Computing Systems (CMSC714)
Lecture 6: Task-based Models and Charm++ Abhinav Bhatele, Department - - PowerPoint PPT Presentation
High Performance Computing Systems (CMSC714) Lecture 6: Task-based Models and Charm++ Abhinav Bhatele, Department of Computer Science Summary of last lecture Shared-memory programming and OpenMP Fork-join parallelism OpenMP vs MPI:
Abhinav Bhatele, Department of Computer Science
High Performance Computing Systems (CMSC714)
Abhinav Bhatele, CMSC714
2
Abhinav Bhatele, CMSC714
3
Abhinav Bhatele, CMSC714
4
User View System View
Abhinav Bhatele, CMSC714
5
Abhinav Bhatele, CMSC714
6
Charm++ Tutorial: http://charmplusplus.org/tutorial/ArrayHelloWorld.html
module hello { array [1D] Hello { entry Hello(); entry void sayHi(); }; };
Abhinav Bhatele, CMSC714
6
Charm++ Tutorial: http://charmplusplus.org/tutorial/ArrayHelloWorld.html
module hello { array [1D] Hello { entry Hello(); entry void sayHi(); }; }; void Hello ::sayHi() { CkPrintf("Hello from chare %d on processor %d.\n”, thisIndex, CkMyPe()); }
Abhinav Bhatele, CMSC714
6
Charm++ Tutorial: http://charmplusplus.org/tutorial/ArrayHelloWorld.html
module hello { array [1D] Hello { entry Hello(); entry void sayHi(); }; }; void Hello ::sayHi() { CkPrintf("Hello from chare %d on processor %d.\n”, thisIndex, CkMyPe()); } Main::Main(CkArgMsg* msg) { numElements = 5; // number of elements CProxy_Hello helloArray = CProxy_Hello::ckNew(numElements); helloArray.sayHi(); }
Abhinav Bhatele, CMSC714
7
Abhinav Bhatele, CMSC714
8
The Charm++ Programming Model
Abhinav Bhatele, CMSC714
9
Parallel Programming with Migratable Objects: Charm++ in Practice
Abhinav Bhatele 5218 Brendan Iribe Center (IRB) / College Park, MD 20742 phone: 301.405.4507 / e-mail: bhatele@cs.umd.edu