Skip to content

Commit

Permalink
Add comment about need to set RAPIDS_NO_INITIALIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Aug 18, 2020
1 parent cdc63f5 commit 15abd71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dask_cuda/cuda_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def __init__(
net_devices=None,
**kwargs,
):
# Required by RAPIDS libraries (e.g., cuDF) to ensure no context
# initialization happens before we can set CUDA_VISIBLE_DEVICES
os.environ["RAPIDS_NO_INITIALIZE"] = "True"

enable_proctitle_on_current()
Expand Down
2 changes: 2 additions & 0 deletions dask_cuda/local_cuda_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def __init__(
rmm_managed_memory=False,
**kwargs,
):
# Required by RAPIDS libraries (e.g., cuDF) to ensure no context
# initialization happens before we can set CUDA_VISIBLE_DEVICES
os.environ["RAPIDS_NO_INITIALIZE"] = "True"

if CUDA_VISIBLE_DEVICES is None:
Expand Down

0 comments on commit 15abd71

Please sign in to comment.