HP UPC is a parallel extension of the C programming language, which runs on both common types of multiprocessor systems: those with a common global address space (such as SMP) and those with distributed memory. UPC provides a simple shared memory model for parallel programming, allowing data to be shared or distributed among a number of communicating processors. Constructs are provided in the language to permit simple declaration of shared data, distribute shared data across threads, and synchronize access to shared data across threads. This model promises significantly easier coding of parallel applications and maximum performance across shared memory, distributed memory, and hybrid systems.

See the following Web page for more information about HP UPC:http://www.hp.com/go/upc

4.2 Compilers

You can use compilers acquired from other vendors on an HP XC system. For example, Intel C/C++ and Fortran compilers for the 64-bit architecture and Portland Group C/C++ and Fortran compilers on the CP4000 platform.

Intel, PGI, and Pathscale compilers are not supplied with the HP XC system.

You can use other compilers and libraries on the HP XC system as on any other system, provided they contain single-core routines and have no dependencies on another message-passing system.

Table 4-1displays the compiler commands for Standard Linux, Intel, and PGI compilers for the C, C++, and Fortran languages.

Table 4-1 Compiler Commands

Type

 

Compilers

 

Notes

 

 

 

 

 

 

C

C++

Fortran

 

 

 

 

 

 

Standard

gcc

gcc++

g77

All HP XC platforms.

Linux

 

 

 

The HP XC System Software supplies

 

 

 

 

 

 

 

 

these compilers by default.

 

 

 

 

 

Intel

icc

icc

ifort

Version 9.1compilers

 

 

 

 

For use on the Intel 64–bit platform.

 

 

 

 

 

Intel

icc

icc

ifort

Version 9.0 compilers

 

 

 

 

For use on the Intel 64–bit platform.

 

 

 

 

 

Intel

icc

icc

ifort

Version 8.0 compilers

 

 

 

 

For use on the Intel 64–bit platform.

 

 

 

 

 

Intel

ecc

ecc

efc

Version 7.1 compilers

 

 

 

 

For use on the Intel 64–bit platform.

 

 

 

 

These compilers can be used but Intel

 

 

 

 

may not support them much longer.

 

 

 

 

 

PGI

pgcc

pgCC

pgf95, pgf77

For use on the CP4000 platform

 

 

 

 

 

Pathscale

pathcc

pathCC

pathf95,

For use on the CP4000 platform

 

 

 

pathf90

pathf90 provided for backward

 

 

 

 

compatibility.

 

 

 

 

 

4.2.1 MPI Compiler

The HP XC System Software includes MPI. The MPI library on the HP XC system is HP-MPI Version 2.2.5.1.

40 Developing Applications