Unified Parallel C
{{Short description|Extension of the C programming language}}
{{Multiple issues|
{{No footnotes|date=April 2023}}
{{primary sources|date=December 2011}}
}}
{{Infobox programming language
| name =Unified Parallel C (UPC)
| logo =
| paradigm = parallel, message passing, imperative (procedural), structured
| year =
| designer = UPC Consortium
| developer =
| latest_release_version = 2022.10.0/{{release date|2022|10|28}}
| typing = static, weak, manifest
| implementations =[https://clangupc.github.io/ Clang UPC], [https://gcc.gnu.org/projects/gupc.html GNU UPC], [http://www.alphaworks.ibm.com/tech/upccompiler IBM XL UPC Compilers], [https://archive.today/20121208172611/http://www.hp.com/go/upc HP UPC], [http://upc.lbl.gov/ Berkeley UPC], [https://web.archive.org/web/20080618192748/http://www.upc.mtu.edu/ Michigan Tech MuPC], Cray UPC
| dialects =
| influenced_by =C, AC, Split-C, Parallel C Preprocessor
| influenced =
| operating_system = Cross-platform
| website = {{URL|upc-lang.org}}
| file_ext =
}}
Unified Parallel C (UPC) is an extension of the C programming language designed for high-performance computing on large-scale parallel machines, including those with a common global address space (SMP and NUMA) and those with distributed memory (e. g. clusters). The programmer is presented with a single partitioned global address space; where shared variables may be directly read and written by any processor, but each variable is physically associated with a single processor. UPC uses a single program, multiple data (SPMD) model of computation in which the amount of parallelism is fixed at program startup time, typically with a single thread of execution per processor.
In order to express parallelism, UPC extends ISO C 99 with the following constructs:
- An explicitly parallel execution model
- A shared address space ({{code|shared}} storage qualifier) with thread-local parts (normal variables)
- Synchronization primitives and a memory consistency model
- Explicit communication primitives, e. g. upc_memput
- Memory management primitives
The UPC language evolved from experiences with three other earlier languages that proposed parallel extensions to ISO C 99: AC, Split-C, and Parallel C preprocessor (PCP). UPC is not a superset of these three languages, but rather an attempt to distill the best characteristics of each. UPC combines the programmability advantages of the shared memory programming paradigm and the control over data layout and performance of the message passing programming paradigm.
See also
External links
- {{Official website|upc-lang.org}}
- [http://upc.lbl.gov UPC at LBNL]
- [http://upc.gwu.edu UPC at GWU] {{Webarchive|url=https://web.archive.org/web/20120708062727/http://upc.gwu.edu/ |date=2012-07-08 }}
- [https://gcc.gnu.org/projects/gupc.html GNU UPC]
- [https://web.archive.org/web/20100612064551/http://upc.gwu.edu/tutorials/tutorials_sc2003.pdf UPC Tutorial] (2003)
{{C programming language |state=collapsed}}
{{Parallel computing}}
{{Authority control}}