From dd032416a56291f6fd24fa524f415b95b0af474f Mon Sep 17 00:00:00 2001 From: Simon Oehrl <oehrl@vr.rwth-aachen.de> Date: Sat, 4 Apr 2020 15:25:20 +0200 Subject: [PATCH] Make number of nodes adjustable --- Dockerfile | 2 +- examples/run_brunel_simulation.sh.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 831cd90..2ce2877 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,4 +51,4 @@ RUN cmake \ RUN ninja && ninja install ENV PGPASSWORD=postgres EXPOSE 8000 -ENTRYPOINT [ "/insite-build/run_brunel_simulation.sh" ] \ No newline at end of file +ENTRYPOINT [ "/insite-build/run_brunel_simulation.sh" 1000 2500 2 ] \ No newline at end of file diff --git a/examples/run_brunel_simulation.sh.in b/examples/run_brunel_simulation.sh.in index a205a27..2981ede 100755 --- a/examples/run_brunel_simulation.sh.in +++ b/examples/run_brunel_simulation.sh.in @@ -1,4 +1,4 @@ #!/bin/bash source @NEST_INSTALL_PREFIX@/bin/nest_vars.sh export LD_LIBRARY_PATH=$NEST_MODULE_PATH:/usr/local/lib/:$LD_LIBRARY_PATH -mpirun -n 2 --allow-run-as-root python3 @CMAKE_SOURCE_DIR@/examples/brunel_simulation.py $1 \ No newline at end of file +mpirun -n $3 --allow-run-as-root -x PYTHONPATH python3 @CMAKE_SOURCE_DIR@/examples/brunel_simulation.py $1 $2 \ No newline at end of file -- GitLab