How to use the abcpy.backends.BackendMPI function in abcpy

To help you get started, we’ve selected a few abcpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eth-cscs / abcpy / tests / backend_tests_mpi.py View on Github external
'''
    If an exception is raised in a setUpModule then none of 
    the tests in the module will be run. 
    
    This is useful because the slaves run in a while loop on initialization
    only responding to the master's commands and will never execute anything else.

    On termination of master, the slaves call quit() that raises a SystemExit(). 
    Because of the behaviour of setUpModule, it will not run any unit tests
    for the slave and we now only need to write unit-tests from the master's 
    point of view. 
    '''
    global rank,backend_mpi
    comm = MPI.COMM_WORLD
    rank = comm.Get_rank()
    backend_mpi = BackendMPI()
github eth-cscs / abcpy / tests / backend_tests_mpi_model_mpi.py View on Github external
'''
    If an exception is raised in a setUpModule then none of 
    the tests in the module will be run. 
    
    This is useful because the teams run in a while loop on initialization
    only responding to the scheduler's commands and will never execute anything else.

    On termination of scheduler, the teams call quit() that raises a SystemExit(). 
    Because of the behaviour of setUpModule, it will not run any unit tests
    for the team and we now only need to write unit-tests from the scheduler's 
    point of view. 
    '''
    global rank,backend_mpi
    comm = MPI.COMM_WORLD
    rank = comm.Get_rank()
    backend_mpi = BackendMPI(process_per_model=2)
github eth-cscs / abcpy / examples / backends / mpi / mpi_model_inferences.py View on Github external
def setup_backend():
    global backend

    from abcpy.backends import BackendMPI as Backend
    backend = Backend(process_per_model=2)
github eth-cscs / abcpy / examples / backends / mpi / pmcabc_gaussian.py View on Github external
def setup_backend():
    global backend
    
    from abcpy.backends import BackendMPI as Backend
    backend = Backend()
    # The above line is equivalent to:
github eth-cscs / abcpy / examples / backends / mpi / mpi_model_pmc.py View on Github external
def setup_backend():
    global backend
    
    from abcpy.backends import BackendMPI as Backend
    backend = Backend(process_per_model=2)
    #backend = Backend()
github eth-cscs / abcpy / examples / backends / mpi / cpp / Inference.py View on Github external
def setup_backend(process_per_model):
    global backend
    from abcpy.backends import BackendMPI as Backend
    backend = Backend(process_per_model=process_per_model)
github eth-cscs / abcpy / examples / backends / mpi / mpi_pmc_hierarchical_models.py View on Github external
def setup_backend():
    global backend
    
    from abcpy.backends import BackendMPI as Backend
    backend = Backend(process_per_model=2)