Preparation
- Download the Berkeley UPC from the Download Site. I use the http://upc.lbl.gov/download/
- Compile GNU 4.8.x. Do take a look at Compiling GNU 4.8.1 on CentOS 6
- Compile OpenMPI on GNU-4.8.1
Compilation
Step 1: Make sure your PATH and LD_LIBRARY_PATH reflect the GNU and OpenMPI Path
Step 2: Untar and Compile Berkeley UPC
# tar -zxvf berkeley_upc-2.22.0.tar.gz # cd berkeley_upc-2.22.0 # mkdir build # cd build # ../configure CC=gcc CXX=g++ MPI_CC=mpicc --prefix=/usr/local/berkeley_upc-2.22.0 # gmake
Step 3: Untar and Compile the local UPC-C translator
Download the Berkeley Translator from the Download site. http://upc.lbl.gov/download/source.shtml#translator
# tar -zxvf berkeley_upc_translator-2.18.0.tar.gz # cd berkeley_upc_translator-2.18.0 # make
After completion of successful build, it will show you the translator location path. Copy the line
translator = /usr/local/berkeley_upc_translator-2.18.0/open64/osprey1.0/build_ia64
and replace the line at the following files
/usr/local/RH6_apps/berkeley_upc-2.22.0/dbg/etc/upcc.conf /usr/local/RH6_apps/berkeley_upc-2.22.0/opt/etc/upcc.conf
Step 4: Finally make install Berkeley UPC
# make install
Step 5: Test
# upcc --version # upcrun
References: