A.2 Installation through the Spack package manager

Charm++ can also be installed through the Spack package manager (https://spack.io/).

A basic command to install Charm++ through Spack is the following:


  $ spack install charm

By default, the netlrts network backend with smp support is built. You can specify other backends by providing the backend parameter to spack. It is also possible to specify other options, as listed in Section A.1.2, by adding them to the Spack command prepended by a '+'. For example, to build the mpi version of Charm++ with the integrated OpenMP support, you can use the following command:


  $ spack install charm backend=mpi +omp

To disable an option, prepend it with a '~'. For example, to build Charm++ with smp support disabled, you can use the following command:


  $ spack install charm ~smp

By default, the newest released version of Charm++ is built. You can select another version with the '@' option (for example, @6.8.1). To build the current git version of Charm++ , specify the @develop version:


  $ spack install charm@develop