Resources
CPU
By default, all Snakemake jobs will run on a machine with 4 CPUs available. To modify the number of CPUs allocated to the job, use theresources directive of the Snakefile rule as follows:
--cores command line argument. To define the number of cores available to the job, set the cores keyword in your SnakemakeMetadata. The cores field will default to 4 if there is no value provided.
Memory
By default, all Snakemake jobs will run on a machine with 8 GB of RAM. To modify the amount of memory allocated to the job, use theresources directive of the Snakefile rule. For example, to allocate 32 GB of RAM to a task:
GPU
To run a Snakemake job on a GPU instance, modify theresources directive of the Snakefile rule. For example:
small_gpu_task or large_gpu_task as defined here. To request a large GPU instance, add CPU and memory requirements as follows:
- Using the
containerdirective inside GPU instances is currently not supported. Use conda or add runtime dependencies to your Dockerfile to use GPUs. - Multi-GPU instances are currently not supported. The JIT workflow will fail if more than 1 GPU is requested.