Skip to content
Snippets Groups Projects
Commit 212126cf authored by Hossain Mahmud's avatar Hossain Mahmud Committed by Axel von Arnim
Browse files

Merged in pathfixes-jp61 (pull request #7)


[NRPJP-61] modified exc path to be a resourcepath

Approved-by: default avatarKepa Cantero <cantero@fortiss.org>
Approved-by: default avatarUgo Albanese <ugo.albanese@santannapisa.it>
parent 2910b407
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,7 @@ class NestBrainProcess(object):
elif data == 'step':
# run the coordinated simulation step
print "[MPI] ===================== step ======================="
self._brain_controller.run_step(self._timestep * 1000.0) # msec
self._brain_communicator.refresh_buffers(0.0)
......
......@@ -97,7 +97,7 @@ class NestLauncher(object):
# construct the actual MPI launcher with the process that determines if the CLE or
# standalone brain should be launched
# TODO: Find way to send simconfig object directly to the DistributedNestProcess
args = ['--exdconf={}'.format(os.path.realpath(self._sim_config.exc_abs_path)),
args = ['--exdconf={}'.format(os.path.realpath(self._sim_config.exc_path.abs_path)),
'--gzserver-host={}'.format(self._sim_config.gzserver_host),
'--reservation={}'.format(reservation_str),
'--sim-id={}'.format(self._sim_config._sim_id),
......
......@@ -23,6 +23,11 @@ Entry point of distributed CLE and NEST
"""
import sys
# import pyNN.nest here to ensure NEST ranks are initialized correctly
import pyNN.nest as sim
import nest
nest.set_debug(False)
argv_backup = list(sys.argv[1:])
sys.argv = [sys.argv[0]]
......@@ -47,11 +52,14 @@ if __name__ == '__main__': # pragma: no cover
from mpi4py import MPI
rank = MPI.COMM_WORLD.Get_rank()
print '[ MPI ] ========== nest rank={} ========'.format(nest.Rank())
# use the MPI process rank to determine if we should launch CLE or brain process
# both launch commands are blocking until shutdown occurs
signal.signal(signal.SIGTERM, handle_sigterm)
print '[ MPI ] ========== initialized={} with thread_level={} ========'.format(str(MPI.Is_initialized()), str(MPI.Query_thread()))
print '[ MPI ] ========== initialized={} with thread_level={} ========'.format(
str(MPI.Is_initialized()), str(MPI.Query_thread()))
if not MPI.Is_initialized():
MPI.Init_thread(MPI.THREAD_MULTIPLE)
......@@ -62,6 +70,8 @@ if __name__ == '__main__': # pragma: no cover
launch_cle(argv_backup)
else:
# import pydevd
# pydevd.settrace('localhost', port=50004, stdoutToServer=True, stderrToServer=True, suspend=False)
print '[ MPI ] ================ LAUNCHING NEST ================ ' + str(rank)
launch_brain(argv_backup)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment