Skip to content

Commit 75c6e8c

Browse files
author
Friedemann Zenke
committed
Merge branch 'release-v0.7'
Merges release branch into master for full release of Auryn v0.7.
2 parents 4db7bf5 + f1ac5a3 commit 75c6e8c

Some content is hidden

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

76 files changed

+1788
-794
lines changed

.gitignore

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,10 @@
33
*.[oa]
44
*.l[oa]
55
*/.libs
6+
67
# Ignore docs
78
docs/*
8-
# Ignore development files
9-
dev/*
10-
# Ignore stuff in the build dirs except the makefiles
11-
build/*
12-
!build/lcncluster/Makefile
13-
!build/lcnsunc1/Makefile
14-
!build/home/Makefile
15-
!build/debug/Makefile
16-
!build/tug/Makefile
179

18-
# http://www.gnu.org/software/automake
19-
Makefile.in
20-
Makefile
21-
# # http://www.gnu.org/software/autoconf
22-
/autom4te.cache
23-
/aclocal.m4
24-
/compile
25-
/configure
26-
/depcomp
27-
/install-sh
28-
/missing
29-
/stamp-h1
30-
config*
31-
.deps
32-
libtool
33-
ltmain.sh
34-
m4/libtool.m4
35-
m4/ltoptions.m4
36-
m4/ltsugar.m4
37-
m4/ltversion.m4
38-
m4/lt~obsolete.m4
10+
# Ignore stuff in the build dir
11+
build/*
3912

40-
cscope.out
41-
tags
42-
# travis build file
43-
.travis.yml

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: cpp
2+
compiler:
3+
- gcc
4+
before_install:
5+
- sudo add-apt-repository ppa:boost-latest/ppa -y
6+
- sudo add-apt-repository ppa:dns/gnu -y
7+
- sudo add-apt-repository ppa:yjwong/cmake -y
8+
- sudo apt-get update -qq -y
9+
- sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install build-essential libtool m4 --force-yes
10+
- sudo apt-get install libboost1.54-all-dev mpich2 libmpich2-dev libcr-dev -y
11+
- sudo apt-get install cmake cmake-data -y
12+
script:
13+
- CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -m64 -mtune=generic}" ; export CFLAGS ;
14+
- CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -m64 -mtune=generic}" ; export CXXFLAGS ;
15+
- LDFLAGS="${LDFLAGS:--Wl,-z,relro}";export LDFLAGS ;
16+
- cmake -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON && make
17+
18+
notifications:
19+
email:
20+
recipients:
21+
22+
23+
on_success: change
24+
on_failure: always

CMakeLists.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
cmake_minimum_required (VERSION 2.6)
2+
project (Auryn)
3+
4+
# The version number.
5+
set (Auryn_VERSION_MAJOR 0)
6+
set (Auryn_VERSION_MINOR 6)
7+
8+
# Important GCC Compiler flags for Auryn's performance
9+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native -ffast-math")
10+
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -pedantic")
11+
12+
# Display flags (for debugging only)
13+
# message("CMAKE_CXX_FLAGS_DEBUG is ${CMAKE_CXX_FLAGS_DEBUG}")
14+
# message("CMAKE_CXX_FLAGS_RELEASE is ${CMAKE_CXX_FLAGS_RELEASE}")
15+
16+
# Required external MPI libraries
17+
FIND_PACKAGE(MPI REQUIRED)
18+
19+
# Required Boost libraries
20+
SET(BOOST_MIN_VERSION "1.41.0")
21+
FIND_PACKAGE(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS mpi serialization program_options date_time)
22+
23+
INCLUDE_DIRECTORIES( ${MPI_CXX_INCLUDE_PATH} )
24+
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIRS} )
25+
INCLUDE_DIRECTORIES(src)
26+
27+
ADD_SUBDIRECTORY(src)
28+
ADD_SUBDIRECTORY(examples)
29+
ADD_SUBDIRECTORY(tools)
30+

build/Makefile.include

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

build/debug/Makefile

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

build/home/Makefile

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

doc/auryn_logo_small.png

9.85 KB
Loading

examples/CMakeLists.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
ADD_EXECUTABLE( sim_background sim_background.cpp )
2+
TARGET_LINK_LIBRARIES( sim_background auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
3+
4+
ADD_EXECUTABLE( sim_bg_lowpass sim_bg_lowpass.cpp )
5+
TARGET_LINK_LIBRARIES( sim_bg_lowpass auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
6+
7+
ADD_EXECUTABLE( sim_bg_static sim_bg_static.cpp )
8+
TARGET_LINK_LIBRARIES( sim_bg_static auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
9+
10+
ADD_EXECUTABLE( sim_brunel2k sim_brunel2k.cpp )
11+
TARGET_LINK_LIBRARIES( sim_brunel2k auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
12+
13+
ADD_EXECUTABLE( sim_brunel2k_pl sim_brunel2k_pl.cpp )
14+
TARGET_LINK_LIBRARIES( sim_brunel2k_pl auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
15+
16+
ADD_EXECUTABLE( sim_coba_benchmark sim_coba_benchmark.cpp )
17+
TARGET_LINK_LIBRARIES( sim_coba_benchmark auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
18+
19+
ADD_EXECUTABLE( sim_dense sim_dense.cpp )
20+
TARGET_LINK_LIBRARIES( sim_dense auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
21+
22+
ADD_EXECUTABLE( sim_epsp sim_epsp.cpp )
23+
TARGET_LINK_LIBRARIES( sim_epsp auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
24+
25+
ADD_EXECUTABLE( sim_epsp_stp sim_epsp_stp.cpp )
26+
TARGET_LINK_LIBRARIES( sim_epsp_stp auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
27+
28+
ADD_EXECUTABLE( sim_isp_big sim_isp_big.cpp )
29+
TARGET_LINK_LIBRARIES( sim_isp_big auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
30+
31+
ADD_EXECUTABLE( sim_isp_orig sim_isp_orig.cpp )
32+
TARGET_LINK_LIBRARIES( sim_isp_orig auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
33+
34+
ADD_EXECUTABLE( sim_poisson sim_poisson.cpp )
35+
TARGET_LINK_LIBRARIES( sim_poisson auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )
36+
37+
ADD_EXECUTABLE( sim_coba_binmon sim_coba_binmon.cpp )
38+
TARGET_LINK_LIBRARIES( sim_coba_binmon auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} )

examples/sim_coba_benchmark.cpp

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ int main(int ac,char *av[]) {
134134
TIFGroup * neurons_e = new TIFGroup( ne);
135135
TIFGroup * neurons_i = new TIFGroup( ni);
136136

137+
neurons_e->set_refractory_period(5.0e-3); // minimal ISI 5.1ms
138+
neurons_i->set_refractory_period(5.0e-3);
139+
137140
neurons_e->set_state("bg_current",2e-2); // corresponding to 200pF for C=200pF and tau=20ms
138141
neurons_i->set_state("bg_current",2e-2);
139142

@@ -161,45 +164,25 @@ int main(int ac,char *av[]) {
161164
if ( !fwmat_ii.empty() ) con_ii->load_from_complete_file(fwmat_ii);
162165

163166

167+
164168
if ( !fast ) {
169+
logger->msg("Use --fast option to turn off IO for benchmarking!", WARNING);
170+
165171
msg = "Setting up monitors ...";
166172
logger->msg(msg,PROGRESS,true);
167173

168174
stringstream filename;
169175
filename << outputfile << "e.ras";
170176
SpikeMonitor * smon_e = new SpikeMonitor( neurons_e, filename.str().c_str() );
171177

172-
// filename.str("");
173-
// filename.clear();
174-
// filename << outputfile << "e.dras";
175-
// DelayedSpikeMonitor * dsmon_e = new DelayedSpikeMonitor( neurons_e, filename.str().c_str() );
176-
177178
filename.str("");
178179
filename.clear();
179180
filename << outputfile << "i.ras";
180181
SpikeMonitor * smon_i = new SpikeMonitor( neurons_i, filename.str().c_str() );
181-
182-
filename.str("");
183-
filename << outputfile << "e.mem";
184-
StateMonitor * smon_mem = new StateMonitor( neurons_e, 7, "mem", filename.str() ,dt );
185-
186-
filename.str("");
187-
filename << outputfile << "e.ampa";
188-
StateMonitor * smon_ampa = new StateMonitor( neurons_e, 7, "g_ampa", filename.str() );
189-
190-
filename.str("");
191-
filename << outputfile << "e.gaba";
192-
StateMonitor * smon_gaba = new StateMonitor( neurons_e, 7, "g_gaba", filename.str() );
193182
}
194183

195184

196-
RateChecker * chk = new RateChecker( neurons_e , -0.1 , 1000. , 100e-3);
197-
198-
logger->msg("Running sanity check ...",PROGRESS,true);
199-
con_ee->sanity_check();
200-
con_ei->sanity_check();
201-
con_ie->sanity_check();
202-
con_ii->sanity_check();
185+
// RateChecker * chk = new RateChecker( neurons_e , -0.1 , 1000. , 100e-3);
203186

204187
logger->msg("Simulating ..." ,PROGRESS,true);
205188
if (!sys->run(simtime,true))

0 commit comments

Comments
 (0)