Giter Site home page Giter Site logo

Comments (6)

randerzander avatar randerzander commented on September 17, 2024

@paulhendricks fyi

from dask-cuda.

mrocklin avatar mrocklin commented on September 17, 2024

In principle this is the sort of thing that a project like LocalCUDACluster could handle, however I'm somewhat concerned that it seems very RAPIDS specific, and also seems perhaps to be pretty unstable. Someone using this project for PyTorch might not appreciate this change. Also my guess looking at the code is that this would change in the next month or would change based on what libraries someone wanted to use. My hope is that LocalCUDACluster would be general beyond just RAPIDS work and would avoid baking in code that was tailored for a specific workflow.

Instead, I think that we might finish up dask/distributed#2453 and use that, or perhaps use worker preload scripts (see http://distributed.dask.org/en/latest/setup.html#customizing-initialization). Short term the preload scripts are probably the easiest approach. You would add that function to a small script, and then call something like LocalCUDACluster(preload='myscript.py') and that script would be run on all of the workers when they started up. This would also work if, for example, the workers were restarted.

You can also avoid having to specify this keyword argument by putting this script into your config at distributed.worker.preload, for example by adding the following file to ~/.config/dask/rapids.yaml

distributed:
  worker:
    preload: /path/to/myscript.py

from dask-cuda.

randerzander avatar randerzander commented on September 17, 2024

Understood about the goal of making this a general utility, and the startup scripts will work.

However, it's worth noting that (while its adoption is still mostly in RAPIDS projects) RMM has a goal of making shared memory pool management easier across the GPU ecosystem. Might be worth revisiting later when it gets adopted more widely.

@harrism fyi

from dask-cuda.

mrocklin avatar mrocklin commented on September 17, 2024

I think that the preload script solution is probably the right level of customization for this problem.

We can make a script with your startup commands, put that into configuration, and it will be run on any dask worker that people setup. That config file and script will be able to adapt much more nimbly than the dask-cuda project.

from dask-cuda.

mrocklin avatar mrocklin commented on September 17, 2024

@kkraus14 what do you think is the right way medium-term to solve the RMM initialization issue on the Python usability side?

from dask-cuda.

mrocklin avatar mrocklin commented on September 17, 2024

Might be worth revisiting later when it gets adopted more widely.

+1

from dask-cuda.

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.