nanoporetech / dorado

Oxford Nanopore's Basecaller
https://nanoporetech.com/
Other
491 stars 59 forks source link

Unable to run dorado basecaller with CPU. #886

Closed VBHarrisN closed 3 months ago

VBHarrisN commented 3 months ago

Issue Report

Unable to run dorado basecaller with CPU.

Please describe the issue:

Despite attempting to use either the -x or --device flag in the dorado basecaller, dorado keeps throwing c10: error CUDA error: no CUDA-capable device is detected. Please provide a clear and concise description of the issue you are seeing and the result you expect. I cannot get dorado basecaller to use the CPU instead of the GPU. Given that I do not have a CUDA capable card in my computer, and that I am flagging the CPU for use, I do not understand why the error keeps occuring.

Steps to reproduce the issue:

This is the command I am running: dorado basecaller dna_r10.4.1_e8.2_400bps_sup@v5.0.0 ./barcode10 --device "cpu" > test.bam Please list any steps to reproduce the issue. Just attempt to run the basecaller with the the cpu flag.

Run environment:

malton-ont commented 3 months ago

Hi @VBHarrisN,

Thanks for reporting this! It appears there is an issue in the transformer model (v5) implementation that is incorrectly attempting to use the CUDA functions even when selecting for CPU. We'll try to get a fix out for this in short order. In the mean time you'll need to use the v4.x models.

I'd also recommend getting a GPU for your system - we don't expect the transformer models to be at all performant in CPU mode.

iiSeymour commented 3 months ago

Fixed in v0.7.2 released just now.