Skip to content

Commit

Permalink
Add warning when enabling cuDF spilling and JIT-Unspill
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Jul 24, 2024
1 parent ecd0a83 commit d7ffa0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dask_cuda/cuda_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ def del_pid_file():
if device_memory_limit is None and memory_limit is None:
data = lambda _: {}
elif jit_unspill:
if enable_cudf_spill:
warnings.warn(
"Enabling cuDF spilling and JIT-Unspill together is not "
"safe, consider disabling JIT-Unspill."
)

data = lambda i: (
ProxifyHostFile,
{
Expand Down
6 changes: 6 additions & 0 deletions dask_cuda/local_cuda_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@ def __init__(
if device_memory_limit is None and memory_limit is None:
data = {}
elif jit_unspill:
if enable_cudf_spill:
warnings.warn(
"Enabling cuDF spilling and JIT-Unspill together is not "
"safe, consider disabling JIT-Unspill."
)

data = (
ProxifyHostFile,
{
Expand Down

0 comments on commit d7ffa0a

Please sign in to comment.