Comments (1)
Hi,
It spent me few days to build the CUDA environment, and now I have successfully built required CUDA environment with PyCUDA on both Windows and Linux Ubuntu 16.04. Here I would like to put some recaps, to help anyone if needed.
1. Windows:
If you are new to Windows like me, and don't know how to add C compiler to path, this link below might be very helpful:
https://code.visualstudio.com/docs/cpp/config-mingw
2. Ubuntu 16.04
I strongly recommend to build DeepDRR required CUDA environment using NVIDIA's official installation guide:
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
It's suggested to follow the steps strictly, and not jumping between steps to avoid dependency errors. It's important to check that local driver(can be checked by nvidia-smi
), and CUDA complier driver(can be checked by nvcc --version
) are matched, and don't install additional driver if the machine already has one. Also, disable secure boot when doing the installation. Here is an useful link to solve the local driver issue:
https://askubuntu.com/questions/902636/nvidia-smi-command-not-found-ubuntu-16-04
Sometimes, unfortunately, it might need to remove/reinstall CUDA toolkit to necessarily solve issues, it depends on how you installed CUDA toolkit on your machine, ways to remove CUDA toolkit on Ubuntu are different from using runfile
or deb
for installation.
It's also very useful to read official installation guide section 7 to verify installation. Try to compile example provided by CUDA and running the binaries, this is often overlooked by the posts I went through online.
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions
Here are my specs to setup CUDA environment for DeepDRR:
Python = 3.6.10
PyCuda = 2019.1.2
NVIDIA PyCuda = 2019.1.2
NVIDIAGPU = GTX1660
CUDA Toolkit = 10.1
Driver version = 430.64
As suggested in project README, DeepDRR works well with CUDA 8.0. And @gaocong13 suggested that it also worked with CUDA 9.0. So this time I have confirmed that CUDA 10.1 works.
I think we can close this issue for now. @mathiasunberath please also feel free to share this to other users for reference.
Cheers,
from deepdrr.
Related Issues (20)
- [Question]About parallel beam and cone beam HOT 1
- mapping 3D points to 2D points
- mapping 2Dpoint to 3Dpoint HOT 3
- Projection Matrix HOT 1
- FLIP AXIS HOT 5
- How to implement STL to DCM transformation in deepdrr HOT 1
- How to set up a simulation of an orthogonal projection? HOT 1
- Isocenter / origin question HOT 1
- Given extrinsic matrix and intrinsic matrix HOT 10
- Zooming out on the DRR HOT 1
- Error when trying out the main branch HOT 7
- `TypeError` always raised when calling `Volume.from_dicom` without a cache_path
- About DRR Image HOT 7
- gpu utilization and performances HOT 5
- DRR is white. HOT 7
- cuMemcpyHtoD failed! HOT 6
- Error when compiling kernel (using the example python script) HOT 3
- Dead link to test data (used in Jupyter notebook)
- DEEPDRR Achieve gradient projection HOT 1
- Unexpected DRR orientation HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepdrr.