Error with KeOps and CUDA

311 views
Skip to first unread message

Chris Taylor

unread,
Apr 29, 2021, 10:39:40 AM4/29/21
to Deformetrica

Hi,

I have just installed Deformetrica and am trying to work through the example analyses. When running the registration of the brains dataset, I am getting the following errors/warnings:

UserWarning: Unknown entry while parsing the optimization_parameters xml: use-cuda

and

RuntimeError: [KeOps] This KeOps shared object has been compiled without cuda support:
 1) to perform computations on CPU, simply set tagHostDevice to 0
 2) to perform computations on GPU, please recompile the formula with a working version of cuda.

I can get rid of the first warning by deleting the line  <use-cuda>On</use-cuda> from the optimization_parameters.xml file. However, I still get the same runtime error.

What do I need to do in order to "set tagHostDevice to 0", or alternatively is there a way to fix it to run with cuda?

Many thanks,

Chris

Alessandra Aldieri

unread,
Apr 3, 2025, 6:40:50 AM4/3/25
to Deformetrica
Hello, did you manage to solve this issue? I am facing the same problem right now.

Chris Taylor

unread,
Apr 3, 2025, 11:18:24 AM4/3/25
to Deformetrica
A colleague more experienced with Linux and Python fixed it for me, so I can't offer any detailed advice. I think it was connected with versions and dependencies, and getting the correct versions of the supporting packages fixed the problem, but I don't know more than that I'm afraid.

Shrivatsa Hegde

unread,
May 12, 2025, 8:46:23 AM5/12/25
to Deformetrica
Hey ,

Could you fix the error? I am having the same thing. I tried to run all the dependency checks, compatibility and also modifying a few files, but nothing seems to work.
Reply all
Reply to author
Forward
0 new messages