Tuesday, March 9, 2010

Compiling other compilers with OpenMPI

To compile Intel Compiler with OpenMPI, see blog entry Building OpenMPI with Intel Compiler (Ver 2)

For more information on compiling with other compilers: see FAQ No 65 "Open MPI seems to default to building with the GNU compiler set. Can I use other compilers?"

In summary, the 4 switches on the configure command line are used to specify the compiler suite:

•CC: Specifies the C compiler
•CXX: Specifies the C++ compiler
•F77: Specifies the Fortran 77 compiler
•FC: Specifies the Fortran 90 compiler

For Portland Group Compiler,
# Portland compilers 
# ./configure CC=pgcc CXX=pgCC F77=pgf77 FC=pgf90

For Pathscale Compilers
# Pathscale compilers
# ./configure CC=pathcc CXX=pathCC F77=pathf90 FC=pathf90

For Sun Compilers
# Sun compilers
# ./configure CC=cc CXX=CC F77=f77 FC=f90

Note: The Open MPI team recommends using a single compiler suite whenever possible. Unexpeced or undefined behavior can occur when you mix compiler suites in unsupported ways (e.g., mixing Fortran 77 and Fortran 90 compilers between different compiler suites is almost guaranteed not to work).

Monday, March 8, 2010

MAUI: Cannot send request to server ...... (server may not be running)

ERROR: cannot send request to server ................42559 (server may not be running)
ERROR: cannot request service (status)

A few assumptions for this blog entry. You are using Torque and MAUI only for the resource manager and scheduler respectively.

Several things to check.
  1. Make sure your /etc/hostname reflect the correct entries for all the head and compute nodes
  2. For the Torque configuration, do follow the configuration seen in the blog entry Setting up Torque Server on xCAT 2.x. Pay particular attendtion to Step 2 and 3
  3. For the MAUI configuration, do follow the configuration seen in the blog entry MAUI Installation in xCAT 2.x
  4. Check the logs for MAUI at /usr/local/maui/log
After following Pointer 1-4, you are still unable to solve, you can get some hints if you can go to
# cd /opt/maui/sbin/
and type
./maui
In my particular situation, I encounter server must be started on host 'xxx.xxx.xxx.xxx.xxx' (currently on 'xxx') which is my short-name. I resolve it quickly by going to /usr/local/maui/maui.cfg and edit the
SERVERHOST = xxxx

Sunday, March 7, 2010

Directory index forbidden by Options directive error for when displaying nagios

When you are unable to display the Nagios web after installation but encounter "Directory index forbidden by Options directive: .........." error. You need to set Apache to serve the file when the directory is requested.

To resolve the problem above. Go to
# vim /etc/httpd/conf/httpd.conf

Type the following into http.conf and restart apache and nagios


# service htpd restart
# service nagios restart

Friday, March 5, 2010

forrtl: severe (24): end-of-file during read & forrtl

forrtl: severe (24): end-of-file during read & forrtl: severe (67): input statement requires too much data....Read this forum entry for more information. http://software.intel.com/en-us/forums/showthread.php?t=63981

Solving error while loading shared libraries: libmpi_f77.so.0

If you encontered this error "error while loading shared libraries: libmpi_f77.so.0: cannot open shared object file: No such file or directory".

This is due to missing /usr/local/lib files which are not accessible by the compute nodes. After you have made the libraries available, you may have to add /usr/local/lib to your LD_LIBRARY_PATH environment


You should be able to eliminate the error.