# Assistance Needed for Configuring SLURM to Utilize GPUs in VM for AlphaFold

**URL:** https://community.seqera.io/t/assistance-needed-for-configuring-slurm-to-utilize-gpus-in-vm-for-alphafold/1195
**Category:** Ask for help
**Tags:** slurm, gpu
**Created:** [September 17, 2024, 1:36pm UTC](https://community.seqera.io/t/assistance-needed-for-configuring-slurm-to-utilize-gpus-in-vm-for-alphafold/1195 "2024-09-17T13:36:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![GiampaoloMart](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/giampaolomart/32/966_2.png) [@GiampaoloMart](https://community.seqera.io/u/GiampaoloMart)
#### Post date: [September 17, 2024, 1:36pm UTC](https://community.seqera.io/t/assistance-needed-for-configuring-slurm-to-utilize-gpus-in-vm-for-alphafold/1195/1 "2024-09-17T13:36:22Z")

</div>

I am currently trying to configure SLURM on a virtual machine to utilize its GPU resources for running AlphaFold. Despite specifying the correct parameters for GPU usage in my Nextflow process, and using `--gpu=all` in the Docker container setup, the job continues to run without utilizing the GPU.

Here are the details of my current setup:

- **SLURM Configuration:**
  - `slurm.conf` and `nodes.conf` have been updated to recognize GPUs.
  - The partition configuration in `partitions.conf` is set up to allocate GPU resources.

- **Docker Configuration:**
  - When creating the Docker container, we used the `--gpu=all` option to ensure the container has access to GPU resources.

- **Nextflow Process Configuration:**
  - The SLURM `clusterOptions` for the process are set to `--gres=gpu:1` to request GPU resources.
  - The `accelerator` parameter is set to `1` to indicate the use of GPU acceleration.

- **Observed Issue:**
  - AlphaFold runs on the VM but does not appear to utilize the GPU, despite the process parameters and Docker configuration indicating GPU usage.

---

<div class="post-metadata">

### Author: ![GeraldineVdA](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/geraldinevda/32/178_2.png) [@GeraldineVdA](https://community.seqera.io/u/GeraldineVdA)
#### Post date: [October 7, 2024, 1:18pm UTC](https://community.seqera.io/t/assistance-needed-for-configuring-slurm-to-utilize-gpus-in-vm-for-alphafold/1195/2 "2024-10-07T13:18:05Z")

</div>

Hi @GiampaoloMart , were you able to solve this yourself or do you still need help?

---

<div class="post-metadata">

### Author: ![GiampaoloMart](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/giampaolomart/32/966_2.png) [@GiampaoloMart](https://community.seqera.io/u/GiampaoloMart)
#### Post date: [October 8, 2024, 8:24am UTC](https://community.seqera.io/t/assistance-needed-for-configuring-slurm-to-utilize-gpus-in-vm-for-alphafold/1195/3 "2024-10-08T08:24:24Z")

</div>

Hi @GeraldineVdA , thanks for reaching out! I was able to solve the problem myself, but I really appreciate your offer to help.

Thanks again!
