UPC is an extension of the C programming language designed for high performance computing on large-scale parallel machines. There is a number of implementations of UPC. Currently only Berkeley implementation is available through eselect-repository (in science overlay).
Installation of the Berkeley runtime/driver
Berkeley UPC implementation is divided into runtime/driver and UPC-to-C translator. User operates with runtime/driver. If there is no UPC-to-C translator installed localy runtime/driver will use online translator provided by upstream.
First you need to add science overlay:
eselect repository enable science
emerge --sync haskell
There is much more configuration options available for you. To see them visit Berkeley UPC home page and especially read . All these options can be enabled by using EXTRA_ECONF variable. For example, if you want to use Quadrics/elan network conduit emerge the package as
EXTRA_ECONF='--enable-elan' emerge -va dev-lang/berkeley_upc
Some network conduits may need setting other environment variables to be discovered correctly during configure. Consult with documentation.
Also you can use package.env to set EXTRA_ECONF and other necessary variables.
Portable network conduits are available through setting appropriate USE flags (mpi, single, udp).
If you use portage.env or do not need to set additional options emerge this package just with
emerge --ask dev-lang/berkeley_upc
Installation of the UPC-to-C translator
Install it with
emerge --ask dev-lang/berkeley_upc_translator
After installation you will need to point driver/runtime to the translator. You can do it while compiling passing -translator=/usr/libexec/berkeley_upc_translator-VERSION/targ option to the upcc. Where VERSION is the version of dev-lang/berkeley_upc_translator.
Also you can edit translator option in the file /usr/libexec/berkeley_upc-VERSION/CONFIGURATION/etc/upcc.conf. VERSION here is the version of dev-lang/berkeley_upc package and CONFIGURATION is the configuration you use (opt by default). To see what configurations are consult with UPC documentation about multiconf.