Compilation on Linux platform, the usage
of the Makefile for RMCSANS Compilation on Linux platform, the usage of the
Makefile for RMCSANS
|
The supplied
Linux Makefile can have the following command line options, which will regulate
the building of the code. The status of the switches in altern.h,
whether they are commented out or not is of no consequence, as the Makefile will
always pass the Linux platform specific _GNU_LINUX switch to the
compiler, and the options in the altern.h will be bypassed. Instead, an
option can be switch on by passing command line arguments to the make. The name of the executable will contain indicators
of the used option switches to avoid confusion. The file names will always
begin with 'rmcsans' and end with '.exe'.
The command line options for
make, and the indicators in the executable name are the following:
|
Command line
argument passed to ‘make’ |
file name
indicator |
option
switch |
|
TEST=X |
_t |
for
_TEST_MODE, X is the number of generated steps to make |
|
MULTI=0 |
_multi |
for _MULTI
threading |
|
SUMP=0 |
_sp |
for _SUM_PPCF |
|
AT=0 |
_atlas |
for _ATLAS package,
has to be installed separately, can speed up execution on Linux platform |
|
OH=0 |
_oh |
for
_OLD_HEADER |
|
MAC=0 |
_mac |
for
_CODE_WARRIOR_MAC |
|
OLDOUT=0 |
_oo |
for
_OLDFORMAT_OUT |
|
ARCH=X |
X |
where X is a number,
this adds the X to the end of the file name before extension to differentiate
between different architecture, if necessary |
For
example compiling the RMCSANS code with ATLAS usage, summing the ppcf and
compiling for consecutive execution on a 64-bit architecture use
make AT=0 SUMP=0
ARCH=64
This
will result in executable named rmcsans_atlas_sp64.exe
You
can download the Makefile from here, but it is part
of the Linux package as well!
Page created by Orsolya Gereben
Last modified 24/06/2010 by Orsolya Gereben