C H A P T E R 3 |
Setting Up Your Environment |
This chapter provides miscellaneous information about the runtime environment that you should know before you begin to use it. It contains the following sections:
If your program uses Sun HPC ClusterTools components, compile and link it on a cluster that contains the Sun HPC ClusterTools software.
It is strongly suggested that you use the Sun HPC ClusterTools 8.2.1c compiler wrapper to compile applications. These compiler wrappers add the appropriate compiler and linker flags to the command line and call the underlying compiler and linker for you. Compiler wrappers are available for C, C++, Fortran 77, and Fortran 90.
For more information about compiling MPI applications, see the “Compiling MPI Applications” FAQ at:
http://www.open-mpi.org/faq/?category=mpi-apps
Sun HPC ClusterTools commands typically reside in the following directories:
You can run the Sun HPC ClusterTools software from the directory in which your ClusterTools commands are installed, or you may add the directory to your PATH, or set the PATH environment variable.
The man pages for Sun HPC ClusterTools commands reside in /opt/SUNWhpc/HPC8.2.1c/compiler-name/man.
You should set your path to include Sun HPC ClusterTools commands. If they are in a nonstandard location, you also need to set the OPAL_PREFIX environment variable. If you are uncertain whether this step is needed, setting the OPAL_PREFIX environment variable does no harm if the commands are in the standard location.
Use the following command line format for a standard installation on a system running the Solaris OS:
The setenv command prefixes the PATH on both the local and remote hosts with /opt/SUNWhpc/HPC8.2.1c/sun/bin.
Use the following command line format for a standard installation on a system running a GNU-compiled Linux OS:
The setenv command prefixes the PATH on both the local and remote hosts with /opt/SUNWhpc/HPC8.2.1c/gnu/bin.
Use the following command line format for systems that have a nonstandard installation. In this example, the Sun HPC ClusterTools software is located in /my/clustertools/installation:
Core files are produced as they normally are in the Solaris environment. However, if more than one process dumps core in a multiprocess program, the resulting core file may be overwritten in the same directory. Use coreadm(1M) to control the naming and placement of core files.
To disable the core dump, use the limit(1) command. You can use the following command in the C shell:
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.