This is a test version of Biostars. For the public version, visit https://www.biostars.org.
CUDA error when I run megalodon (2.4.1) and guppy (6.0.1+652ffd1) with GPU support.

Hello, everyone, recently when I run the megalodon command, there was a constant error. attached is my demo in the script.

megalodon \
    ~/01.data/01.ONT_data/02.ONT_test/AW/FAST5_PASS \
    --guppy-params "-d /public/home/zenglingsen/04.software/03.Guppy/rerio/basecall_models/" \
    --guppy-server-path /public/home/zenglingsen/04.software/03.Guppy/ont-guppy/bin/guppy_basecall_server \
    --guppy-config res_dna_r941_prom_modbases_5mC_CpG_v001.cfg \
    --outputs basecalls mappings mod_mappings mods per_read_mods \
    --reference /public/home/zenglingsen/01.data/03.Reference/GCF_000003025.6_Sscrofa11.1_genomic.fna \
    --mod-motif m CG 0 \
    --output-directory /public/home/zenglingsen/01.data/01.ONT_data/02.ONT_test/AW/FAST5_PASS/out \
    --overwrite \
    --devices 0 \
    --processes 8 \

and this is the log file.

2023-08-08 10:17:01.473438 [guppy/message] ONT Guppy basecall server software version 6.0.1+652ffd1, client-server API version 10.0.0
log path:            /public/home/zenglingsen/01.data/01.ONT_data/02.ONT_test/AW/FAST5_PASS/out/guppy_log

chunk size:          2000

chunks per runner:   512

max queued reads:    2000

num basecallers:     4

num socket threads:  2

max returned events: 50000

gpu device:          cuda:1

kernel path:         

runners per device:  4

2023-08-08 10:17:01.475945 [guppy/info] crashpad_handler not supported on this platform.

2023-08-08 10:17:01.478127 [guppy/info] Listening on port ipc:///tmp/3763-2667-29cb-f0a3.

2023-08-08 10:17:01.607464 [guppy/error] CUDA error at /builds/ofan/ont_core_cpp/ont_core/common/cuda_common.cpp:232: CUDA_ERROR_INVALID_DEVICE. 
Error initialising basecall server using port: ipc://auto. Aborting.

2023-08-08 10:17:01.608638 [guppy/message] The basecall server has shut down successfully.

this is the GPU info:

megalodon ont gpu nanopore guppy

enter image description here

Now I have no choice but to ask for your help, any advice and comment would be appropriate and helpful. Thank you.

1 answer

The error is CUDA_ERROR_INVALID_DEVICE

You have a GEFORCE, but which one ? Also, how much RAM does it have ? I think you might need 8 GB GPU RAM for megalodon. Check your GPU is compatible with what ONT requires.

Log in to answer this question.