Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

17
Parallel processing(361-1-3621) lecturer: Dr. Guy Tel-Zur Submitted by : Adi Hbursi 066140518 Israel Karity 021537543 UPC

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

Transcript of Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

Page 1: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

Parallel processing(361-1-3621)

lecturer: Dr. Guy Tel-Zur

Submitted by :Adi Hbursi 066140518Israel Karity 021537543

UPC

Page 2: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

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מה

Page 3: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

Different programming models

Page 4: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

Memory division

PointersPrivate-pointer: can reference addresses in private

space or related portion of shared memoryPointer-to-shared: can reference all of shared memory

Page 5: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

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

Page 6: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

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

Page 7: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

Example of code

Page 8: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
Page 9: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
Page 10: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
Page 11: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
Page 12: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
Page 13: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
Page 14: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

Study conducted by Tarek El-Ghazawi from The :George Washington University

Page 15: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
Page 16: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
Page 17: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur

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: