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.
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.
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.cthen foo.c is compiled with the icc compiler.
% mpicc -compiler gnu3 foo.cIn this case foo.c is compiled with the gcc3 compiler with gnu specific compiler options.
% mpic++ bar.ccIn this case bar.cc is compiled with the g++ compiler.
scorecc
(1), mpicc
(1), mpic++
(1), mpif77
(1), mpif90
(1), compiler_alias
(5). score_compiler_list
(8).