Skip to content

Commit

Permalink
Merge branch 'master' into hh_cond_beta_gap_traub
Browse files Browse the repository at this point in the history
  • Loading branch information
heplesser authored Mar 13, 2019
2 parents a1d2087 + 5611334 commit bacfb05
Show file tree
Hide file tree
Showing 709 changed files with 66,457 additions and 11,836 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ pynest/pynestkernel.cpp
.*
*.log
*.pyc

Makefile
!/doc/Makefile

build/
install/

Expand All @@ -30,6 +33,7 @@ install/
/topology/setup.py
/topology/doc/Topology_UserManual.out
/doc/doxygen/
/doc/_build/

*.kdev4

Expand Down Expand Up @@ -57,3 +61,4 @@ doc/normaldoc.conf
lib/sli/rcsinfo.sli
extras/nest_vars.sh

pynest/examples/README
228 changes: 57 additions & 171 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,171 +28,57 @@ language: python
sudo: required
dist: trusty

env:
matrix:
# We don't have to run a full matrix here, because most of the options are
# independent. This means we only need a minimal and maximal configuration
# and some additional jobs for interdependent options.
# See also https://docs.travis-ci.com/user/caching/#Caches-and-build-matrices
- xTHREADING=0 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=0 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # minimal
- xTHREADING=0 xMPI=1 xGSL=0 xLIBNEUROSIM=0 xLTDL=1 xREADLINE=1 xPYTHON=0 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # only MPI
- xTHREADING=1 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=1 xREADLINE=1 xPYTHON=0 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # only threading
- xTHREADING=1 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=1 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # Python & Threading
- xTHREADING=0 xMPI=1 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=1 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # Python & MPI
- xTHREADING=0 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=1 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # only Python
- xTHREADING=1 xMPI=1 xGSL=1 xLIBNEUROSIM=1 xLTDL=1 xREADLINE=1 xPYTHON=1 xMUSIC=1 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # full
python:
- 2.7.13
- 3.4.4
stages:
- Staticcheck
- MPI-Threading-Python
- Python-Full-build
- GCC8Clang7

matrix:
exclude:
- env: xTHREADING=0 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=0 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # minimal
# list of build stages to run. Stages with the same name get run in parallel.

jobs:
include:
- stage: Staticcheck
python: 3.4.4
- env: xTHREADING=0 xMPI=1 xGSL=0 xLIBNEUROSIM=0 xLTDL=1 xREADLINE=1 xPYTHON=0 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # only MPI
env: xTHREADING=0 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=0 xMUSIC=0 xSTATIC_ANALYSIS=1 xRUN_TESTSUITE=0 CACHE_NAME=JOB # only static code analysis and build
- stage: MPI-Threading-Python
python: 3.4.4
- env: xTHREADING=1 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=1 xREADLINE=1 xPYTHON=0 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # only threading
env: xTHREADING=0 xMPI=1 xGSL=0 xLIBNEUROSIM=0 xLTDL=1 xREADLINE=1 xPYTHON=0 xMUSIC=0 xSTATIC_ANALYSIS=0 xRUN_TESTSUITE=1 CACHE_NAME=JOB # only MPI
- stage: MPI-Threading-Python
python: 3.4.4
- env: xTHREADING=1 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=1 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # Python & Threading
env: xTHREADING=1 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=1 xREADLINE=1 xPYTHON=0 xMUSIC=0 xSTATIC_ANALYSIS=0 xRUN_TESTSUITE=1 CACHE_NAME=JOB # only threading
- stage: MPI-Threading-Python
python: 3.4.4
- env: xTHREADING=0 xMPI=1 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=1 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # Python & MPI
env: xTHREADING=1 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=1 xMUSIC=0 xSTATIC_ANALYSIS=0 xRUN_TESTSUITE=1 CACHE_NAME=JOB # Python & Threading
- stage: MPI-Threading-Python
python: 3.4.4
- env: xTHREADING=0 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=1 xMUSIC=0 xSTATIC_ANALYSIS=1 CACHE_NAME=JOB # only Python
env: xTHREADING=0 xMPI=1 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=1 xMUSIC=0 xSTATIC_ANALYSIS=0 xRUN_TESTSUITE=1 CACHE_NAME=JOB # Python & MPI
- stage: MPI-Threading-Python
python: 3.4.4

# Notify immediately when a build job fails.
fast_finish: true
#https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon

include:
- language: cpp
compiler: gcc-8
env:
- C_COMPILER=gcc-8
- CXX_COMPILER=g++-8
addons:
apt:
sources:
- r-packages-trusty
- ubuntu-toolchain-r-test
packages:
- g++-8
- build-essential
- cmake
- libltdl-dev
- libreadline6-dev
- libncurses5-dev
- libgsl0-dev
- python-all-dev
- python-numpy
- ipython
- pkg-config
- openmpi-bin
- libopenmpi-dev
- python-nose
- libpcre3
- libpcre3-dev
- llvm-3.6-dev
- jq
- pep8
- libboost-filesystem-dev
- libboost-regex-dev
- libboost-wave-dev
- libboost-python-dev
- libboost-program-options-dev
- libboost-test-dev
- python-mpi4py

before_install:
- pyenv install -s 2.7.13
- pyenv global 2.7.13
- echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"
- echo "+ P R E P A R E N E S T B U I L D E N V I R O N M E N T +"
- echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"
- export SOURCEDIR=$PWD
- echo $PWD
- ls $PWD
- cp extras/install_music.sh extras/install_csa-libneurosim.sh $HOME
- cd $HOME/build
- echo $PATH
# Upgrade pip and setuptools
- pip install -U pip
- pip install -U setuptools

# Installing additional packages using pip as they only have
# outdated versions in the Travis package whitelist.
# terminaltables is required by parse_travis_log.py to create
# the build summary.
- pip install cython scipy matplotlib terminaltables mpi4py
- language: cpp
compiler: clang-7.0
env:
- C_COMPILER=clang-7
- CXX_COMPILER=clang++-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- r-packages-trusty
- llvm-toolchain-trusty-7
packages:
- clang-7
- build-essential
- cmake
- libltdl-dev
- libreadline6-dev
- libncurses5-dev
- libgsl0-dev
- python-all-dev
- python-numpy
- ipython
- pkg-config
- openmpi-bin
- libopenmpi-dev
- python-nose
- libpcre3
- libpcre3-dev
- llvm-3.6-dev
- jq
- pep8
- libboost-filesystem-dev
- libboost-regex-dev
- libboost-wave-dev
- libboost-python-dev
- libboost-program-options-dev
- libboost-test-dev
- python-mpi4py

before_install:
- pyenv install -s 2.7.13
- pyenv global 2.7.13
- echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"
- echo "+ P R E P A R E N E S T B U I L D E N V I R O N M E N T +"
- echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"
- export SOURCEDIR=$PWD
- echo $PWD
- ls $PWD
- cp extras/install_music.sh extras/install_csa-libneurosim.sh $HOME
- cd $HOME/build
- echo $PATH
# Upgrade pip and setuptools
- pip install -U pip
- pip install -U setuptools
env: xTHREADING=0 xMPI=0 xGSL=0 xLIBNEUROSIM=0 xLTDL=0 xREADLINE=0 xPYTHON=1 xMUSIC=0 xSTATIC_ANALYSIS=0 xRUN_TESTSUITE=1 CACHE_NAME=JOB # only Python
- stage: Python-Full-build
python: 3.4.4
env: xTHREADING=1 xMPI=1 xGSL=1 xLIBNEUROSIM=1 xLTDL=1 xREADLINE=1 xPYTHON=1 xMUSIC=1 xSTATIC_ANALYSIS=0 xRUN_TESTSUITE=1 CACHE_NAME=JOB # full
- stage: Python-Full-build
python: 2.7.13
env: xTHREADING=1 xMPI=1 xGSL=1 xLIBNEUROSIM=1 xLTDL=1 xREADLINE=1 xPYTHON=1 xMUSIC=1 xSTATIC_ANALYSIS=0 xRUN_TESTSUITE=1 CACHE_NAME=JOB # full
- stage: GCC8Clang7
language: cpp
env: MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- stage: GCC8Clang7
language: cpp
env: MATRIX_EVAL="CC=clang-7 && CXX=clang++-7"

# Installing additional packages using pip as they only have
# outdated versions in the Travis package whitelist.
# terminaltables is required by parse_travis_log.py to create
# the build summary.
- pip install cython scipy matplotlib terminaltables
# Notify immediately when a build job fails.
fast_finish: true
#https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon
addons:
apt:
sources:
- r-packages-trusty
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- g++-8
- clang-7
- build-essential
- cmake
- libltdl-dev
Expand Down Expand Up @@ -223,25 +109,28 @@ cache:
- $HOME/.cache

before_install:
- echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"
- echo "+ P R E P A R E N E S T B U I L D E N V I R O N M E N T +"
- echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"
- export SOURCEDIR=$PWD
- echo $PWD
- ls $PWD
- cp extras/install_music.sh extras/install_csa-libneurosim.sh $HOME
- cd $HOME/build
- echo $PATH
# Upgrade pip and setuptools
- pip install -U pip
- pip install -U setuptools
- echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"
- echo "+ P R E P A R E N E S T B U I L D E N V I R O N M E N T +"
- echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"
- echo ${MATRIX_EVAL}
- eval "${MATRIX_EVAL}"
- export SOURCEDIR=$PWD
- echo $PWD
- ls $PWD
- cp extras/install_music.sh extras/install_csa-libneurosim.sh $HOME
- cd $HOME/build
- echo $PATH
# Upgrade pip and setuptools
- if [[ $TRAVIS_BUILD_STAGE_NAME == "Gcc8clang7" ]]; then pyenv global 3.6.3; fi
- pip install -U pip
- pip install -U setuptools

# Installing additional packages using pip as they only have
# outdated versions in the Travis package whitelist.
# terminaltables is required by parse_travis_log.py to create
# the build summary.
- pip install cython scipy matplotlib terminaltables

# Installing additional packages using pip as they only have
# outdated versions in the Travis package whitelist.
# terminaltables is required by parse_travis_log.py to create
# the build summary.
- pip install cython scipy matplotlib terminaltables
install:
- which cython
- cython --version
Expand All @@ -253,8 +142,6 @@ install:
- nosetests --plugins
- which cmake
- cmake --version
- if [ "$CXX" = "g++" ]; then export CXX="g++-8" CC="gcc-8"; ${CXX} --version; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-7" CC="clang-7"; ${CXX} --version; fi
- echo ${CC}
- echo ${CXX}

Expand All @@ -264,7 +151,6 @@ before_script:
- chmod +x extras/travis_build.sh
script:
- set -o pipefail
- export CXXFLAGS=${CI_CXX_FLAGS}
- ./extras/travis_build.sh 2>&1 | tee travis_build.sh.log
- python extras/parse_travis_log.py travis_build.sh.log

Expand Down
8 changes: 8 additions & 0 deletions cmake/ProcessOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ endfunction()
function( NEST_PROCESS_STATIC_LIBRARIES )
# build static or shared libraries
if ( static-libraries )

if ( with-readline )
message( FATAL_ERROR "-Dstatic-libraries=ON requires -Dwith-readline=OFF" )
endif ()

set( BUILD_SHARED_LIBS OFF PARENT_SCOPE )
# set RPATH stuff
set( CMAKE_SKIP_RPATH TRUE PARENT_SCOPE )
Expand All @@ -163,6 +168,9 @@ function( NEST_PROCESS_STATIC_LIBRARIES )
# be used, so we'll add both to the preference list.
set( CMAKE_FIND_LIBRARY_SUFFIXES ".a;.lib;.dylib;.so" PARENT_SCOPE )
endif ()

set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --static" PARENT_SCOPE )

else ()
set( BUILD_SHARED_LIBS ON PARENT_SCOPE )

Expand Down
20 changes: 20 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = test
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
6 changes: 0 additions & 6 deletions doc/README.md

This file was deleted.

Loading

0 comments on commit bacfb05

Please sign in to comment.