Skip to content

Return and args #20

Open
Open
@mloubout

Description

@mloubout

I don't know if I missed somethign but I can't seem to fund a way to return value for the " only workers execute MPI code" mode. While the example seemed exciting, I can't seem to find a way to do a simple (pseudo code)

function do_stuff(args)
        manager=MPIManager(np=np)
        workers = addprocs(manager)
        @mpi_do manager begin
             result = do_mpi_stuff($args)
             result = gather_on_root(results)
             if comm is root
                  return result
            end
       end
end

myresult = do_stuff(a,b,c)

which makes it a bit useless since I can't get a result back.

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