Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
description
Transcript of Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur
![Page 1: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/1.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/2.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/3.jpg)
Different programming models
![Page 4: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/4.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/5.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/6.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/7.jpg)
Example of code
![Page 8: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/8.jpg)
![Page 9: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/9.jpg)
![Page 10: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/10.jpg)
![Page 11: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/11.jpg)
![Page 12: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/12.jpg)
![Page 13: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/13.jpg)
![Page 14: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/14.jpg)
Study conducted by Tarek El-Ghazawi from The :George Washington University
![Page 15: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/15.jpg)
![Page 16: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/16.jpg)
![Page 17: Parallel processing (361-1-3621) lecturer: Dr. Guy Tel- Zur](https://reader036.fdocuments.in/reader036/viewer/2022062520/5681605b550346895dcf873b/html5/thumbnails/17.jpg)
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: