Skip to content

o8r/warped2

 
 

Repository files navigation

WAPRED Build Status

A Parallel & Distributed Discrete Simulation Library

Building

WARPED is built with Autotools and a C++11 compiler.

Building from the Git repository

To build from the git repository, first clone a local copy.

git clone https://github.com/wilseypa/warped2.git 

You can run the Autotools build without any options, although specifying a prefix (install location) is recommended.

autoreconf -i && ./configure --prefix=$HOME/lib/warped2 && make && make install

Building from a tarball

To build from a source tarball, first download and extract the latest release from GitHub. cd into the directory you extracted the tarball to, and run the following commands:

export CXX=mpicxx
./configure --prefix=$HOME/lib/warped2 && make && make install

This will build and install the warped library to the path specified by the --prefix configuration option. If you omit the prefix, the library will be installed to /usr.

Troubleshooting

If you get a linker error telling you that the MPI library could not be found, you may need to specify the path to the MPI headers and libraries manually in the configuration step. You can specify the path to the library file with the --with-mpi-libdir configure option, and the header location with the --with-mpi-includedir option.

./configure --with-mpi-includedir=/usr/include/mpich --with-mpi-libdir=/usr/lib/mpich --prefix=$HOME/lib/warped2

Replace the paths in the above example with the locations of the MPI libraries and headers on your machine.

Silent Build Rules

Because the normal output of make is very verbose, WARPED is configured to use silent build rules by default. To disable silent rules, pass the --disable-silent-rules flag to configure or the V=1 flag to make.

./configure --prefix=$HOME/lib/warped2 --disable-silent-rules

or

make V=1

Debug Build Rules

WARPED can be configured to build in debug mode using the --enable-debug flag.

./configure --prefix=$HOME/lib/warped2 --enable-debug

Prerequisites

WARPED requires than an MPI implementation such as MPICH or OpenMPI is installed.

If building from the git repository instead of a tarball, you will also need the GNU Autotools tool-chain, including Automake, Autoconf, and Libtool.

License

The WARPED code in this repository is licensed under the MIT license, unless otherwise specified. The full text of the MIT license can be found in the LICENSE.txt file.

WARPED depends on some third party libraries which are redistributed in the deps/ folder. Each third party library used is licensed under a license compatible with the MIT license. The licenses for each third party library can be found in their respective directories.

About

warped simulation kernel (replacement of old system, beginning with version 5.0)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.9%
  • M4 1.4%
  • Makefile 0.7%