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 imagecontainer ‘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“”"
}