compilers

SCore Compiler database

DESCRIPTION

mpc++(1), scorecc(1) and other SCore compiler drivers can accept the option to specify which backend compiler to be used with the -compiler option. The compilers files described in this man page are used to associate the names of backend compilers and its command path.

All compiler files locate in (INSTALL_DIR)/etc/compilers directory and the file format is the same. SCore compiler commands read the files in the following order.

  1. (INSTALL_DIR)/etc/compilers/system
  2. (INSTALL_DIR)/etc/compilers/system.bintype
  3. (INSTALL_DIR)/etc/compilers/site
  4. (INSTALL_DIR)/etc/compilers/site.bintype

Where bintype specifies the binary type to run the compiler commands. The first and second files are already exist since when you install SCore system and these files are intended not to edit nor change. If you want to add or change backend compiler(s), the site file(s) should be created. (or site.bintype when you have multiple platforms).

Each line of the compiler file specifies the script name and the path to the compiler. A single '#' character indicates that the rest of the line is a comment, and to be ignored.

Notation of a script

script compiler[=path] ...
alias name compiler

The first compiler entry is the default compiler. If path is omitted, formerly defined path is used.

The second format enable alias name to compiler.

To check current compiler list, you can run the score_compiler_list command.

Note that if you add backend compiler for MPI, you must recompile whole MPI library.

EXAMPLE

alias   gnu3 gnu
mpicc	gnu=gcc gnu3=gcc3 intel=icc
mpic++	gnu=g++ gnu3=g++3 intel=ifc

With the above example file and the following command is invoked,

% mpicc -compiler intel foo.c
then foo.c is compiled with the icc compiler.
% mpicc -compiler gnu3 foo.c
In this case foo.c is compiled with the gcc3 compiler with gnu specific compiler options.
% mpic++ bar.cc
In this case bar.cc is compiled with the g++ compiler.

FILES

(INSTALL_DIR)/etc/compilers/system
(INSTALL_DIR)/etc/compilers/system.bintype
(INSTALL_DIR)/etc/compilers/site
(INSTALL_DIR)/etc/compilers/site.bintype

SEE ALSO

scorecc(1), mpicc(1), mpic++(1), mpif77(1), mpif90(1), compiler_alias(5). score_compiler_list(8).
CREDIT
This document is a part of the SCore cluster system software developed at PC Cluster Consortium, Japan. Copyright (C) 2003-2008 PC Cluster Consortium.