odl icon indicating copy to clipboard operation
odl copied to clipboard

RayTransform: ValueError: The 'astra_cuda' `impl` is not found.

Open zhongniuniu opened this issue 2 years ago • 4 comments

ValueError: The 'astra_cuda' impl is not found. This impl is either not supported, it may be misspelled, or external packages required are not available. Consult RAY_TRAFO_IMPLS to find the run-time available implementations.

My code is: ray_trafo = odl.tomo.RayTransform(vol_space=reco_space, # domain of forward projector geometry=geometry, # geometry of the transform impl='astra_cuda') # implementation back-end for the transform: ASTRA toolbox, using CUDA, 2D or 3D

I tried to run:conda install -c astra-toolbox astra-toolbox,And I installed successfully install astra-toolbox 2.1.2, but it still pops up the error just now.

zhongniuniu avatar Feb 23 '23 09:02 zhongniuniu

my odl is 1.0.0.dev0

zhongniuniu avatar Feb 23 '23 10:02 zhongniuniu

Hi, I am encountering the same problem, did you figure out the solution?

JixiangChen-Jimmy avatar Sep 18 '23 13:09 JixiangChen-Jimmy

The problem is that ODL does not find ASTRA installation with GPU support.

JevgenijaAksjonova avatar Sep 19 '23 08:09 JevgenijaAksjonova

@JevgenijaAksjonova Thanks for your relpy. I solve this problem via simply running conda install -c astra-toolbox astra-toolbox. After installation, I checked that all impl options are then supported.

JixiangChen-Jimmy avatar Sep 19 '23 08:09 JixiangChen-Jimmy

The problem is that ODL does not find ASTRA installation with GPU support.

If we want astra-toolbox to deal wtih 3D data,there are must have GPU with cuda

zlbbme avatar Mar 13 '24 07:03 zlbbme

The problem is that ODL does not find ASTRA installation with GPU support.

If we want astra-toolbox to deal wtih 3D data,there are must have GPU with cuda

If one correctly installs ASTRA with CUDA, then ODL has no problems finding it as clarified above by @JevgenijaAksjonova

ozanoktem avatar Mar 13 '24 09:03 ozanoktem

ValueError: The 'astra_cuda' impl is not found. This impl is either not supported, it may be misspelled, or external packages required are not available. Consult RAY_TRAFO_IMPLS to find the run-time available implementations.

My code is: ray_trafo = odl.tomo.RayTransform(vol_space=reco_space, # domain of forward projector geometry=geometry, # geometry of the transform impl='astra_cuda') # implementation back-end for the transform: ASTRA toolbox, using CUDA, 2D or 3D

I tried to run:conda install -c astra-toolbox astra-toolbox,And I installed successfully install astra-toolbox 2.1.2, but it still pops up the error just now.

Hello, I have the same problem as you, did you solve it?

taliwxy avatar Aug 12 '24 08:08 taliwxy

@taliwxy how did you install Astra? As said before, this should work if you've actually installed the Cuda version, but not if you only have the CPU version.

If you're unsure, please show the output of

conda list

and

python -c 'import astra; print(astra.get_gpu_info())'

leftaroundabout avatar Aug 12 '24 09:08 leftaroundabout

@taliwxy how did you install Astra? As said before, this should work if you've actually installed the Cuda version, but not if you only have the CPU version.

If you're unsure, please show the output of

conda list

and

python -c 'import astra; print(astra.get_gpu_info())'

Thanks for your reply! I have solved this problem by changing the version of astra-toolbox from 2.2.0 to 1.9.9 to match the version of odl.

taliwxy avatar Aug 14 '24 02:08 taliwxy

@taliwxy good to hear you found a solution!

We will also bring ODL up to date with the latest Astra versions; not immediately but probably in the next months.

leftaroundabout avatar Aug 14 '24 12:08 leftaroundabout