Upload
laban
View
27
Download
0
Embed Size (px)
DESCRIPTION
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 - PowerPoint PPT Presentation
Citation preview
Parallel processing(361-1-3621)
lecturer: Dr. Guy Tel-Zur
Submitted by :Adi Hbursi 066140518Israel Karity 021537543
UPC
UNIFIED PARALLEL C Extention of ANSI/ISO C 99Requires 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 SpaceSPMD – Single Program Multiple Data
זה ?UPCמה
Different programming models
Memory division
PointersPrivate-pointer: can reference addresses in private
space or related portion of shared memoryPointer-to-shared: can reference all of shared memory
Mode of operationconcurrent 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)
PGAS MODELPartitioned Global Memory Shared
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
Advantages and disadvantages
Example of code
Study conducted by Tarek El-Ghazawi from The :George Washington University
1 .:// . .http upc gwu edu2 .://http
. . / / _ _en wikipedia org wiki Unified Parallel C3.“ Unified Parallel C Tutorial at
PGAS09” Tarek El-Ghazawi, The George Washington University
Bibliography: