forked from ESMCI/cime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadme.configure
60 lines (54 loc) · 3.36 KB
/
Readme.configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
usage: configure [-h] [-d] [-v] [-s] [--machine MACHINE]
[--machines-dir MACHINES_DIR]
[--macros-format {Makefile,CMake}] [--output-dir OUTPUT_DIR]
[--compiler COMPILER] [--mpilib MPILIB]
This script writes CIME build information to a directory. The pieces of
information that will be written include: 1. Machine-specific build settings
(i.e. the "Macros" file). 2. File-specific build settings (i.e. "Depends"
files). 3. Environment variable loads (i.e. the env_mach_specific files). The
.env_mach_specific.sh and .env_mach_specific.csh files are specific to a given
compiler, MPI library, and DEBUG setting. By default, these will be the
machine's default compiler, the machine's default MPI library, and FALSE,
respectively. These can be changed by setting the environment variables
COMPILER, MPILIB, and DEBUG, respectively.
optional arguments:
-h, --help show this help message and exit
-d, --debug Print debug information (very verbose) to file /home/j
edwards/cesm2_0_alpha/cime/tools/mapping/map_field/src
/configure.log
-v, --verbose Add additional context (time and file) to log messages
-s, --silent Print only warnings and error messages
--machine MACHINE The machine to create build information for.
--machines-dir MACHINES_DIR
The machines directory to take build information from.
Overrides the CIME_MODEL environment variable, and
must be specified if that variable is not set.
--macros-format {Makefile,CMake}
The format of Macros file to generate. If 'Makefile'
is passed in, a file called 'Macros.make' is
generated. If 'CMake' is passed in, a file called
'Macros.cmake' is generated. This option can be
specified multiple times to generate multiple files.
If not used at all, Macros generation is skipped. Note
that Depends files are currently always in Makefile
format, regardless of this option.
--output-dir OUTPUT_DIR
The directory to write files to. If not specified,
defaults to the current working directory.
--compiler COMPILER, -compiler COMPILER
Specify a compiler. To see list of supported compilers
for each machine, use the utility query_config in this
directory
--mpilib MPILIB, -mpilib MPILIB
Specify the mpilib. To see list of supported mpilibs
for each machine, use the utility query_config in this
directory. The default is the first listing in MPILIBS
in config_machines.xml
--clean Remove old Macros and env files before attempting to
create new ones
It will create a Macros file in make or cmake format along with the module support
for the specified or default compiler. It will also create two files
.env_mach_specific.csh
.env_mach_specific.sh
Before you try to run make you should source the file above appropriate for your shell
this will set the proper environment for supported systems which use modules.