@@ -11271,9 +11271,9 @@ Downloading Charm++
1127111271
1127211272Charm++ can be downloaded using one of the following methods:
1127311273
11274- - From Charm++ website - The current stable version (source code and
11274+ - From the Charm++ website - The current stable version (source code and
1127511275 binaries) can be downloaded from our website at
11276- *http ://charm.cs.illinois.edu/software*.
11276+ *https ://charm.cs.illinois.edu/software*.
1127711277
1127811278- From source archive - The latest development version of Charm++ can
1127911279 be downloaded from our source archive using *git clone
@@ -11292,20 +11292,31 @@ Installation
1129211292A typical prototype command for building Charm++ from the source code
1129311293is:
1129411294
11295- ``./build <TARGET> <TARGET ARCHITECTURE> [OPTIONS]`` where,
11295+ .. code-block:: bash
11296+
11297+ $ ./build <TARGET> <TARGET ARCHITECTURE> [OPTIONS]
11298+
11299+ where,
1129611300
11297- TARGET
11301+ `` TARGET``
1129811302 is the framework one wants to build such as *charm++* or *AMPI*.
1129911303
11300- TARGET ARCHITECTURE
11304+ `` TARGET ARCHITECTURE``
1130111305 is the machine architecture one wants to build for such as
1130211306 *netlrts-linux-x86_64*, *pamilrts-bluegeneq* etc.
1130311307
11304- OPTIONS
11308+ `` OPTIONS``
1130511309 are additional options to the build process, e.g. *smp* is used to
1130611310 build a shared memory version, *-j8* is given to build in parallel
1130711311 etc.
1130811312
11313+ .. note::
11314+
11315+ Starting from version 7.0, Charm++ uses the CMake-based build system
11316+ when building with the ``./build`` command. To use the old configure-based
11317+ build system, you can build with the ``./buildold`` command with the same
11318+ options. We intend to remove the old build system in Charm++ 7.1.
11319+
1130911320In Table :numref:`tab:buildlist`, a list of build
1131011321commands is provided for some of the commonly used systems. Note that,
1131111322in general, options such as *smp*, ``--with-production``, compiler
@@ -11362,13 +11373,13 @@ path would be ``netlrts-linux-x86_64/tmp``. On Linux and macOS, the tmp
1136211373symlink in the top-level charm directory also points to the tmp
1136311374directory of the most recent build.
1136411375
11365- Alternatively, CMake can be used for configuring and building Charm++.
11376+ Alternatively, CMake can be used directly for configuring and building Charm++.
1136611377You can use ``cmake-gui`` or ``ccmake`` for an overview of available
1136711378options. Note that some are only effective when passed with ``-D`` from
1136811379the command line while configuring from a blank slate. To build with all
1136911380defaults, ``cmake .`` is sufficient, though invoking CMake from a
1137011381separate location (ex:
11371- ``mkdir mybuild && cd mybuild && cmake ../charm ``) is recommended.
11382+ ``mkdir mybuild && cd mybuild && cmake ..``) is recommended.
1137211383Please see Section :numref:`sec:cmakeinstall` for building Charm++
1137311384directly with CMake.
1137411385
@@ -11419,9 +11430,8 @@ select another version with the ``@`` option (for example,
1141911430Installation with CMake
1142011431~~~~~~~~~~~~~~~~~~~~~~~
1142111432
11422- As an experimental feature, Charm++ can be installed with the CMake tool,
11423- version 3.4 or newer.
11424- This is currently supported on Linux and Darwin, but not on Windows.
11433+ Charm++ can be installed directly with the CMake tool,
11434+ version 3.4 or newer, without using the ``./build`` command.
1142511435
1142611436After downloading and unpacking Charm++, it can be installed in the following way:
1142711437
@@ -11442,46 +11452,40 @@ For example, to build Charm++ and AMPI on top of the MPI layer with SMP, the fol
1144211452
1144311453 $ cmake .. -DNETWORK=mpi -DSMP=on -DTARGET=AMPI
1144411454
11445- To simplify building with CMake, the `buildcmake` command is a simple wrapper around cmake
11446- that supports many of the options that `build` supports.
11447-
11448- .. code-block:: bash
11449-
11450- $ ./buildcmake AMPI netlrts-linux-x86_64 smp --with-production
1145111455
1145211456Charm++ installation directories
1145311457~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1145411458
1145511459The main directories in a Charm++ installation are:
1145611460
11457- charm/bin
11461+ `` charm/bin``
1145811462 Executables, such as charmc and charmrun, used by Charm++.
1145911463
11460- charm/doc
11464+ `` charm/doc``
1146111465 Documentation for Charm++, such as this document. Distributed as
11462- LaTeX source code; HTML and PDF versions can be built or downloaded
11463- from our web site.
11466+ reStructuredText (RST or ReST) source code; HTML and PDF versions can be
11467+ built or downloaded from our web site.
1146411468
11465- charm/include
11469+ `` charm/include``
1146611470 The Charm++ C++ and Fortran user include files (.h).
1146711471
11468- charm/lib
11472+ `` charm/lib``
1146911473 The static libraries (.a) that comprise Charm++.
1147011474
11471- charm/lib_so
11475+ `` charm/lib_so``
1147211476 The shared libraries (.so/.dylib) that comprise Charm++, if Charm++
1147311477 is compiled with the ``-build-shared`` option.
1147411478
11475- charm/examples
11479+ `` charm/examples``
1147611480 Example Charm++ programs.
1147711481
11478- charm/src
11482+ `` charm/src``
1147911483 Source code for Charm++ itself.
1148011484
11481- charm/tmp
11485+ `` charm/tmp``
1148211486 Directory where Charm++ is built.
1148311487
11484- charm/tests
11488+ `` charm/tests``
1148511489 Test Charm++ programs used by autobuild.
1148611490
1148711491Reducing disk usage
0 commit comments