Skip to content

[Bug] Mybinder: SingleNodeExecutor notebook crashes #750

@jan-janssen

Description

@jan-janssen

While the notebooks run without any issue in the continuous integration environment they somehow cause a memory overload on mybinder when it comes to running the MPI parallel python functions. The example that breaks is:

from executorlib import SingleNodeExecutor

def calc_mpi(i):
    from mpi4py import MPI

    size = MPI.COMM_WORLD.Get_size()
    rank = MPI.COMM_WORLD.Get_rank()
    return i, size, rank


with SingleNodeExecutor(resource_dict={"cores": 2}, block_allocation=True) as exe:
    fs = exe.submit(calc_mpi, 3)
    print(fs.result())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions