# How to have more cpus or gpu?

**URL:** <https://community.seqera.io/t/how-to-have-more-cpus-or-gpu/2308>\
**Category:** Ask for help\
**Tags:** nf-core\
**Created:** [July 30, 2025, 7:48pm UTC](https://community.seqera.io/t/how-to-have-more-cpus-or-gpu/2308 "2025-07-30T19:48:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvin\_li](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/marvin_li/32/1928_2.png) [@marvin\_li](https://community.seqera.io/u/marvin_li)\
**Post date:** [July 30, 2025, 7:48pm UTC](https://community.seqera.io/t/how-to-have-more-cpus-or-gpu/2308/1 "2025-07-30T19:48:37Z")

</div>

The nf-core/pipeline always stopped due to the limitation of CPUs. What should I do? The pipeline was created with Google Cloud Batch.

 ![屏幕截图 2025-07-30 204542](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/2X/e/e74d13b88c9a2b12652c0ab0822279678d74d029.png)

---

<div class="post-metadata">

**Author:** ![mribeirodantas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/mribeirodantas/32/235_2.png) [@mribeirodantas](https://community.seqera.io/u/mribeirodantas)\
**Post date:** [August 29, 2025, 1:38pm UTC](https://community.seqera.io/t/how-to-have-more-cpus-or-gpu/2308/2 "2025-08-29T13:38:40Z")

</div>

Hi @marvin_li

Either you pick a VM with more CPUs in Google Cloud or you change the pipeline settings to require less CPUs. For example, check the `conf/base.config` snippet below:

```auto
withLabel:process_high {
        cpus = { 12 * task.attempt }
        memory = { 72.GB * task.attempt }
        time = { 16.h * task.attempt }
    }

```

If you only have 4 CPUs available in your machine, you’d change from `12 * task.attempt` to `4` in this snippet. Do the necessary alterations for the other directives too.
