MuPC is a portable, open source implementation of UPC V1.1.1. It enables UPC programs to run on a variety of platforms. The mupcc compilation script first invokes a UPC-to-C translator to translate your UPC source program to C. References to shared data and other UPC constructs from the original program are translated into calls to functions in the MuPC run time library. The C program is then compiled and linked with the MuPC library. MuPC library functions are implemented using Pthreads and MPI. MuPC is designed to run on any platform that supports those packages. Your system must provide Pthreads and MPI.
MuPC V1.1.2 Beta, released in September, 2005, complies with UPC V1.1.1 and incorporates version 3.4 of the EDG front end. Performance improvements include faster access to shared objects to which a thread has affinity, many improvements to the run time system, and easer installation through the use of GNU Autotools. All known bugs and most application limitations of previous versions have been eliminated. Downloads are available for Linux clusters and Tru 64 platforms. Contact us if you are interested in porting MuPC to other platforms.
int main ()
printf ("Hello world from thread %d.\n", MYTHREAD);
Hello world from thread 0.
Hello world from thread 1.
Hello world from thread 2.
Hello world from thread 3.
Permission is hereby granted to use, reproduce, prepare derivative works, and to redistribute to others.
Neither Michigan Technological University, nor any of its employees, makes any warranty express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights.
© 2004 Michigan Technological University