Giter Site home page Giter Site logo

Comments (5)

juliohm avatar juliohm commented on June 22, 2024 1

@cako it is a nice feature to have a non-blocking addprocs_*. We are trying to get this package back in shape. Please submit a PR if it is not yet available. I am closing this issue as too old. Feel free to add another one or the PR directly.

from clustermanagers.jl.

bjarthur avatar bjarthur commented on June 22, 2024

if your SGE cluster supports qrsh, you might try addprocs_qrsh instead. IIRC, that does not block.

from clustermanagers.jl.

cako avatar cako commented on June 22, 2024

Thanks @bjarthur, this works for me. Unfortunately addprocs_qrsh cannot take res_list like the others, but that should be easy enough to change. If I have time in the next few days I will try to sort it out.

I should add that since addprocs_qrsh creates an ssh tunnel to the worker, it is wise to disable .bash_profile on the worker. Otherwise commands defined inside it can mess up the communication between master and worker.

EDIT: Added pull request #82 to include res_list support in addprocs_qrsh

from clustermanagers.jl.

cako avatar cako commented on June 22, 2024

Actually, upon trying this with more workers, it still does not submit the jobs asynchronously. Each processor must be added before the next job can be queued in the gist I linked. You can test it by running the script with, say 10 jobs, and executing watch qstat in another window. You will notice that new jobs are only submitted after the previous started running. The only way in which I've managed to remove that restriction is by substituting

id = addprocs_qrsh(1)

by

qrsh = QRSHManager(1, "");
Distributed.cluster_mgmt_from_master_check()
id = Distributed.addprocs_locked(qrsh; qsub_env="")

In this case, all jobs will be queued at the same time. For some reason SGEManager is a bit more stable for me when running many jobs, so for now I am sticking to that.

from clustermanagers.jl.

oameye avatar oameye commented on June 22, 2024

Has a non-blocking addprocs ever been added? Is there a solution?

from clustermanagers.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.