![]() |
Allium
0.1.0
|
This section describes how to build and install the library.
To build Allium, you need to make sure that the required dependencies are installed. Dependencies fall into three categories. Mandatory dependencies have to be installed for building Allium. Optional dependencies can be omitted, but in this case certain functionality might be missing. Included dependencies are bundled with Allium and do not need to be installed separately. All dependencies are listed below.
If you do not know how to install the required dependencies on your system, consider using the build environment Docker image, as described in the Quickstart guide.
To build the library, run the following commands when inside the source directory.
$ cmake [OPTIONS] . $ make
In here, [OPTIONS] refers to a list of options which tailors the library to your needs. The options are listed below. If you are content with the standard configuration, you can run the command without providing any options.
-DCMAKE_BUILD_TYPE=<TYPE> <TYPE> can be Debug, Release or RelWithDebInfo to build the library in debug, release, or release with debugging information mode, respectively.-DCMAKE_INSTALL_PREFIX=<PATH> -DALLIUM_USE_CUDA=(ON|OFF) -DALLIUM_USE_GSL=(ON|OFF) -DALLIUM_USE_MPI4PY=(ON|OFF) -DALLIUM_USE_PETSC=(ON|OFF) -DALLIUM_USE_PYTHON=(ON|OFF) Once you have successfully built the library, you can run the demo applications located in the demo directory. For example, you can solve a simple 1D Poisson equation using the following command.
$ demo/poisson 128
Installing the library on your system can be done by running:
$ sudo make install
For changing the installation destination, consult the description of the CMAKE_INSTALL_PREFIX option above.