Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build system #39

Open
wants to merge 56 commits into
base: develop
Choose a base branch
from
Open

CMake build system #39

wants to merge 56 commits into from

Conversation

nightlark
Copy link
Contributor

This adds support for building the main TraceR executable with CMake. A first pass has been made at supporting a sphinx doc build target and running the tests using ctest. Building examples has the start of CMake files, but the compiler wrapper for scorep (used for the stencil4d-otf example) has issues during the linking stage, and I think will require upstream support from scorep developers to fix.

There are several other open pull requests (the regression testing one) that should be merged first. There are likely to be some merge conflicts with regression test files that will need resolving once that happens.

Example usage (assuming dependencies are installed to the home directory):

mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH="$HOME/codes-install;$HOME/scorep-install;$HOME/ROSS-install/lib" ..
make -j

Paths to the install prefixes for dependencies can be given using the ;-separated list as shown above (e.g. for BigSim support, add the install prefix for BigSim/Charm). As an alternative, there are CMake variables that can be set when configuring the project with cmake, such as:

PKG_CONFIG_PATH=$HOME/codes-install/lib/pkgconfig cmake -DROSS_DIR=$HOME/ROSS-install/lib

If dependencies are in standard system install locations or set in the right environment variables (e.g. PATH, LD_LIBRARY_PATH) they should be found automatically without listing the paths.

nightlark and others added 30 commits July 10, 2019 11:57
Run TraceR with a dfly network on the stencil4d-otf example on Travis
@bhatele bhatele changed the base branch from master to develop November 19, 2020 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant