dask / dask-jobqueue

Deploy Dask on job schedulers like PBS, SLURM, and SGE
https://jobqueue.dask.org
BSD 3-Clause "New" or "Revised" License
234 stars 142 forks source link

mem error #632

Open MaAl13 opened 6 months ago

MaAl13 commented 6 months ago

Hello everyone,

I am trying to run Dask on our cluster, however the following code produces an error i don't really know how to solve

from dask_jobqueue import SLURMCluster
cluster = SLURMCluster(
            cores=24,
            job_extra_directives=['--mem-per-cpu=500MB'],  # Request 500MB per CPU
            queue="regular",
            account="user",
            memory = "12 GB")

cluster.scale(10)

stderr: sbatch: error: lua: Requesting memory by node is not supported. Use --mem-per-cpu. sbatch: error: cli_filter plugin terminated with error

guillaumeeb commented 6 months ago

Hi @MaAl13,

Your cluster is configured in a way to refuse submission scripts using --mem= sbatch option. You already added the --mem-per-cpu, you should also skip the other directive, see job_directives_skip kwarg.