New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation with GPU support #584
Comments
You don't need
If you need to build tomopy for some reason, then follow the development guide. TomoPy currently uses scikit-build to run CMake from the setup script. |
Thanks for the information. I do not need to build it from scratch. Conda is much preferred. I checked my version with
So, using miniconda and To install the GPU package you need to specify the specific version of tomopy and the specific build. A list of all available versions is here. Here is an example line which will install tomopy 1.11.0 for CUDA 11.2 and python 3.9. After running that line above I was able to successfully reconstruct using the I uploaded a docker container with CUDA 11, tomopy (with GPU support), and ASTRA here in case others find it useful. |
You can also install using something like:
or I think this also works:
|
Is it possible to install Tomopy with GPU support on Windows 10 64 bit Also ?,
In this case it installed properly from Conda-Forge channel,
The code I am using is : recon = tomopy.recon(proj, theta, center=rCentre, algorithm='mlem', num_iter=2, ncore=1, accelerated=True, device='gpu') Do I need to install something separately ? output of "conda list tomopy " is Name Version Build Channeltomopy 1.12.2 pyhd8ed1ab_1 conda-forge output of "conda list cudatoolkit" packages in environment at C:\Users\admin.conda\envs\gtomopy:Name Version Build Channelcudatoolkit 11.8.0 h09e9e62_11 conda-forge |
The way to force CUDA installation is now
Because the compiled libraries have been separated in to a different package. |
Describe the problem
Im trying to install tomopy in a Docker container using the NVIDIA and miniconda pre-built images for Ubuntu 20. The build instructions simply say to install tomopy using conda and if
which nvcc
returns a path it will work. Is this still true? Or are there different build instructions for GPU accelerated tomopy?I saw other issues where users had problems enabling the GPU, but most posts simply said "I followed the build instructions." Im not sure which build instructions are being referred to.
BTW: Installing astra-toolbox using conda provided GPU accelerated algorithms (not through tomopy). So, Im sure the container can access the GPUs.
The text was updated successfully, but these errors were encountered: