GCC UPC

... Unified Parallel C

  • Increase font size
  • Default font size
  • Decrease font size

GCC UPC Configuration - Installing from a binary release

E-mail Print PDF
Article Index
GCC UPC Configuration
Installing from a binary release
All Pages

Installing from a binary release

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 shared pointer representation
  • UPC thread affinity supported (if available)
  • UPC thread NUMA supported (if available)

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.3.2.5-x86_64-linux-fc11.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-4.3.2.5-x86_64-linux-fc11.tar.gz
cat > count.upc << EOF
#include
#include
#include

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