Running NVIDIA Parabricks on Google Cloud Batch fails, can't see GPUs

I am trying to run the NVIDIA Parabricks example on Google Cloud Batch. It appears that Parabricks container is not seeing the GPUs. If anyone has succeeded at this, I’d welcome some help!

The error is:

[Parabricks Options Error]: Could not find accessible GPUs. Please make sure the container options enable GPUs
[Parabricks Options Error]: Run with -h to see help

My config file:

process.executor = ‘google-batch’

process.container = ‘nvcr.io/nvidia/cuda:12.4.1-base-ubuntu22.04

process.machineType = ‘c2-standard-4’

workDir = ‘gs://mybucket_jrt/nextflow_work’

docker.enabled = true

docker.runOptions = ‘–gpus all’

google.batch.bootDiskSize = ‘300 GB’

google.batch.installGpuDrivers = true

My script:

process RUN_PB {

// Specify the Parabricks container image

container ‘nvcr.io/nvidia/clara/clara-parabricks:4.6.0-1

machineType ‘a2-highgpu-2g’

accelerator 2, type: 'nvidia-tesla-a100'

// Define hardware requirements (optional, depending on executor)

label ‘parabricks’

output: 

path “fq2bam_output.bam”

path “deepvariant.vcf”

script:

“”"

apt-get install -y -q wget

wget -q -O parabricks_sample.tar.gz \\

"https://s3.amazonaws.com/parabricks.sample/parabricks_sample.tar.gz"

tar xvf parabricks_sample.tar.gz



cd parabricks_sample

pbrun germline \\

--ref Ref/Homo_sapiens_assembly38.fasta \\

--in-fq Data/sample_1.fq.gz Data/sample_2.fq.gz \\

--knownSites Ref/Homo_sapiens_assembly38.known_indels.vcf.gz.tbi \\

--out-bam output.bam \\

--out-variants germline.vcf \\

--out-recal-file recal.txt 

“”"

}

Not sure if you got any help yet, but happy to get connected to help debug this together.

I only have a free trial GCP account, not sure if I can run a2-highgpu-2g

Do you think the problem is more likely on parabrick or on nextflow config?

Thanks for responding!

I think the issue is a result of the Parabricks container configuration. I have connected with a Nextflow expert at NVIDIA. I’ll ask if they have had any success with the effort and let you know.

Thanks!

1 Like

Hi, I just ran into the same problem, so I would be interested if you find a solution.

In the meantime, using an older version of the parabricks container (4.5.0-1) worked for me without changing anything in the nextflow config.

And more generally, I noticed that there seems to be a problem with containers in nextflow processes not finding the GPU when using containers based on newer CUDA versions (>=12.8) and google batch, even though the installed driver (580.105.08) should be able to support them.

1 Like