Skip to content

Commit

Permalink
feat: increase the default chunk size of dask (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
maawoo authored Oct 24, 2024
1 parent b061001 commit 568c193
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
import xarray as xr
from sdc.cluster import start_slurm_cluster

dask.config.set({"array.rechunk.method": "p2p"})
dask.config.set({"optimization.fuse.active": False})
dask.config.set({"array.rechunk.method": "p2p",
"optimization.fuse.active": False,
"array.chunk-size": "256MiB"})
xr.set_options(keep_attrs=True)

dask_client, cluster = start_slurm_cluster()

0 comments on commit 568c193

Please sign in to comment.