Compiling Programs on the E10K
The E10k's have the latest SUN compilers installed (Workshop Compilers 5.0) including FORTRAN 90 2.0, FORTRAN 77 5.0, and C++ 5.0. They are accessible from /opt/SUNWspro/bin. The E10k's also have SUN HPC 3.0 installed, which is Sun's High Performance Computing environment. SUN HPC has three main components, MPI, S3L, and RTE; only the first two are relevant at our installation at this time. MPI stands for "Message Passing Interface", and is a library callable from either FORTRAN or C/C++ which facilitates platform independent parallel computation. For introductory material on MPI, consult the following URLS:
http://www-unix.mcs.anl.gov/mpi
SUN HPC provides additional scripts for compiling and linking MPI based programs. Here are some examples for compiling C++ and F77/F90 code respectively:
% tmcc connectivity.c -o connectivity -lmpi
% tmf77 -dalign monte.f -o monte -lmpi
Example MPI programs can be found in /opt/SUNWhpc/examples/mpi.
The S3L component of SUN HPC is a library of commonly used scientific routines that have been optimized for the SUN HPC platform. These include libraries for dense linear algebra and Fourier transforms based on the standard libraries BLAS, LINPACK, LAPACK, FFTPACK, and VFFTPACK. A file describing how to use the library via example codes is located in /opt/SUNWhpc/examples/s3l/README.