question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to start multiple dask workers with 1 GPU each?

See original GitHub issue

I have a compute node with setting: Virtual machine size: (24 cores, 448 GB RAM, 1344 GB disk) Processing unit: 4 GPUs

How to start multiple dask workers with 1 GPU each? For example, I’d like to start 4 dask workers with 1 GPU each and use all resources provided by node.

I have tried the following from document: "dask-worker {scheduler} --resources GPU=1" this starts 1 dask worker

"dask-worker {scheduler} --nprocs 4 --resources GPU=1" this starts 4 dask worker, and client: Client: 'tcp://10.0.0.6:8786' processes=4 threads=4, memory=73.43 GiB But It looks like this doesn’t use all resources provided by node.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
quasibencommented, May 27, 2021

Great! Glad things are working for you . In the future you might want to use something like:

client.wait_for_workers(n_workers=…)

1reaction
quasibencommented, May 24, 2021

I would recommend using dask-cuda – the dask-cuda-worker is designed specifically for creating dask workers pinned to GPUs

Read more comments on GitHub >

github_iconTop Results From Across the Web

create multiple dask workers per gpu · Issue #571 - GitHub
It's possible to start multiple compute threads per GPU passing threads_per_worker (defaults to 1 ) to `LocalCUDACluster. However, libraries ...
Read more >
GPUs - Dask documentation
In these situations it is common to start one Dask worker per device, and use the CUDA environment variable CUDA_VISIBLE_DEVICES to pin each...
Read more >
Can we create a Dask cluster having multiple CPU machines ...
Can we create a dask-cluster with some CPU and some GPU machines together. If yes, how to control a certain task must run...
Read more >
GPU Series: Multiple GPUs in Python with Dask - YouTube
... of tutorials for the NCAR and university research communities. https://www2.cisl.ucar.edu/what-we-do/training-library/ gpu -computi...
Read more >
Worker — dask-cuda 0.19.0+0.g1acf55e.dirty documentation
Worker ¶. Dask-CUDA workers extend the standard Dask worker in two ways: Advanced networking configuration. GPU Memory Pool configuration.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found