Skip to content

Commit e940296

Browse files
authored
Release 7.1.0 (#149)
* ROSS cleanup (#135) This commit fixes warnings when building with -Wall and -Wextra. In addition, removes old unused code related to prior pthread versions of ROSS as well as removing the ROSS_MEMORY related code, due to no longer being fully functional. * fixing warnings when building with Wall, etc * fixing warnings in buddy.c * fixing warnings in the rest of ROSS core * fixing warnings in instrumentation * fixing warnings with phold * fixing undefined reference causing linking error * adding warning flags to Travis builds * fixing some additional warnings that appear in release builds * minor changes to travis builds * removing old, unnecessary pthread related code * fixing ifdefs for ROSS_MEMORY * removing tw-memory related stuff for now * removing some unused stuff and unnecessary function arguments * lots of documentation for network-mpi and removing some unnecessary stuff * keeping the ROSS models submodule from being used in Travis tests * minor fix for C++ Travis build * adding installing phold to bin * adding some RPATH commands to CMakeLists.txt for Spack * removed ROSS-Models and template model submodule * update readme for submodule details * rpath in pkg-config * adding develop branch to Travis safelist * simplifying the build of static or shared libraries (#147) * Update to the way the build process grabs version number (#148) * updating the way the version number is grabbed, so we can have the actual version and not the git commit * fixing an error that caused coveralls to fail * updating README and removing out-of-date README-vis (current info is on webpage) * few more updates to README * changing damaris submodule/directory to risa * see if gcov and clang versions match (#150) * see if gcov and clang versions match * maybe we should be using lcov... since we apt-get it * whitespace * what version is llvm-cov? * use llvm-cov * llvm-cov gcov * remove cov version checks * removing ROSS_obj from Cmake build - no longer necessary with single library creation * removing some files that are actually unnecessary for version numbers as well as having ROSS output both version number and commit, instead of just version
1 parent 6cb9316 commit e940296

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+595
-1594
lines changed

.gitmodules

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
[submodule "models/template-model"]
2-
path = models/template-model
3-
url = https://github.com/ROSS-org/template-model.git
4-
[submodule "models/ROSS-Models"]
5-
path = models/ROSS-Models
6-
url = https://github.com/carothersc/ROSS-Models
7-
[submodule "damaris"]
8-
path = core/damaris
9-
url = https://github.com/caitlinross/ROSS-damaris
1+
[submodule "risa"]
2+
path = core/risa
3+
url = https://github.com/ROSS-org/RISA

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ notifications:
1010
on_failure: always
1111
env:
1212
- secure: "BbB1KVY0Yb6DJwxdfFDF1PJwSx9euNfNX94oDKftiH8LE0nEzfS6xZc2sBkWTWOThHml9ttBkDIx/NhxEThOjyVcX6uv4kibP6moV5EqxqC+kLoZSEZnVuAdTJfGRKBdzmRp66R5a/GiMzzz/F3+smdVFMb6XR06sPQa5TQZjEc="
13+
git:
14+
submodules: false
1315
before_install:
1416
- sudo apt-add-repository -y ppa:libreoffice/libreoffice-4-2
1517
- sudo apt-get update -q
@@ -21,29 +23,31 @@ before_install:
2123
- mpirun --version
2224
script:
2325
- mkdir cxx-build && cd cxx-build
24-
- cmake -DCMAKE_BUILD_TYPE=Release ..
26+
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra" ..
2527
- export MPICH_CC=clang++
2628
- make
2729
- unset MPICH_CC
2830
- cd ..
2931
- mkdir release && cd release
30-
- MPICH_CC=clang cmake -DCMAKE_BUILD_TYPE=Release -DROSS_BUILD_MODELS=ON ..
32+
- MPICH_CC=clang cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra" -DROSS_BUILD_MODELS=ON ..
3133
- make
3234
- CTEST_OUTPUT_ON_FAILURE=1 make test
3335
- cd ..
3436
- mkdir build && cd build
35-
- MPICH_CC=clang cmake -DCOVERALLS=ON -DCMAKE_BUILD_TYPE=Debug -DROSS_BUILD_MODELS=ON ..
37+
- MPICH_CC=clang cmake -DCOVERALLS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-Wall -Wextra" -DROSS_BUILD_MODELS=ON ..
3638
- make
3739
- CTEST_OUTPUT_ON_FAILURE=1 make test
3840
- make coveralls
3941
- cd ..
4042
- mkdir build2 && cd build2
41-
- MPICH_CC=clang cmake -DAVL_TREE=OFF -DCOVERALLS=ON -DCMAKE_BUILD_TYPE=Debug -DROSS_BUILD_MODELS=ON ..
43+
- MPICH_CC=clang cmake -DAVL_TREE=OFF -DCOVERALLS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-Wall -Wextra" -DROSS_BUILD_MODELS=ON ..
4244
- make
4345
- CTEST_OUTPUT_ON_FAILURE=1 make test
4446
- make coveralls
4547
branches:
46-
only: master
48+
only:
49+
- master
50+
- develop
4751
after_success:
4852
- bash <(curl -s https://codecov.io/bash)
4953
- ## the following automatically builds the doxygen

CMakeLists.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,35 @@ INCLUDE(CTest)
1010

1111
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/core/cmake/")
1212

13+
# Follow section based on Spack doc:
14+
# https://spack.readthedocs.io/en/latest/workflows.html#write-the-cmake-build
15+
# enable @rpath in the install name for any shared library being built
16+
# note: it is planned that a future version of CMake will enable this by default
17+
set(CMAKE_MACOSX_RPATH 1)
18+
19+
# Always use full RPATH
20+
# http://www.cmake.org/Wiki/CMake_RPATH_handling
21+
# http://www.kitware.com/blog/home/post/510
22+
23+
# use, i.e. don't skip the full RPATH for the build tree
24+
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
25+
26+
# when building, don't use the install RPATH already
27+
# (but later on when installing)
28+
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
29+
30+
# add the automatically determined parts of the RPATH
31+
# which point to directories outside the build tree to the install RPATH
32+
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
33+
34+
# the RPATH to be used when installing, but only if it's not a system directory
35+
LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
36+
IF("${isSystemDir}" STREQUAL "-1")
37+
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
38+
ENDIF("${isSystemDir}" STREQUAL "-1")
39+
40+
# end of spack-related addition
41+
1342
# We probably don't want this to run on every build.
1443
option(COVERALLS "Generate coveralls data" OFF)
1544

README-vis.md

Lines changed: 0 additions & 141 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ You may find the now-deprecated version at the [ROSS-Legacy tag](https://github.
66
Using this repository you can compare files from the new `ROSS/core` to `ROSS/ross`.
77
For a detailed list of changes between old ROSS and SR please visit [the wiki](https://github.com/ROSS-org/ROSS/wiki/Differences-between-Simplified-ROSS-and-ROSS-Legacy).
88

9+
For the most recent docs and other important posts about ROSS, see the [ROSS webpage](http://ross-org.github.io).
10+
911
[![Build Status](https://travis-ci.com/ROSS-org/ROSS.svg?branch=master)](https://travis-ci.com/ROSS-org/ROSS)
1012
[![codecov.io](http://codecov.io/github/ROSS-org/ROSS/coverage.svg?branch=master)](http://codecov.io/github/ROSS-org/ROSS?branch=master)
1113
[![Doxygen](https://img.shields.io/badge/doxygen-reference-blue.svg)](http://ross-org.github.io/ROSS-docs/docs/html)
@@ -27,7 +29,7 @@ Developed as Simplified ROSS ([gonsie/SR](http://github.com/gonsie/SR)), this ve
2729
## Requirements
2830

2931
1. ROSS is written in C standard and thus requires a C compiler (C11 is prefered, but not required).
30-
2. The build system is [CMake](http://cmake.org), and we require version 2.8 or higher.
32+
2. The build system is [CMake](http://cmake.org), and we require version 3.5 or higher.
3133
3. ROSS relies on MPI.
3234
We recommend the [MPICH](http://www.mpich.org) implementation.
3335

@@ -46,18 +48,17 @@ Developed as Simplified ROSS ([gonsie/SR](http://github.com/gonsie/SR)), this ve
4648
git submodule init
4749
git submodule update
4850
```
49-
Currently, ROSS includes three submodules:
50-
- [ROSS-Models](http://github.com/ROSS-org/ROSS-Models) is a set of existing models
51-
- [template-model](http://github.com/ROSS-org/template-model) is a starting place for new models
51+
Currently, ROSS includes one submodule:
52+
- [RISA](https://github.com/ROSS-org/RISA) ROSS In Situ Analysis
5253

5354
3. *Optional* Symlink your model to ROSS.
54-
Please [this wiki page](https://github.com/ROSS-org/ROSS/wiki/Constructing-the-Model) for details about creating and integrating a model with ROSS.
55+
Please [this blog post](https://ross-org.github.io/setup/build-model-with-ross.html) for details about creating and integrating a model with ROSS.
5556
```
5657
ln -s ~/path-to/your-existing-model models/your-model-name
5758
```
5859

5960
4. Create a build directory.
60-
ROSS developers typically do out-of-tree builds. See the [Installation page](https://github.com/ROSS-org/ROSS/wiki/Installation) for more details.
61+
ROSS developers typically do out-of-tree builds. See the [Installation page](https://ross-org.github.io/setup/installation.html) for more details.
6162
```
6263
cd ~/directory-of-builds/
6364
mkdir ROSS-build
@@ -73,7 +74,7 @@ ROSS developers typically do out-of-tree builds. See the [Installation page](ht
7374
```
7475

7576
6. Run your model.
76-
See [this wiki page](https://github.com/ROSS-org/ROSS/wiki/Running-the-Simulator) for details about the ROSS command line options.
77+
See [this blog post](https://ross-org.github.io/setup/running-sim.html) for details about the ROSS command line options.
7778
```
7879
cd ~/directory-of-builds/ROSS-build/models/your-model
7980
./your-model --synch=1 // sequential mode

0 commit comments

Comments
 (0)