rugnux --no-gpu: run on the CPU only, without touching CUDA, on a machine with a GPU

hide_gpus() in CUDAWrapper makes get_gpu_count() answer 0 without calling
cudaGetDeviceCount, so every GPU decision in the process (indexer Auto ->
FFTW, preprocessing/spot finding/decode, pre-scan, scaling engine, model
validation, MR) takes the path it takes on a machine without a GPU, and no
CUDA context is created. rugnux reads --no-gpu in main, ahead of the parser,
because set_gpu_blocking_sync() already asks CUDA for the devices. The
banner says 'CPU only (--no-gpu)'. The 'run it on the CPU' advice in the
out-of-GPU-memory messages and in the install docs now names --no-gpu
instead of CUDA_VISIBLE_DEVICES=.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
leonarski_fandClaude Opus 5.5 committed 2026-10-14 10:13:23 +02:00
1 parent 70276a69fe
commit bfd715b64d
8 files changed
+53 -15

No files matched your search

+2
View File
@@ -80,6 +80,8 @@ int32_t get_gpu_count() {
return 0;
}
void hide_gpus() {}
std::vector<std::string> get_gpu_names() {
return {};
}