-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-v0.8.0' for beta release
Conflicts: examples/sim_coba_binmon.cpp tools/aube.cpp
- Loading branch information
Showing
215 changed files
with
330,692 additions
and
4,866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ | |
*.l[oa] | ||
*/.libs | ||
|
||
*.pyc | ||
|
||
|
||
# Ignore docs | ||
docs/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
cmake ../../ -DCMAKE_BUILD_TYPE=Debug && make | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
cmake ../../ -DCMAKE_CXX_FLAGS=-pg -DCMAKE_BUILD_TYPE=Release && make | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
cmake ../../ -DCMAKE_BUILD_TYPE=Release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/gnuplot | ||
|
||
set out 'benchmark_results.pdf' | ||
set term pdf size 7.0, 2.4 | ||
|
||
unset key | ||
|
||
set border 3 | ||
set xtics nomirror out | ||
set ytics nomirror out | ||
set xtics rotate # by -45 | ||
|
||
set boxwidth 0.8 | ||
|
||
|
||
|
||
set boxwidth 1.0 | ||
set style histogram errorbars gap 1.0 lw 1 | ||
set style data histograms | ||
# set style fill solid border -1 | ||
|
||
# set yrange [0:] | ||
|
||
revname(x) = sprintf("%s",x[1:6]) | ||
|
||
set multiplot layout 1,3 | ||
|
||
set label 1 at screen 0.001, screen 0.1 'Commit:' left | ||
set title 'Vogels \& Abbott benchmark' | ||
set ylabel 'Wall time (s)' | ||
plot 'benchmark_results.dat' using 3:4:xticlabels(revname(strcol(2))) lc -1 | ||
|
||
unset ylabel | ||
unset label 1 | ||
|
||
|
||
set title 'Zenke et al. benchmark, single' | ||
plot 'benchmark_results.dat' using 5:6:xticlabels(revname(strcol(2))) lc -1 | ||
set title 'Zenke et al. benchmark, parallel' | ||
plot 'benchmark_results.dat' using 7:8:xticlabels(revname(strcol(2))) lc -1 | ||
unset multiplot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
|
||
# Compile code | ||
make clean | ||
./bootstrap.sh && make | ||
sleep 2 | ||
|
||
# Benchmark parameters | ||
SIMTIME=100 | ||
STATRUNS="1 2 3 4 5" | ||
HOSTNAME=`hostname` | ||
DATE=`date +"%Y-%m-%d"` | ||
REVISION=`git log --pretty=oneline -1 | cut -d " " -f 1` | ||
TMPDIR=`mktemp -d` | ||
|
||
# Function declaration | ||
function fun_benchmark() | ||
{ | ||
echo $1 | ||
> $TMPDIR/times.dat | ||
for VARIABLE in $STATRUNS; do | ||
$1 | ||
cat $TMPDIR/elapsed.dat >> $TMPDIR/times.dat | ||
done | ||
|
||
awk '{ for (i=1;i<=NF;i++) { sum[i] += 1.0*$i; sum2[i] += 1.0*$i*$i; } } \ | ||
END { for (i=1;i<=NF;i++) { mean = 1.*sum[i]/NR; var = 1.*sum2[i]/NR-mean*mean; std = sqrt(var + 1.0/12); \ | ||
printf "%f %f\t",mean,std } printf "\n" }' $TMPDIR/times.dat > $TMPDIR/result.dat | ||
|
||
FUNCTION_RESULT=`cat $TMPDIR/result.dat` | ||
cp $TMPDIR/result.dat last_benchmark_result.dat | ||
} | ||
|
||
|
||
# Vogels-Abbott benchmark, single core | ||
CMD_BENCHMARK1="examples/sim_coba_benchmark --fast --simtime $SIMTIME --dir $TMPDIR" | ||
fun_benchmark "$CMD_BENCHMARK1" | ||
RESULT_BENCHMARK1=$FUNCTION_RESULT | ||
|
||
# Zenke plasticity benchmark, single core | ||
CMD_BENCHMARK2="examples/sim_background --fast --tau 10 --simtime $SIMTIME --dir $TMPDIR" | ||
fun_benchmark "$CMD_BENCHMARK2" | ||
RESULT_BENCHMARK2=$FUNCTION_RESULT | ||
|
||
# Zenke plasticity benchmark, two cores | ||
CMD_BENCHMARK3="mpirun -n 2 examples/sim_background --fast --tau 10 --simtime $SIMTIME --dir $TMPDIR" | ||
fun_benchmark "$CMD_BENCHMARK3" | ||
RESULT_BENCHMARK3=$FUNCTION_RESULT | ||
|
||
|
||
# Writ result to file | ||
echo "$HOSTNAME $REVISION $RESULT_BENCHMARK1 $RESULT_BENCHMARK2 $RESULT_BENCHMARK3 $DATE" >> benchmark_results.dat | ||
|
||
# Clean up | ||
rm -r $TMPDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,8 @@ | ||
ADD_EXECUTABLE( sim_background sim_background.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_background auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
file( GLOB SIM_SOURCES *.cpp ) | ||
foreach( sourcepath ${SIM_SOURCES} ) | ||
get_filename_component( sourcefile ${sourcepath} NAME ) | ||
string( REPLACE ".cpp" "" simname ${sourcefile} ) | ||
add_executable( ${simname} ${sourcefile} ) | ||
target_link_libraries( ${simname} auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
endforeach( sourcepath ${SIM_SOURCES} ) | ||
|
||
ADD_EXECUTABLE( sim_bg_lowpass sim_bg_lowpass.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_bg_lowpass auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_bg_static sim_bg_static.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_bg_static auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_brunel2k sim_brunel2k.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_brunel2k auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_brunel2k_pl sim_brunel2k_pl.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_brunel2k_pl auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_coba_benchmark sim_coba_benchmark.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_coba_benchmark auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_dense sim_dense.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_dense auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_epsp sim_epsp.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_epsp auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_epsp_stp sim_epsp_stp.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_epsp_stp auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_isp_big sim_isp_big.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_isp_big auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_isp_orig sim_isp_orig.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_isp_orig auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_poisson sim_poisson.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_poisson auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) | ||
|
||
ADD_EXECUTABLE( sim_coba_binmon sim_coba_binmon.cpp ) | ||
TARGET_LINK_LIBRARIES( sim_coba_binmon auryn ${MPI_C_LIBRARIES} ${Boost_LIBRARIES} ) |
Oops, something went wrong.