Keops Error

309 views
Skip to first unread message

Jessica Williams

unread,
Aug 17, 2020, 9:05:13 PM8/17/20
to Deformetrica
I've recently downloaded deformetrica to my Linux machine and when running a script with "keops" as the kernel type, I get an error which ends with the below:

  File "/home/jgw/anaconda3/envs/deformetrica/lib/python3.7/site-packages/support/kernels/keops_kernel.py", line 81, in convolve
    res = self.gaussian_convolve[d - 2](gamma, x.contiguous(), y.contiguous(), p.contiguous(), device_id=device_id)
  File "/home/jgw/anaconda3/envs/deformetrica/lib/python3.7/site-packages/pykeops/torch/generic/generic_red.py", line 313, in __call__
    out = GenredAutograd.apply(self.formula, self.aliases, backend, self.dtype, device_id, ranges, *args)
  File "/home/jgw/anaconda3/envs/deformetrica/lib/python3.7/site-packages/pykeops/torch/generic/generic_red.py", line 41, in forward
    result = myconv.genred_pytorch(nx, ny, tagCPUGPU, tag1D2D, tagHostDevice, device_id, ranges, *args)
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.
(deformetrica) jgw@jgw-HP-Z800-Workstation:~/aorta-pca/deformetrica$ vim model.xml

Any thoughts on why this might be occurring? Many thanks in advance. 

mauric...@inria.fr

unread,
Aug 25, 2020, 11:03:28 AM8/25/20
to Deformetrica
Hi,

We've updated some of the Deformetrica's dependencies (pykeops and Pytorch, among them) in the latest release (4.3.0).

The installation process is a little bit different: we propose to replace Conda packages by pip. In a short:

  • Create a Conda environment:
conda create -n deformetrica_env python=3.8 numpy && source activate deformetrica_env
  • Install Deformetrica:
pip install deformetrica

I hope that this will simplify the installation and solve your problem.

Best,

wers...@gmail.com

unread,
Aug 25, 2020, 2:42:25 PM8/25/20
to Deformetrica
Hi
I just tried this, and it doesn't throw any errors but after there is no folder called deformetrica containing the examples etc. Any idea why?
Thanks
Esther

Mauricio DÍAZ

unread,
Aug 25, 2020, 4:14:20 PM8/25/20
to Deformetrica
Hi Esther,

The examples folder is not distributed with the package. For testing purposes, it can be downloaded with one of the following commands:
Then, you have to extract it  (tar -xvzf examples.tar.gz) and you can run the examples.

Best,

--
Mauricio

Jessica Williams

unread,
Aug 26, 2020, 6:42:16 PM8/26/20
to Deformetrica
This has fixed the problem I was having - many thanks!

On Tuesday, August 25, 2020 at 11:03:28 AM UTC-4 mauric...@inria.fr wrote:
Reply all
Reply to author
Forward
0 new messages