GNU UPC

... Unified Parallel C

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase font size
  • Default font size
  • Decrease font size

GNU UPC Install from Binary Release

E-mail Print PDF

The GNU UPC binary release is provided in the form of a gzip'ed tar file for the following systems:

  • SGI, SUSE 11.1. ia64
  • Apple, MacOS X 10.6, x86_64
  • Apple, MacOS X 10.7, x86_64

The gzip'ed tar files contain an installable binary release of the UPC compiler, built for their respective target platforms.

All the binary releases are built with the following configuration options:

  • Packed pointer-to-shared representation
  • UPC thread affinity supported

The binary release is built to install under /usr/local/upc. However, the release can be installed in any convenient location - the 'upc' command finds the programs it requires, relative to its location.


The tar file contains paths which do not begin with "/". They are relative to the root directory. To install in /usr/local/upc, issue the following commands (the Linux Intel x86_64 release is illustrated below):

cd /
tar xpf upc-4.7.0.2-x86_64-ia64-sgi-suse11.1.tar.gz

The commands above, must be issued from a sysadmin account that has write access to /usr/local. A /usr/local/upc directory will be created.

If you don't have administrative privileges to /usr/local directory, you may install and run the compiler from somewhere else. Here's an example, where binary installation file is downloaded in /upc/test and then compiler is installed in /upc/test/usr/local/upc:

cd /upc/test
rm -rf usr/local/upc
tar xf upc--x86_64-linux-fc15.tar.gz
cat > count.upc << EOF
#include <upc.h>
#include <stdio.h>

int
main ()
{
int i;
for (i = 0; i < THREADS; i++)
{
if (MYTHREAD == i)
{
printf ("%d ", i + 1);
}
}
}
EOF
/upc/test/usr/local/upc/bin/upc count.upc
a.out -fupc-threads-5
1 2 3 4 5

Binary Release Prerequisits

To run the GNU UPC from the binary release the following packages are required:

  • SuSe 11 ia64: gmp, libmpfr1, libmpc2, lubnuma1
  • Mac OS X 10.6: gmp, mpfr, libmpc (installed via ports)
You are here: