170 likes | 265 Views
Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur. Submitted by: Adi Hbursi 066140518 Israel Karity 021537543. UPC. מה זה UPC ?. UNIFIED PARALLEL C Extention of ANSI/ISO C 99
E N D
Parallel processing(361-1-3621)lecturer: Dr. Guy Tel-Zur Submitted by: AdiHbursi 066140518 Israel Karity 021537543 UPC
מה זה UPC ? • UNIFIED PARALLEL C • Extention of ANSI/ISO C 99 • Requires a designated compiler. Most common berkely UPC and gcc/upc. But also IBM, HP, Cray, etc. • Descendant of split-c and parallel-c preprocessor • PGAS – Partitioned Global Adress Space • SPMD – Single Program Multiple Data
Memory division Pointers Private-pointer: can reference addresses in private space or related portion of shared memory Pointer-to-shared: can reference all of shared memory
PGAS MODELPartitioned Global Memory Shared Mode of operation concurrent threads with a partitioned shared space - A partition can reference data in another partition - Global arrays have fragments in multiple Partitions - MYTHREAD specifies the thread index (0..THREADS-1)
Advantages and disadvantages Advantages : - Helps in exploiting locality (- Simple statements (as in shared memory Disadvantages : - Problem with synchronization (solved with locks) - Sharing all memory can result in bugs
Study conducted by Tarek El-Ghazawi from The :George Washington University
Bibliography: • 1. http://upc.gwu.edu • 2. http://en.wikipedia.org/wiki/Unified_Parallel_C • 3.“Unified Parallel C Tutorial at PGAS09” Tarek El-Ghazawi, The George • Washington University