Jump to content

Unified Parallel C

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Oecology (talk | contribs) at 01:58, 17 July 2016 (Adding/removing wikilink(s)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Unified Parallel C (UPC)
Paradigmparallel, message passing, imperative (procedural), structured
Designed byUPC Consortium
Stable release
1.3/November 2013 (2013-11)
Typing disciplinestatic, weak, manifest
OSCross-platform
Websiteupc-lang.org
Major implementations
GNU UPC, IBM XL UPC Compilers, HP UPC, Berkeley UPC, Michigan Tech MuPC, Cray UPC
Influenced by
C, AC, Split-C, Parallel C Preprocessor

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 shared, partitioned address space, where 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
  • 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