COMPILERS(5) | COMPILERS(5) |
(INSTALL_DIR)/etc/compilers/system (INSTALL_DIR)/etc/compilers/system.bintype (INSTALL_DIR)/etc/compilers/site (INSTALL_DIR)/etc/compilers/site.bintypebintype specifies the binary type to run the compiler commands. The first and second files are created when you install SCore system. We recommented don't touch these files, because this file is repaced when you re-compile or verion up to SCore system. If you want to change backend compiler, please create site (or site.bintype when you share multiple platform).
Each line of the compiler file specifies script name and compiler informations. A single '#' character indicates that the rest of the line is a comment, and to be ignored.
Notation of a scripy as follows:
script compiler=path ...The first compiler entry is the default compiler. To check current compiler list, you can run score_compiler_list. Note that if you add backend compiler for MPI, you must recompile mpich module.
mpicc gnu=gcc intel=icc mpic++ gnu=g++ intel=ifc
In this example, if you invoke following command:
mpicc -compiler intel foo.cfoo.c compiles with icc. And you invoke as following:
mpic++ bar.ccbar.cc compiles with g++.